Native Plugin API

Native Plugin API — API for native plugins

Functions

Properties

gpointer load-func Read / Write / Construct Only
gpointer module Read / Write / Construct Only
gpointer unload-func Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GTypeModule
        ╰── GPluginNativePlugin

Implemented Interfaces

GPluginNativePlugin implements GTypePlugin and GPluginPlugin.

Description

API for use by native plugins. That is plugins written in a compiled language.

Functions

gplugin_native_plugin_get_module ()

GModule *
gplugin_native_plugin_get_module (GPluginNativePlugin *plugin);

Returns the GModule associated with this plugin. This should really only be used if you need to make your plugin resident.

[skip]

Parameters

plugin

GPluginNativePlugin instance

 

Returns

The GModule associated with this plugin.

Types and Values

GPLUGIN_TYPE_NATIVE_PLUGIN

#define GPLUGIN_TYPE_NATIVE_PLUGIN (gplugin_native_plugin_get_type())

The standard _get_type macro for GPluginNativePlugin.

GPluginNativePlugin

typedef struct _GPluginNativePlugin GPluginNativePlugin;

An instance of a loaded native plugin. A native plugin is a plugin that was compiled to machine native code, typically these are written in C/C++.

Property Details

The “load-func” property

  “load-func”                gpointer

A function pointer to the load method of the plugin.

Owner: GPluginNativePlugin

Flags: Read / Write / Construct Only

The “module” property

  “module”                   gpointer

The GModule instance for this plugin.

Owner: GPluginNativePlugin

Flags: Read / Write / Construct Only

The “unload-func” property

  “unload-func”              gpointer

A function pointer to the unload method of the plugin.

Owner: GPluginNativePlugin

Flags: Read / Write / Construct Only