Gammu internals
1.38.0
|
Go to the source code of this file.
Data Structures | |
struct | _INI_Entry |
struct | _INI_Section |
Typedefs | |
typedef struct _INI_Entry | INI_Entry |
typedef struct _INI_Section | INI_Section |
Functions | |
void | INI_Free (INI_Section *head) |
GSM_Error | INI_ReadFile (const char *FileName, gboolean Unicode, INI_Section **result) |
INI_Entry * | INI_FindLastSectionEntry (INI_Section *file_info, const unsigned char *section, const gboolean Unicode) |
unsigned char * | INI_GetValue (INI_Section *file_info, const unsigned char *section, const unsigned char *key, const gboolean Unicode) |
int | INI_GetInt (INI_Section *cfg, const unsigned char *section, const unsigned char *key, int fallback) |
gboolean | INI_GetBool (INI_Section *cfg, const unsigned char *section, const unsigned char *key, gboolean fallback) |
gboolean | GSM_StringToBool (const char *value) |
INI files manipulation.
Definition in file gammu-inifile.h.
gboolean INI_GetBool | ( | INI_Section * | cfg, |
const unsigned char * | section, | ||
const unsigned char * | key, | ||
gboolean | fallback | ||
) |
Returns boolean value from configuration. The file is automatically handled as not unicode.
cfg | File data as returned by INI_ReadFile. |
section | Section to scan. |
key | Name of key to read. |
fallback | Fallback value. |
Returns integer value from configuration.
Definition at line 344 of file cfg.c.
References FALSE, GSM_StringToBool(), and INI_GetValue().
Referenced by GSM_ReadConfig().
int INI_GetInt | ( | INI_Section * | cfg, |
const unsigned char * | section, | ||
const unsigned char * | key, | ||
int | fallback | ||
) |
Returns integer value from configuration. The file is automatically handled as not unicode.
cfg | File data as returned by INI_ReadFile. |
section | Section to scan. |
key | Name of key to read. |
fallback | Fallback value. |
Returns integer value from configuration.
Definition at line 329 of file cfg.c.
References FALSE, and INI_GetValue().