Lines Matching defs:IniFile
22 typedef struct IniFile IniFile;
24 /* creates a new IniFile object from a config file loaded in memory.
28 IniFile* iniFile_newFromMemory( const char* text, const char* fileName );
30 /* creates a new IniFile object from a file path,
33 IniFile* iniFile_newFromFile( const char* filePath);
35 /* try to write an IniFile into a given file.
38 int iniFile_saveToFile( IniFile* f, const char* filePath );
40 /* free an IniFile object */
41 void iniFile_free( IniFile* f );
43 /* returns the number of (key.value) pairs in an IniFile */
44 int iniFile_getPairCount( IniFile* f );
46 /* return a specific (key,value) pair from an IniFile.
52 void iniFile_getPair( IniFile* f,
57 /* returns the value of a given key from an IniFile.
60 const char* iniFile_getValue( IniFile* f, const char* key );
64 char* iniFile_getString( IniFile* f, const char* key );
69 int iniFile_getInteger( IniFile* f, const char* key, int defaultValue );
74 int64_t iniFile_getInt64( IniFile* f, const char* key, int64_t defaultValue );
79 double iniFile_getDouble( IniFile* f, const char* key, double defaultValue );
83 char* iniFile_getString( IniFile* f, const char* key );
89 int iniFile_getBoolean( IniFile* f, const char* key, const char* defaultValue );
97 int64_t iniFile_getDiskSize( IniFile* f, const char* key, const char* defaultValue );