Imported gammu 0.90.7
[gammu.git] / common / misc / cfg.h
blob295a9a134dfdd5fb5a073d22d46d70e3cf07346a
2 #ifndef _INI_READER_H
3 #define _INI_READER_H
5 #include "misc.h"
7 /* -------------------------------- structures ----------------------------- */
9 typedef struct _INI_Entry INI_Entry;
11 /*
12 * Structure used to save value for single key in INI style file
14 struct _INI_Entry {
15 INI_Entry *Next, *Prev;
17 unsigned char *EntryName;
18 unsigned char *EntryValue;
21 typedef struct _INI_Section INI_Section;
23 /*
24 * Structure used to save section in INI style file
26 struct _INI_Section {
27 INI_Section *Next, *Prev;
28 INI_Entry *SubEntries;
30 unsigned char *SectionName;
33 /* ------------------------- function prototypes --------------------------- */
35 INI_Section *INI_ReadFile (char *FileName, bool Unicode);
36 INI_Entry *INI_FindLastSectionEntry (INI_Section *file_info, unsigned char *section, bool Unicode);
37 unsigned char *INI_GetValue (INI_Section *cfg, unsigned char *section, unsigned char *key, bool Unicode);
39 #endif
41 /* How should editor hadle tabs in this file? Add editor commands here.
42 * vim: noexpandtab sw=8 ts=8 sts=8: