/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

  1. // included by glib2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. PGModule = pointer;
  7. TGModuleFlags = Longint;
  8. TGModuleCheckInit = function (module:PGModule):Pgchar;cdecl;
  9. TGModuleUnload = procedure (module:PGModule);cdecl;
  10. {$ENDIF read_interface_types}
  11. //------------------------------------------------------------------------------
  12. {$IFDEF read_interface_rest}
  13. const
  14. G_MODULE_BIND_LAZY = 1 shl 0;
  15. G_MODULE_BIND_MASK = 1;
  16. function g_module_supported:gboolean;cdecl; external gmodulelib name 'g_module_supported';
  17. function g_module_open(file_name:Pgchar; flags:TGModuleFlags):PGModule;cdecl;external gmodulelib name 'g_module_open';
  18. function g_module_close(module:PGModule):gboolean;cdecl;external gmodulelib name 'g_module_close';
  19. procedure g_module_make_resident(module:PGModule);cdecl;external gmodulelib name 'g_module_make_resident';
  20. function g_module_error: Pgchar;cdecl;external gmodulelib name 'g_module_error';
  21. function g_module_symbol(module:PGModule; symbol_name:Pgchar; symbol:Pgpointer): gboolean;cdecl;external gmodulelib name 'g_module_symbol';
  22. function g_module_name(module:PGModule):Pgchar;cdecl;external gmodulelib name 'g_module_name';
  23. function g_module_build_path(directory:Pgchar; module_name:Pgchar):Pgchar;cdecl;external gmodulelib name 'g_module_build_path';
  24. {$ENDIF read_interface_rest}
  25. // included by glib2.pas