FreeRDP
|
Functions | |
WINPR_API int | IniFile_ReadBuffer (wIniFile *ini, const char *buffer) |
read an ini file from a buffer More... | |
WINPR_API int | IniFile_ReadFile (wIniFile *ini, const char *filename) |
read an ini file from a file More... | |
WINPR_API char * | IniFile_WriteBuffer (wIniFile *ini) |
write an ini instance to a buffer More... | |
WINPR_API int | IniFile_WriteFile (wIniFile *ini, const char *filename) |
write an ini instance to a file More... | |
WINPR_API char ** | IniFile_GetSectionNames (wIniFile *ini, size_t *count) |
Get the number and names of sections in the ini instance. More... | |
WINPR_API char ** | IniFile_GetSectionKeyNames (wIniFile *ini, const char *section, size_t *count) |
Get the number and names of keys of a section in the ini instance. More... | |
WINPR_API const char * | IniFile_GetKeyValueString (wIniFile *ini, const char *section, const char *key) |
Get an ini [section/key] value of type string. More... | |
WINPR_API int | IniFile_GetKeyValueInt (wIniFile *ini, const char *section, const char *key) |
Get an ini [section/key] value of type int. More... | |
WINPR_API int | IniFile_SetKeyValueString (wIniFile *ini, const char *section, const char *key, const char *value) |
Set an ini [section/key] value of type string. More... | |
WINPR_API int | IniFile_SetKeyValueInt (wIniFile *ini, const char *section, const char *key, int value) |
Set an ini [section/key] value of type int. More... | |
WINPR_API void | IniFile_Free (wIniFile *ini) |
Free a ini instance. More... | |
WINPR_API wIniFile * | IniFile_New (void) |
Create a new ini instance. More... | |
WINPR_API wIniFile * | IniFile_Clone (const wIniFile *ini) |
Clone a ini instance. More... | |
WINPR_API wIniFile* IniFile_Clone | ( | const wIniFile * | ini | ) |
Clone a ini instance.
ini | The instance to free, may be NULL |
WINPR_API void IniFile_Free | ( | wIniFile * | ini | ) |
Free a ini instance.
ini | The instance to free, may be NULL |
WINPR_API int IniFile_GetKeyValueInt | ( | wIniFile * | ini, |
const char * | section, | ||
const char * | key | ||
) |
Get an ini [section/key] value of type int.
ini | The instance to use, must not be NULL |
section | The name of the section as '\0' terminated string. |
key | The name of the key as '\0' terminated string. |
WINPR_API const char* IniFile_GetKeyValueString | ( | wIniFile * | ini, |
const char * | section, | ||
const char * | key | ||
) |
Get an ini [section/key] value of type string.
ini | The instance to use, must not be NULL |
section | The name of the section as '\0' terminated string. |
key | The name of the key as '\0' terminated string. |
WINPR_API char** IniFile_GetSectionKeyNames | ( | wIniFile * | ini, |
const char * | section, | ||
size_t * | count | ||
) |
Get the number and names of keys of a section in the ini instance.
ini | The instance to use, must not be NULL |
section | The name of the section as '\0' terminated string. |
count | A buffer that will contain the number of sections |
WINPR_API char** IniFile_GetSectionNames | ( | wIniFile * | ini, |
size_t * | count | ||
) |
Get the number and names of sections in the ini instance.
ini | The instance to use, must not be NULL |
count | A buffer that will contain the number of sections |
WINPR_API wIniFile* IniFile_New | ( | void | ) |
Create a new ini instance.
WINPR_API int IniFile_ReadBuffer | ( | wIniFile * | ini, |
const char * | buffer | ||
) |
read an ini file from a buffer
ini | The instance to use, must not be NULL |
buffer | The buffer to read from, must be a '\0' terminated string. |
WINPR_API int IniFile_ReadFile | ( | wIniFile * | ini, |
const char * | filename | ||
) |
read an ini file from a file
ini | The instance to use, must not be NULL |
filename | The name of the file to read from, must be a '\0' terminated string. |
WINPR_API int IniFile_SetKeyValueInt | ( | wIniFile * | ini, |
const char * | section, | ||
const char * | key, | ||
int | value | ||
) |
Set an ini [section/key] value of type int.
ini | The instance to use, must not be NULL |
section | The name of the section as '\0' terminated string. |
key | The name of the key as '\0' terminated string. |
value | The value of the [section/key] |
WINPR_API int IniFile_SetKeyValueString | ( | wIniFile * | ini, |
const char * | section, | ||
const char * | key, | ||
const char * | value | ||
) |
Set an ini [section/key] value of type string.
ini | The instance to use, must not be NULL |
section | The name of the section as '\0' terminated string. |
key | The name of the key as '\0' terminated string. |
value | The value of the [section/key] as '\0' terminated string. |
WINPR_API char* IniFile_WriteBuffer | ( | wIniFile * | ini | ) |
write an ini instance to a buffer
ini | The instance to use, must not be NULL |
WINPR_API int IniFile_WriteFile | ( | wIniFile * | ini, |
const char * | filename | ||
) |
write an ini instance to a file
ini | The instance to use, must not be NULL |
filename | The name of the file as '\0' terminated string. |