// This is generated file. Do not modify directly. // Path to the code generator: tools/generate_library_loader/generate_library_loader.py . #ifndef LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H #define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H #include #define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H_DLOPEN #include class LibGioLoader { public: LibGioLoader(); ~LibGioLoader(); bool Load(const std::string& library_name) __attribute__((warn_unused_result)); bool loaded() const { return loaded_; } typeof(&::g_settings_new) g_settings_new; typeof(&::g_settings_get_child) g_settings_get_child; typeof(&::g_settings_get_string) g_settings_get_string; typeof(&::g_settings_get_boolean) g_settings_get_boolean; typeof(&::g_settings_get_uint) g_settings_get_uint; typeof(&::g_settings_get_strv) g_settings_get_strv; typeof(&::g_settings_is_writable) g_settings_is_writable; typeof(&::g_settings_list_schemas) g_settings_list_schemas; typeof(&::g_settings_list_keys) g_settings_list_keys; private: void CleanUp(bool unload); #if defined(LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H_DLOPEN) void* library_; #endif bool loaded_; // Disallow copy constructor and assignment operator. LibGioLoader(const LibGioLoader&); void operator=(const LibGioLoader&); }; #endif // LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H