#ifndef __XML_UTIL_H__ #define __XML_UTIL_H__ #include #include typedef enum FOModOrder { ASC, DESC, ORD } FOModOrder_t; 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 */ void fixPath(char * path); /** * @brief Count the number of step before null * * @param pointers pointer to the list * @param typeSize size of each element of the list * @return size */ int countUntilNull(void * pointers, size_t typeSize); #endif