Regenerate, restoring full UpCast functionality.
[girtod.git] / gtk2 / gmodule2.d
blobdc775108130546e1506a68aa1ff9692aa13f77c1
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()() nothrow {
18 return g_module_close(&this);
20 void make_resident()() nothrow {
21 g_module_make_resident(&this);
23 char* name()() nothrow {
24 return g_module_name(&this);
26 int symbol(AT0, AT1)(AT0 /*char*/ symbol_name, AT1 /*void**/ symbol) nothrow {
27 return g_module_symbol(&this, toCString!(char*)(symbol_name), UpCast!(void**)(symbol));
29 static char* /*new*/ build_path(AT0, AT1)(AT0 /*char*/ directory, AT1 /*char*/ module_name) nothrow {
30 return g_module_build_path(toCString!(char*)(directory), toCString!(char*)(module_name));
32 static char* error()() nothrow {
33 return g_module_error();
35 // Unintrospectable function: open() / g_module_open()
36 static Module* open(AT0)(AT0 /*char*/ file_name, ModuleFlags flags) nothrow {
37 return g_module_open(toCString!(char*)(file_name), flags);
39 static int supported()() nothrow {
40 return g_module_supported();
44 extern (C) alias char* function (Module* module_) nothrow ModuleCheckInit;
46 enum ModuleFlags {
47 LAZY = 1,
48 LOCAL = 2,
49 MASK = 3
51 extern (C) alias void function (Module* module_) nothrow ModuleUnload;
53 // MOVED TO: Module.build_path
54 static char* /*new*/ module_build_path(AT0, AT1)(AT0 /*char*/ directory, AT1 /*char*/ module_name) nothrow {
55 return g_module_build_path(toCString!(char*)(directory), toCString!(char*)(module_name));
58 // MOVED TO: Module.error
59 static char* module_error()() nothrow {
60 return g_module_error();
63 // MOVED TO: Module.supported
64 static int module_supported()() nothrow {
65 return g_module_supported();
69 // C prototypes:
71 extern (C) {
72 int g_module_close(Module* this_) nothrow;
73 void g_module_make_resident(Module* this_) nothrow;
74 char* g_module_name(Module* this_) nothrow;
75 int g_module_symbol(Module* this_, char* symbol_name, void** symbol) nothrow;
76 char* /*new*/ g_module_build_path(char* directory, char* module_name) nothrow;
77 char* g_module_error() nothrow;
78 Module* g_module_open(char* file_name, ModuleFlags flags) nothrow;
79 int g_module_supported() nothrow;