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.1 2001/11/25 21:59:19 short
17 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
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 /* Function prototypes */
48 struct CFG_Header *CFG_ReadFile(char *filename);
49 char *CFG_Get(struct CFG_Header *cfg, char *section, char *key);
50 char *CFG_Set(struct CFG_Header *cfg, char *section, char *key,
52 int CFG_WriteFile(struct CFG_Header *cfg, char *filename);
53 int readconfig(char **model, char **port, char **initlength, char **connection, char **bindir);
55 #endif /* _CFGREADER_H */