Add logic to object array typecheck to handle arrays of unmanaged pointers (#14733)
[mono-project.git] / mono / eglib / gmodule.h
blob7976684f19c539da939350ac2151409fea5b0f53
1 #ifndef __GLIB_GMODULE_H
2 #define __GLIB_GMODULE_H
4 #include <glib.h>
6 #define G_MODULE_IMPORT extern
7 #ifdef G_OS_WIN32
8 #define G_MODULE_EXPORT __declspec(dllexport)
9 #else
10 #define G_MODULE_EXPORT
11 #endif
13 G_BEGIN_DECLS
16 * Modules
18 typedef enum {
19 G_MODULE_BIND_LAZY = 0x01,
20 G_MODULE_BIND_LOCAL = 0x02,
21 G_MODULE_BIND_MASK = 0x03
22 } GModuleFlags;
24 G_ENUM_FUNCTIONS (GModuleFlags)
26 typedef struct _GModule GModule;
28 G_EXTERN_C // Used by libtest, at least.
29 GModule *g_module_open (const gchar *file, GModuleFlags flags);
30 G_EXTERN_C // Used by libtest, at least.
31 gboolean g_module_symbol (GModule *module, const gchar *symbol_name,
32 gpointer *symbol);
33 const gchar *g_module_error (void);
34 gboolean g_module_close (GModule *module);
35 gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
37 extern char *gmodule_libprefix;
38 extern char *gmodule_libsuffix;
40 G_END_DECLS
42 #endif