1 #ifndef __RKAIQ_INI_H__ 2 #define __RKAIQ_INI_H__ 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #define INI_VERSION "0.1.1" 9 #ifdef ANDROID_OS 10 #define OFFLINE_INI_FILE "/mnt/vendor/aiq_offline.ini" 11 #else 12 #define OFFLINE_INI_FILE "/tmp/aiq_offline.ini" 13 #endif 14 15 typedef struct ini_t ini_t; 16 17 extern ini_t* rkaiq_ini_load(const char *filename); 18 extern void rkaiq_ini_free(ini_t *ini); 19 extern const char* rkaiq_ini_get(ini_t *ini, const char *section, const char *key); 20 extern int rkaiq_ini_sget(ini_t *ini, const char *section, const char *key, const char *scanfmt, void *dst); 21 22 #ifdef __cplusplus 23 } 24 #endif 25 26 #endif /*__RKAIQ_INI_H__*/ 27