IOModule

Provides an interface and default functions for loading and unloading modules. This is used internally to make GIO extensible, but can also be used by others to implement module loading.

Constructors

this
this(GIOModule* gIOModule, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string filename)

Creates a new GIOModule that will load the specific shared library when in use.

Members

Functions

getIOModuleStruct
GIOModule* getIOModuleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()
loadAllInDirectory
ListG loadAllInDirectory(string dirname)

Loads all the modules in the specified directory.

loadAllInDirectoryWithScope
ListG loadAllInDirectoryWithScope(string dirname, IOModuleScope scope_)

Loads all the modules in the specified directory.

scanAllInDirectory
void scanAllInDirectory(string dirname)

Scans all the modules in the specified directory, ensuring that any extension point implemented by a module is registered.

scanAllInDirectoryWithScope
void scanAllInDirectoryWithScope(string dirname, IOModuleScope scope_)

Scans all the modules in the specified directory, ensuring that any extension point implemented by a module is registered.

Variables

gIOModule
GIOModule* gIOModule;

the main Gtk struct

Inherited Members

From TypeModule

gTypeModule
GTypeModule* gTypeModule;

the main Gtk struct

getTypeModuleStruct
GTypeModule* getTypeModuleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin TypePluginT!(GTypeModule)
Undocumented in source.
getType
GType getType()
addInterface
void addInterface(GType instanceType, GType interfaceType, GInterfaceInfo* interfaceInfo)

Registers an additional interface for a type, whose interface lives in the given type plugin. If the interface was already registered for the type in this plugin, nothing will be done.

registerEnum
GType registerEnum(string name, GEnumValue* constStaticValues)

Looks up or registers an enumeration that is implemented with a particular type plugin. If a type with name @type_name was previously registered, the #GType identifier for the type is returned, otherwise the type is newly registered, and the resulting #GType identifier returned.

registerFlags
GType registerFlags(string name, GFlagsValue* constStaticValues)

Looks up or registers a flags type that is implemented with a particular type plugin. If a type with name @type_name was previously registered, the #GType identifier for the type is returned, otherwise the type is newly registered, and the resulting #GType identifier returned.

registerType
GType registerType(GType parentType, string typeName, GTypeInfo* typeInfo, GTypeFlags flags)

Looks up or registers a type that is implemented with a particular type plugin. If a type with name @type_name was previously registered, the #GType identifier for the type is returned, otherwise the type is newly registered, and the resulting #GType identifier returned.

setName
void setName(string name)

Sets the name for a #GTypeModule

unuse
void unuse()

Decreases the use count of a #GTypeModule by one. If the result is zero, the module will be unloaded. (However, the #GTypeModule will not be freed, and types associated with the #GTypeModule are not unregistered. Once a #GTypeModule is initialized, it must exist forever.)

use
bool use()

Increases the use count of a #GTypeModule by one. If the use count was zero before, the plugin will be loaded. If loading the plugin fails, the use count is reset to its prior value.

Meta