7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Copyright (C) 1999, 2000 Hugh Blemings & Pavel JanÃk ml.
11 Released under the terms of the GNU GPL, see file COPYING for more details.
13 Header file for config file reader.
16 Revision 1.1.1.2 2002/04/03 00:08:17 short
17 Found in "gnokii-working" directory, some November-patches version
19 Revision 1.4 2000/12/19 16:18:19 pkot
20 configure script updates and added shared function for configfile reading
30 /* Structure definitions */
32 /* A linked list of key/value pairs */
35 struct CFG_Entry *next, *prev;
41 struct CFG_Header *next, *prev;
42 struct CFG_Entry *entries;
46 /* Global variables */
48 extern struct CFG_Header *CFG_Info;
50 /* Function prototypes */
52 struct CFG_Header *CFG_ReadFile(char *filename);
53 char *CFG_Get(struct CFG_Header *cfg, const char *section, const char *key);
54 typedef void (*CFG_GetForeach_func)(const char *section,const char *key,const char *value);
55 void CFG_GetForeach(struct CFG_Header *cfg, const char *section, CFG_GetForeach_func func);
56 char *CFG_Set(struct CFG_Header *cfg, char *section, char *key,
58 int CFG_WriteFile(struct CFG_Header *cfg, char *filename);
59 int readconfig(char **model, char **port, char **initlength, char **connection, char **bindir);
61 #endif /* _CFGREADER_H */