Header file for config file reader.
$Log$
- Revision 1.1.1.1 2001/11/25 21:59:19 short
- :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
+ Revision 1.1.1.2 2002/04/03 00:08:17 short
+ Found in "gnokii-working" directory, some November-patches version
Revision 1.4 2000/12/19 16:18:19 pkot
configure script updates and added shared function for configfile reading
char *section;
};
+/* Global variables */
+
+extern struct CFG_Header *CFG_Info;
+
/* Function prototypes */
struct CFG_Header *CFG_ReadFile(char *filename);
-char *CFG_Get(struct CFG_Header *cfg, char *section, char *key);
+char *CFG_Get(struct CFG_Header *cfg, const char *section, const char *key);
+typedef void (*CFG_GetForeach_func)(const char *section,const char *key,const char *value);
+void CFG_GetForeach(struct CFG_Header *cfg, const char *section, CFG_GetForeach_func func);
char *CFG_Set(struct CFG_Header *cfg, char *section, char *key,
char *value);
int CFG_WriteFile(struct CFG_Header *cfg, char *filename);