PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/gtk2/src/glib/gmodule.inc

https://github.com/slibre/freepascal
Pascal | 33 lines | 15 code | 8 blank | 10 comment | 0 complexity | 3e9d7971cf5e0a124306c183d1629411 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1// included by glib2.pas
 2
 3{$IFDEF read_forward_definitions}
 4{$ENDIF read_forward_definitions}
 5
 6//------------------------------------------------------------------------------
 7
 8{$IFDEF read_interface_types}
 9 PGModule = pointer;
10 TGModuleFlags =  Longint;
11
12 TGModuleCheckInit = function (module:PGModule):Pgchar;cdecl;
13 TGModuleUnload = procedure (module:PGModule);cdecl;
14{$ENDIF read_interface_types}
15
16//------------------------------------------------------------------------------
17
18{$IFDEF read_interface_rest}
19const
20  G_MODULE_BIND_LAZY = 1 shl 0;
21  G_MODULE_BIND_MASK = 1;
22
23function  g_module_supported:gboolean;cdecl; external gmodulelib name 'g_module_supported';
24function  g_module_open(file_name:Pgchar; flags:TGModuleFlags):PGModule;cdecl;external gmodulelib name 'g_module_open';
25function  g_module_close(module:PGModule):gboolean;cdecl;external gmodulelib name 'g_module_close';
26procedure g_module_make_resident(module:PGModule);cdecl;external gmodulelib name 'g_module_make_resident';
27function  g_module_error: Pgchar;cdecl;external gmodulelib name 'g_module_error';
28function  g_module_symbol(module:PGModule; symbol_name:Pgchar; symbol:Pgpointer):  gboolean;cdecl;external gmodulelib name 'g_module_symbol';
29function  g_module_name(module:PGModule):Pgchar;cdecl;external gmodulelib name 'g_module_name';
30function  g_module_build_path(directory:Pgchar; module_name:Pgchar):Pgchar;cdecl;external gmodulelib name 'g_module_build_path';
31
32{$ENDIF read_interface_rest}
33// included by glib2.pas