Adder the type alias error_t and refactored the code to use it. also extracted archive function from install.c to archives.c
This commit is contained in:
@@ -7,12 +7,24 @@
|
||||
|
||||
typedef enum FOModOrder { ASC, DESC, ORD } FOModOrder_t;
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param node a pointer to the current node pointer (xmlNode **)
|
||||
* @param skipText if a text element is found skip it.
|
||||
* @param names variadic of the valid names.
|
||||
* @return return true if it found a valid node
|
||||
*/
|
||||
bool validateNode(xmlNodePtr * node, bool skipText, const char * names, ...);
|
||||
|
||||
/**
|
||||
* @brief Free memory of and xmlChar and return a strdup version. just to make sure there is nothing remaining in libxml
|
||||
*/
|
||||
char * freeAndDup(xmlChar * line);
|
||||
|
||||
|
||||
FOModOrder_t getFOModOrder(const char * order);
|
||||
|
||||
/**
|
||||
* @brief replace / by \
|
||||
* @param path
|
||||
|
||||
Reference in New Issue
Block a user