Add libgio loader
This commit is contained in:
parent
b09252f13e
commit
4b75b10542
6 changed files with 257 additions and 0 deletions
46
chromium_src/library_loaders/libgio.h
Normal file
46
chromium_src/library_loaders/libgio.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
// 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;
|
||||
typeof(&::g_settings_get_int) g_settings_get_int;
|
||||
typeof(&::g_settings_get_strv) g_settings_get_strv;
|
||||
typeof(&::g_settings_list_schemas) g_settings_list_schemas;
|
||||
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue