config-root.h (437B)
1 #ifndef __PMLAG_UTIL_CONFIG_ROOT_H__ 2 #define __PMLAG_UTIL_CONFIG_ROOT_H__ 3 4 #include <stdio.h> 5 6 #include "finwo/cnfparse.h" 7 8 #define CFG_RET_ERROR -1 9 #define CFG_RET_OK 0 10 11 typedef struct cnf_directive * (*cfg_directive_fn)(FILE *fd, struct cnf_directive *dir, void *user); 12 void cfg_register_directive(const char *name, cfg_directive_fn fn); 13 int cfg_parse(const char *wd, FILE *fd, void *user); 14 15 #endif // __PMLAG_UTIL_CONFIG_ROOT_H__