Home | History | Annotate | Download | only in utils

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 /* try to write an IniFile into a given file, ignorig pairs with empty values.
43 int iniFile_saveToFileClean( IniFile* f, const char* filepath );
45 /* free an IniFile object */
46 void iniFile_free( IniFile* f );
48 /* returns the number of (key.value) pairs in an IniFile */
49 int iniFile_getPairCount( IniFile* f );
51 /* returns the value of a given key from an IniFile.
54 const char* iniFile_getValue( IniFile* f, const char* key );
58 * f - Initialized IniFile instance.
66 int iniFile_getEntry(IniFile* f, int index, char** key, char** value);
71 char* iniFile_getString( IniFile* f, const char* key, const char* defaultValue );
76 int iniFile_getInteger( IniFile* f, const char* key, int defaultValue );
81 int64_t iniFile_getInt64( IniFile* f, const char* key, int64_t defaultValue );
86 double iniFile_getDouble( IniFile* f, const char* key, double defaultValue );
92 int iniFile_getBoolean( IniFile* f, const char* key, const char* defaultValue );
100 int64_t iniFile_getDiskSize( IniFile* f, const char* key, const char* defaultValue );
102 /* These functions are used to set values in an IniFile */
103 void iniFile_setValue( IniFile* f, const char* key, const char* value );
104 void iniFile_setInteger( IniFile* f, const char* key, int value );
105 void iniFile_setInt64( IniFile* f, const char* key, int64_t value );
106 void iniFile_setDouble( IniFile* f, const char* key, double value );
107 void iniFile_setBoolean( IniFile* f, const char* key, int value );
108 void iniFile_setDiskSize( IniFile* f, const char* key, int64_t size );