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, bool Unicode, INI_Section **result) |
| INI_Entry * | INI_FindLastSectionEntry (INI_Section *file_info, const unsigned char *section, const bool Unicode) |
| unsigned char * | INI_GetValue (INI_Section *file_info, const unsigned char *section, const unsigned char *key, const bool Unicode) |
File format is standard ini file, comments are both # and ;.
| typedef struct _INI_Entry INI_Entry |
Private structure holding information INI entry.
Definition at line 24 of file gammu-inifile.h.
| typedef struct _INI_Section INI_Section |
Private structure holding information INI section.
Definition at line 30 of file gammu-inifile.h.
| INI_Entry* INI_FindLastSectionEntry | ( | INI_Section * | file_info, | |
| const unsigned char * | section, | |||
| const bool | Unicode | |||
| ) |
Returns pointer to last INI entry of given section.
| file_info | File data as returned by INI_ReadFile. | |
| section | Section to scan. | |
| Unicode | Whether file is unicode. |
| void INI_Free | ( | INI_Section * | head | ) |
Free INI data.
| head | INI section data. |
| unsigned char* INI_GetValue | ( | INI_Section * | file_info, | |
| const unsigned char * | section, | |||
| const unsigned char * | key, | |||
| const bool | Unicode | |||
| ) |
Returns value of INI file entry.
| file_info | File data as returned by INI_ReadFile. | |
| section | Section to scan. | |
| key | Name of key to read. | |
| Unicode | Whether file is unicode. |
| GSM_Error INI_ReadFile | ( | const char * | FileName, | |
| bool | Unicode, | |||
| INI_Section ** | result | |||
| ) |
Reads INI data.
| FileName | File to read. | |
| Unicode | Whether file shoul be treated like unicode. | |
| result | Pointer where file will be read. |
1.5.6