Lines Matching refs: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 /* returns the value of a given key from an IniFile.
49 const char* iniFile_getValue( IniFile* f, const char* key );
54 char* iniFile_getString( IniFile* f, const char* key, const char* defaultValue );
59 int iniFile_getInteger( IniFile* f, const char* key, int defaultValue );
64 int64_t iniFile_getInt64( IniFile* f, const char* key, int64_t defaultValue );
69 double iniFile_getDouble( IniFile* f, const char* key, double defaultValue );
75 int iniFile_getBoolean( IniFile* f, const char* key, const char* defaultValue );
83 int64_t iniFile_getDiskSize( IniFile* f, const char* key, const char* defaultValue );
85 /* These functions are used to set values in an IniFile */
86 void iniFile_setValue( IniFile* f, const char* key, const char* value );
87 void iniFile_setInteger( IniFile* f, const char* key, int value );
88 void iniFile_setInt64( IniFile* f, const char* key, int64_t value );
89 void iniFile_setDouble( IniFile* f, const char* key, double value );
90 void iniFile_setBoolean( IniFile* f, const char* key, int value );
91 void iniFile_setDiskSize( IniFile* f, const char* key, int64_t size );