author | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
commit | 88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22 (patch) (side-by-side diff) | |
tree | 6331418973714243beb674abc87692277b83869d /gammu/emb/common/misc/cfg.h | |
parent | ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf (diff) | |
download | kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.zip kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.gz kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.bz2 |
Initial revision
-rw-r--r-- | gammu/emb/common/misc/cfg.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gammu/emb/common/misc/cfg.h b/gammu/emb/common/misc/cfg.h new file mode 100644 index 0000000..edb9b09 --- a/dev/null +++ b/gammu/emb/common/misc/cfg.h @@ -0,0 +1,42 @@ +/* (c) 2003 by Marcin Wiacek */ + +#ifndef _cfg_h +#define _cfg_h + +#include "misc.h" + +/* -------------------------------- structures ----------------------------- */ + +typedef struct _INI_Entry INI_Entry; + +/* + * Structure used to save value for single key in INI style file + */ +struct _INI_Entry { + INI_Entry *Next, *Prev; + unsigned char *EntryName; + unsigned char *EntryValue; +}; + +typedef struct _INI_Section INI_Section; + +/* + * Structure used to save section in INI style file + */ +struct _INI_Section { + INI_Section *Next, *Prev; + INI_Entry *SubEntries; + unsigned char *SectionName; +}; + +/* ------------------------- function prototypes --------------------------- */ + +INI_Section *INI_ReadFile (char *FileName, bool Unicode); +INI_Entry *INI_FindLastSectionEntry (INI_Section *file_info, unsigned char *section, bool Unicode); +unsigned char *INI_GetValue (INI_Section *cfg, unsigned char *section, unsigned char *key, bool Unicode); + +#endif + +/* How should editor hadle tabs in this file? Add editor commands here. + * vim: noexpandtab sw=8 ts=8 sts=8: + */ |