Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gmodule.h File Reference
#include <glib.h>
#include <gmodule/gmodule-visibility.h>

Go to the source code of this file.

Macros

#define G_MODULE_EXPORT
 
#define G_MODULE_IMPORT   extern
 
#define G_MODULE_ERROR   g_module_error_quark () GMODULE_AVAILABLE_MACRO_IN_2_70
 

Typedefs

typedef struct _GModule GModule
 
typedef const gchar *(* GModuleCheckInit) (GModule *module)
 
typedef void(* GModuleUnload) (GModule *module)
 

Enumerations

enum  GModuleFlags { G_MODULE_BIND_LAZY = 1 << 0 , G_MODULE_BIND_LOCAL = 1 << 1 , G_MODULE_BIND_MASK = 0x03 }
 
enum  GModuleError { G_MODULE_ERROR_FAILED , G_MODULE_ERROR_CHECK_FAILED }
 

Functions

GMODULE_AVAILABLE_IN_2_70 GQuark g_module_error_quark (void)
 
GMODULE_AVAILABLE_IN_ALL gboolean g_module_supported (void) G_GNUC_CONST
 
GMODULE_AVAILABLE_IN_ALL GModuleg_module_open (const gchar *file_name, GModuleFlags flags)
 
GMODULE_AVAILABLE_IN_2_70 GModuleg_module_open_full (const gchar *file_name, GModuleFlags flags, GError **error)
 
GMODULE_AVAILABLE_IN_ALL gboolean g_module_close (GModule *module)
 
GMODULE_AVAILABLE_IN_ALL void g_module_make_resident (GModule *module)
 
GMODULE_AVAILABLE_IN_ALL const gcharg_module_error (void)
 
GMODULE_AVAILABLE_IN_ALL gboolean g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
 
GMODULE_AVAILABLE_IN_ALL const gcharg_module_name (GModule *module)
 
GMODULE_DEPRECATED_IN_2_76 gcharg_module_build_path (const gchar *directory, const gchar *module_name)
 

Macro Definition Documentation

◆ G_MODULE_ERROR

#define G_MODULE_ERROR   g_module_error_quark () GMODULE_AVAILABLE_MACRO_IN_2_70

Definition at line 74 of file gmodule.h.

◆ G_MODULE_EXPORT

#define G_MODULE_EXPORT

Definition at line 45 of file gmodule.h.

◆ G_MODULE_IMPORT

#define G_MODULE_IMPORT   extern

Definition at line 46 of file gmodule.h.

Typedef Documentation

◆ GModule

typedef struct _GModule GModule

Definition at line 70 of file gmodule.h.

◆ GModuleCheckInit

typedef const gchar *(* GModuleCheckInit) (GModule *module)

Definition at line 71 of file gmodule.h.

◆ GModuleUnload

typedef void(* GModuleUnload) (GModule *module)

Definition at line 72 of file gmodule.h.

Enumeration Type Documentation

◆ GModuleError

GModuleError: @G_MODULE_ERROR_FAILED: there was an error loading or opening a module file @G_MODULE_ERROR_CHECK_FAILED: a module returned an error from its g_module_check_init() function

Errors returned by g_module_open_full().

Since: 2.70

Enumerator
G_MODULE_ERROR_FAILED 
G_MODULE_ERROR_CHECK_FAILED 

Definition at line 87 of file gmodule.h.

88{
GModuleError
Definition gmodule.h:88
@ G_MODULE_ERROR_CHECK_FAILED
Definition gmodule.h:90
@ G_MODULE_ERROR_FAILED
Definition gmodule.h:89

◆ GModuleFlags

GModuleFlags: @G_MODULE_BIND_LAZY: specifies that symbols are only resolved when needed. The default action is to bind all symbols when the module is loaded. @G_MODULE_BIND_LOCAL: specifies that symbols in the module should not be added to the global name space. The default action on most platforms is to place symbols in the module in the global name space, which may cause conflicts with existing symbols. @G_MODULE_BIND_MASK: mask for all flags.

Flags passed to g_module_open(). Note that these flags are not supported on all platforms.

Enumerator
G_MODULE_BIND_LAZY 
G_MODULE_BIND_LOCAL 
G_MODULE_BIND_MASK 

Definition at line 63 of file gmodule.h.

64{
65 G_MODULE_BIND_LAZY = 1 << 0,
66 G_MODULE_BIND_LOCAL = 1 << 1,
GModuleFlags
Definition gmodule.h:64
@ G_MODULE_BIND_LOCAL
Definition gmodule.h:66
@ G_MODULE_BIND_LAZY
Definition gmodule.h:65
@ G_MODULE_BIND_MASK
Definition gmodule.h:67

Function Documentation

◆ g_module_build_path()

GMODULE_DEPRECATED_IN_2_76 gchar * g_module_build_path ( const gchar * directory,
const gchar * module_name )

◆ g_module_close()

GMODULE_AVAILABLE_IN_ALL gboolean g_module_close ( GModule * module)

◆ g_module_error()

GMODULE_AVAILABLE_IN_ALL const gchar * g_module_error ( void )

◆ g_module_error_quark()

GMODULE_AVAILABLE_IN_2_70 GQuark g_module_error_quark ( void )

◆ g_module_make_resident()

GMODULE_AVAILABLE_IN_ALL void g_module_make_resident ( GModule * module)

◆ g_module_name()

GMODULE_AVAILABLE_IN_ALL const gchar * g_module_name ( GModule * module)

◆ g_module_open()

GMODULE_AVAILABLE_IN_ALL GModule * g_module_open ( const gchar * file_name,
GModuleFlags flags )

◆ g_module_open_full()

GMODULE_AVAILABLE_IN_2_70 GModule * g_module_open_full ( const gchar * file_name,
GModuleFlags flags,
GError ** error )

◆ g_module_supported()

GMODULE_AVAILABLE_IN_ALL gboolean g_module_supported ( void )

◆ g_module_symbol()

GMODULE_AVAILABLE_IN_ALL gboolean g_module_symbol ( GModule * module,
const gchar * symbol_name,
gpointer * symbol )