1
/* libpeas-1.0.vapi generated by vapigen, do not modify. */
3
[CCode (cprefix = "Peas", gir_namespace = "Peas", gir_version = "1.0", lower_case_cprefix = "peas_")]
5
[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_engine_get_type ()")]
6
public class Engine : GLib.Object {
7
[CCode (has_construct_function = false)]
9
public void add_search_path (string module_dir, string? data_dir);
10
public Peas.Extension create_extension (Peas.PluginInfo info, GLib.Type extension_type, ...);
11
public Peas.Extension create_extensionv (Peas.PluginInfo info, GLib.Type extension_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 2.5, array_length_type = "guint")] GLib.Parameter[]? parameters);
12
public void enable_loader (string loader_id);
13
public void garbage_collect ();
14
public static unowned Peas.Engine get_default ();
15
[CCode (array_length = false, array_null_terminated = true)]
16
public string[] get_loaded_plugins ();
17
public unowned Peas.PluginInfo get_plugin_info (string plugin_name);
18
public unowned GLib.List<Peas.PluginInfo> get_plugin_list ();
19
public void prepend_search_path (string module_dir, string? data_dir);
20
public bool provides_extension (Peas.PluginInfo info, GLib.Type extension_type);
21
public void rescan_plugins ();
22
public void set_loaded_plugins ([CCode (array_length = false, array_null_terminated = true)] string[]? plugin_names);
23
[CCode (cname = "peas_engine_load_plugin")]
24
public bool try_load_plugin (Peas.PluginInfo info);
25
[CCode (cname = "peas_engine_unload_plugin")]
26
public bool try_unload_plugin (Peas.PluginInfo info);
27
[CCode (array_length = false, array_null_terminated = true)]
28
public string[] loaded_plugins { owned get; set; }
29
public void* plugin_list { get; }
30
public virtual signal void load_plugin (Peas.PluginInfo info);
31
public virtual signal void unload_plugin (Peas.PluginInfo info);
33
[CCode (cheader_filename = "libpeas/peas.h")]
34
public class Extension : GLib.Object {
35
[CCode (has_construct_function = false)]
36
protected Extension ();
38
[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_base_get_type ()")]
39
public abstract class ExtensionBase : GLib.Object {
40
[CCode (has_construct_function = false)]
41
protected ExtensionBase ();
42
public string get_data_dir ();
43
public unowned Peas.PluginInfo get_plugin_info ();
44
public string data_dir { owned get; }
45
public Peas.PluginInfo plugin_info { get; construct; }
47
[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_set_get_type ()")]
48
public class ExtensionSet : GLib.Object {
49
[CCode (has_construct_function = false)]
50
public ExtensionSet (Peas.Engine engine, GLib.Type exten_type, ...);
52
public virtual bool call (string method_name, GI.Argument args);
53
public void @foreach (Peas.ExtensionSetForeachFunc func);
54
public unowned Peas.Extension get_extension (Peas.PluginInfo info);
55
[CCode (cname = "peas_extension_set_newv", has_construct_function = false)]
56
public ExtensionSet.newv (Peas.Engine? engine, GLib.Type exten_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 2.5, array_length_type = "guint")] GLib.Parameter[] parameters);
57
public void* construct_properties { construct; }
59
public Peas.Engine engine { owned get; construct; }
61
public GLib.Type extension_type { get; construct; }
62
public virtual signal void extension_added (Peas.PluginInfo info, GLib.Object exten);
63
public virtual signal void extension_removed (Peas.PluginInfo info, GLib.Object exten);
65
[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_object_module_get_type ()")]
66
public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
67
[CCode (has_construct_function = false)]
68
protected ObjectModule ();
69
public void register_extension_factory (GLib.Type iface_type, owned Peas.FactoryFunc factory_func);
70
public void register_extension_type (GLib.Type iface_type, GLib.Type extension_type);
72
public string module_name { owned get; construct; }
74
public string path { owned get; construct; }
76
public bool resident { get; construct; }
78
[CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
80
public class PluginInfo {
81
[CCode (array_length = false, array_null_terminated = true)]
82
public unowned string[] get_authors ();
83
public unowned string get_copyright ();
84
public unowned string get_data_dir ();
85
[CCode (array_length = false, array_null_terminated = true)]
86
public unowned string[] get_dependencies ();
87
public unowned string get_description ();
88
public unowned string get_external_data (string key);
89
public unowned string get_help_uri ();
90
public unowned string get_icon_name ();
91
public unowned string get_module_dir ();
92
public unowned string get_module_name ();
93
public unowned string get_name ();
94
public GLib.Settings get_settings (string? schema_id);
95
public unowned string get_version ();
96
public unowned string get_website ();
97
public bool has_dependency (string module_name);
98
public bool is_available () throws GLib.Error;
99
public bool is_builtin ();
100
public bool is_hidden ();
101
public bool is_loaded ();
103
[CCode (cheader_filename = "libpeas/peas.h", type_cname = "PeasActivatableInterface", type_id = "peas_activatable_get_type ()")]
104
public interface Activatable : GLib.Object {
105
public abstract void activate ();
106
public abstract void deactivate ();
107
public abstract void update_state ();
109
public abstract GLib.Object object { owned get; construct; }
111
[CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_")]
112
public errordomain PluginInfoError {
117
public static GLib.Quark quark ();
119
[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 3.9)]
120
public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten);
121
[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
122
public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);