Telodendria/src/include/Config.h
Jordan Bancino 3437c5db2c Format headers as well.
indent(1) does a weird thing with prototype functions, but it's good
enough for me, as long as it's consistent.
2022-07-25 15:25:06 -04:00

37 lines
791 B
C

#ifndef TELODENDRIA_CONFIG_H
#define TELODENDRIA_CONFIG_H
#include <stdio.h>
#include <HashMap.h>
#include <Array.h>
typedef struct ConfigDirective ConfigDirective;
typedef struct ConfigParseResult ConfigParseResult;
extern ConfigParseResult *
ConfigParse(FILE * stream);
extern unsigned int
ConfigParseResultOk(ConfigParseResult * result);
extern size_t
ConfigParseResultLineNumber(ConfigParseResult * result);
extern HashMap *
ConfigParseResultGet(ConfigParseResult * result);
extern void
ConfigParseResultFree(ConfigParseResult * result);
extern Array *
ConfigValuesGet(ConfigDirective * directive);
extern HashMap *
ConfigChildrenGet(ConfigDirective * directive);
extern void
ConfigFree(HashMap * conf);
#endif /* TELODENDRIA_CONFIG_H */