object-introspection-1.30.0 support.
[girtod.git] / gtk2 / gmodule2.d
blob17fe85f8210309d2f466e5e82a81c7e6a8637245
1 // *** DO NOT EDIT ***
2 // Automatically generated from "/usr/share/gir-1.0/GModule-2.0.gir"
4 module GModule2;
5 public import gtk2.glib2;
6 alias gtk2.glib2 GLib2;
8 // package: "gmodule-2.0";
9 // C header: "gmodule.h";
11 // c:symbol-prefixes: ["g"]
12 // c:identifier-prefixes: ["G"]
14 // module GModule2;
16 struct Module {
17 int close() {
18 return g_module_close(&this);
20 void make_resident() {
21 g_module_make_resident(&this);
23 char* name() {
24 return g_module_name(&this);
26 int symbol(char* symbol_name, void** symbol) {
27 return g_module_symbol(&this, symbol_name, symbol);
29 static char* /*new*/ build_path(char* directory, char* module_name) {
30 return g_module_build_path(directory, module_name);
32 static char* error() {
33 return g_module_error();
35 // Unintrospectable function: open() / g_module_open()
36 static Module* open(char* file_name, ModuleFlags flags) {
37 return g_module_open(file_name, flags);
39 static int supported() {
40 return g_module_supported();
44 extern (C) alias char* function (Module* module_) ModuleCheckInit;
46 enum ModuleFlags {
47 LAZY = 1,
48 LOCAL = 2,
49 MASK = 3
51 extern (C) alias void function (Module* module_) ModuleUnload;
53 static char* /*new*/ module_build_path(char* directory, char* module_name) {
54 return g_module_build_path(directory, module_name);
57 static char* module_error() {
58 return g_module_error();
61 static int module_supported() {
62 return g_module_supported();
66 // C prototypes:
68 extern (C) {
69 int g_module_close(Module* this_);
70 void g_module_make_resident(Module* this_);
71 char* g_module_name(Module* this_);
72 int g_module_symbol(Module* this_, char* symbol_name, void** symbol);
73 char* /*new*/ g_module_build_path(char* directory, char* module_name);
74 char* g_module_error();
75 Module* g_module_open(char* file_name, ModuleFlags flags);
76 int g_module_supported();