Engine
Object Hierarchy:
Description:
[ CCode ( type_id = "peas_engine_get_type ()" ) ]
public sealed class Engine : Object, ListModel
The Engine is the object which manages the plugins.
Its role is twofold:
- it will fetch all the information about the available plugins from all the registered plugin directories;
- it will provide you an API to load, control and unload your plugins and their extensions from within your application.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public void add_search_path (string module_dir, string? data_dir)
Appends a search path to the list of paths where to look for plugins.
- public Object create_extension_with_properties (PluginInfo info, Type extension_type, string[] prop_names, Value[] prop_values)
If the plugin identified by info
implements the
extension_type
, then this function will return a new instance of this implementation.
- public string[] dup_loaded_plugins ()
Returns the list of the names of all the loaded plugins.
- public void enable_loader (string loader_name)
Enable a loader, enables a loader for plugins.
- public void garbage_collect ()
Triggers garbage collection on all the loaders currently owned by the
Engine.
- public unowned PluginInfo get_plugin_info (string plugin_name)
Gets the [class@PluginInfo] corresponding with plugin_name
, or null if plugin_name
was not found.
- public bool provides_extension (PluginInfo info, Type extension_type)
Returns if info
provides an extension for
extension_type
.
- public void rescan_plugins ()
Rescan all the registered directories to find new or updated plugins.
- public void set_loaded_plugins (string[]? plugin_names)
Sets the list of loaded plugins for this
.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.ListModel