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
+31
View File
@@ -0,0 +1,31 @@
#ifndef __FOMOD_PARSER_H__
#define __FOMOD_PARSER_H__
#include "group.h"
//combine installStep and optionalFileGroups
typedef struct FOModStep {
FOModOrder_t optionOrder;
FOModGroup_t * groups;
int groupCount;
char * name;
FOModFlag_t * requiredFlags;
int flagCount;
} FOModStep_t;
typedef struct FOMod {
char * moduleName;
char * moduleImage;
char ** requiredInstallFiles;
FOModOrder_t stepOrder;
FOModStep_t * steps;
int stepCount;
FOModCondFile_t * condFiles;
int condFilesCount;
} FOMod_t;
int parseFOMod(const char * fomodFile, FOMod_t* fomod);
void freeFOMod(FOMod_t * fomod);
#endif