• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #pragma once
2 
3 #define G_KEY_FILE_NONE 0
4 
5 typedef void GError;
6 typedef void GKeyFile;
7 
g_clear_error(GError * error)8 static inline void g_clear_error(GError *error) { }
g_error_free(GError * error)9 static inline void g_error_free(GError *error) { }
g_get_home_dir(void)10 static inline char *g_get_home_dir(void) { return "/data/local/tmp"; }
g_key_file_free(GKeyFile * file)11 static inline void g_key_file_free(GKeyFile *file) { }
g_key_file_new(void)12 static inline GKeyFile *g_key_file_new(void) { return NULL; }
g_key_file_get_integer(GKeyFile * key_file,const char * group_name,const char * key,GError ** error)13 static inline int g_key_file_get_integer(GKeyFile *key_file,
14     const char *group_name, const char *key, GError **error) { return 0; }
g_key_file_get_string(GKeyFile * key_file,const char * group_name,const char * key,GError ** error)15 static inline char *g_key_file_get_string(GKeyFile *key_file,
16     const char *group_name, const char *key, GError **error) { return NULL; }
g_key_file_load_from_file(GKeyFile * key_file,const char * file,int flags,GError ** error)17 static inline bool g_key_file_load_from_file(GKeyFile *key_file,
18     const char *file, int flags, GError **error) { return false; }
19