2014-10-21 10:50:50 +00:00
|
|
|
// 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 <gio/gio.h>
|
|
|
|
#define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBGIO_H_DLOPEN
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
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;
|
2014-10-21 11:31:44 +00:00
|
|
|
typeof(&::g_settings_get_uint) g_settings_get_uint;
|
2014-10-21 10:50:50 +00:00
|
|
|
typeof(&::g_settings_get_strv) g_settings_get_strv;
|
2014-10-21 11:31:44 +00:00
|
|
|
typeof(&::g_settings_is_writable) g_settings_is_writable;
|
2014-10-21 10:50:50 +00:00
|
|
|
typeof(&::g_settings_list_schemas) g_settings_list_schemas;
|
2014-10-21 11:31:44 +00:00
|
|
|
typeof(&::g_settings_list_keys) g_settings_list_keys;
|
2014-10-21 10:50:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|