X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=include%2Fcfgreader.h;h=fb3644dcd9cd98dfb1fdc5460f455d777ae67bd9;hp=252031e1c1d42e9838531d446453dd3b2041bdfc;hb=ecb68c68aeb44fa1ec930d124868e63a64f8cb6d;hpb=9d80f3acb04fd990119dbefc10aaf5a56de13ea9 diff --git a/include/cfgreader.h b/include/cfgreader.h index 252031e..fb3644d 100644 --- a/include/cfgreader.h +++ b/include/cfgreader.h @@ -13,6 +13,17 @@ Header file for config file reader. $Log$ + Revision 1.1.1.1.8.1 2001/11/25 23:10:58 short + * ... - new cfgreader.c/CFG_GetForeach() + some "const" keywords written - they are missing almost everywhere in Gnokii! + "CFG_info" is now global public symbol + * Global symbols became IMO obsolete: {model,port,initlength,connection,bindir} + stdout/stderr are de-buffered (cfgreading is upon startup) + * I know that it doesn't belong here but currently there is now generic + application init function anywhere. + * stdout/stderr de-buffering is already donw at various weird places all + through the project + 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 @@ -43,10 +54,16 @@ struct CFG_Header { 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);