inifile.h 757 B

1234567891011121314151617181920212223
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <glib.h>
  5. struct IniValue {
  6. char *key;
  7. int iniKeySize;
  8. int keySize;
  9. };
  10. int setIniValue(const char *section, const char *key, const char *value,
  11. const char *filepath);
  12. int getIniValue(const char *section, const char *key,
  13. const char *default_value, char *buffer, int buflen,
  14. const char *filepath);
  15. int getIniSize(const char *section, const char *key, const char *filepath);
  16. int deleteIniValue(const char *section, const char *key, const char *filepath);
  17. void writeIniFile(GKeyFile * key_file, const char *filepath);
  18. struct IniValue allocateIni(const char *section, const char *key,
  19. const char *filepath);
  20. void freeIni(struct IniValue iniValue);