refactored the parser

This commit is contained in:
Marc
2022-10-02 14:02:01 +02:00
parent 3cedc7a182
commit b8fb39e393
12 changed files with 751 additions and 652 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef __XML_UTIL_H__
#define __XML_UTIL_H__
#include <libxml/parser.h>
#include <stdbool.h>
typedef enum FOModOrder { ASC, DESC, ORD } FOModOrder_t;
bool validateNode(xmlNodePtr * node, bool skipText, const char * names, ...);
char * freeAndDup(xmlChar * line);
FOModOrder_t getFOModOrder(const char * order);
void fixPath(char * path);
int countUntilNull(void * pointers);
#endif