gwenhywfar  5.10.1
Functions
p_dependencies.c File Reference
#include "gwenbuild/parser/p_dependencies.h"
#include "gwenbuild/parser/parser.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/process.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/syncio.h>
#include <unistd.h>
#include <ctype.h>
Include dependency graph for p_dependencies.c:

Go to the source code of this file.

Functions

static int _callPkgConfig (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *suffix, const char *args)
 
static int _checkVersion (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *sMinVersion, const char *sMaxVersion)
 
static int _parseChildNodes (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
 
int _parseDep (GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
 
void _replaceControlCharsWithBlanks (char *ptr)
 
static int _retrieveCflags (GWEN_DB_NODE *db, const char *sId, const char *sName)
 
static int _retrieveLdflags (GWEN_DB_NODE *db, const char *sId, const char *sName)
 
int _retrieveVariable (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *variableName)
 
int _retrieveVariables (GWB_CONTEXT *currentContext, GWEN_DB_NODE *db, const char *sId, const char *sName, GWEN_XMLNODE *xmlNode)
 
int GWB_ParseDependencies (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
 

Function Documentation

◆ _callPkgConfig()

int _callPkgConfig ( GWEN_DB_NODE db,
const char *  sId,
const char *  sName,
const char *  suffix,
const char *  args 
)
static

◆ _checkVersion()

int _checkVersion ( GWEN_DB_NODE db,
const char *  sId,
const char *  sName,
const char *  sMinVersion,
const char *  sMaxVersion 
)
static

Definition at line 212 of file p_dependencies.c.

References DBG_DEBUG, DBG_ERROR, GWB_Parser_SetItemValue(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_NOT_FOUND, GWEN_Process_RunCommandWaitAndGather(), and NULL.

Referenced by _parseDep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parseChildNodes()

int _parseChildNodes ( GWB_PROJECT project,
GWB_CONTEXT currentContext,
GWEN_XMLNODE xmlNode 
)
static

Definition at line 68 of file p_dependencies.c.

References _parseDep(), DBG_DEBUG, DBG_ERROR, GWB_Parser_ParseSubdirs(), GWB_Parser_ParseWellKnownElements(), GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), and NULL.

Referenced by GWB_ParseDependencies().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _parseDep()

int _parseDep ( GWB_CONTEXT currentContext,
GWEN_XMLNODE xmlNode 
)

◆ _replaceControlCharsWithBlanks()

void _replaceControlCharsWithBlanks ( char *  ptr)

Definition at line 362 of file p_dependencies.c.

Referenced by _callPkgConfig().

Here is the caller graph for this function:

◆ _retrieveCflags()

int _retrieveCflags ( GWEN_DB_NODE db,
const char *  sId,
const char *  sName 
)
static

Definition at line 261 of file p_dependencies.c.

References _callPkgConfig(), DBG_ERROR, and NULL.

Referenced by _parseDep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _retrieveLdflags()

int _retrieveLdflags ( GWEN_DB_NODE db,
const char *  sId,
const char *  sName 
)
static

Definition at line 276 of file p_dependencies.c.

References _callPkgConfig(), DBG_ERROR, and NULL.

Referenced by _parseDep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _retrieveVariable()

int _retrieveVariable ( GWEN_DB_NODE db,
const char *  sId,
const char *  sName,
const char *  variableName 
)

Definition at line 291 of file p_dependencies.c.

References _callPkgConfig(), DBG_ERROR, GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), and NULL.

Referenced by _retrieveVariables().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _retrieveVariables()

int _retrieveVariables ( GWB_CONTEXT currentContext,
GWEN_DB_NODE db,
const char *  sId,
const char *  sName,
GWEN_XMLNODE xmlNode 
)

Definition at line 180 of file p_dependencies.c.

References _retrieveVariable(), DBG_ERROR, GWB_Context_GetVars(), GWB_Parser_ReadXmlDataIntoStringList(), GWEN_StringList_FirstEntry(), GWEN_StringList_free(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), and NULL.

Referenced by _parseDep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_ParseDependencies()

int GWB_ParseDependencies ( GWB_PROJECT project,
GWB_CONTEXT currentContext,
GWEN_XMLNODE xmlNode 
)

Definition at line 53 of file p_dependencies.c.

References _parseChildNodes(), DBG_INFO, and NULL.

Referenced by _parseChildNodes().

Here is the call graph for this function:
Here is the caller graph for this function: