1234567891011121314151617181920212223 |
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <glib.h>
- struct IniValue {
- char *key;
- int iniKeySize;
- int keySize;
- };
- int setIniValue(const char *section, const char *key, const char *value,
- const char *filepath);
- int getIniValue(const char *section, const char *key,
- const char *default_value, char *buffer, int buflen,
- const char *filepath);
- int getIniSize(const char *section, const char *key, const char *filepath);
- int deleteIniValue(const char *section, const char *key, const char *filepath);
- void writeIniFile(GKeyFile * key_file, const char *filepath);
- struct IniValue allocateIni(const char *section, const char *key,
- const char *filepath);
- void freeIni(struct IniValue iniValue);
|