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_name);
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 [Version (since = "1.6")]
20 public void prepend_search_path (string module_dir, string? data_dir);
21 public bool provides_extension (Peas.PluginInfo info, GLib.Type extension_type);
22 public void rescan_plugins ();
23 public void set_loaded_plugins ([CCode (array_length = false, array_null_terminated = true)] string[]? plugin_names);
24 [CCode (cname = "peas_engine_load_plugin")]
25 public bool try_load_plugin (Peas.PluginInfo info);
26 [CCode (cname = "peas_engine_unload_plugin")]
27 public bool try_unload_plugin (Peas.PluginInfo info);
28 [CCode (has_construct_function = false)]
29 [Version (since = "1.14")]
30 public Engine.with_nonglobal_loaders ();
31 [CCode (array_length = false, array_null_terminated = true)]
32 public string[] loaded_plugins { owned get; set; }
34 [Version (since = "1.14")]
35 public bool nonglobal_loaders { get; construct; }
36 public void* plugin_list { get; }
37 public virtual signal void load_plugin (Peas.PluginInfo info);
38 public virtual signal void unload_plugin (Peas.PluginInfo info);
40 [CCode (cheader_filename = "libpeas/peas.h")]
41 public class Extension : GLib.Object {
42 [CCode (has_construct_function = false)]
43 protected Extension ();
45 [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_base_get_type ()")]
46 public abstract class ExtensionBase : GLib.Object {
47 [CCode (has_construct_function = false)]
48 protected ExtensionBase ();
49 public string get_data_dir ();
50 public unowned Peas.PluginInfo get_plugin_info ();
51 public string data_dir { owned get; }
52 public Peas.PluginInfo plugin_info { get; construct; }
54 [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_set_get_type ()")]
55 public class ExtensionSet : GLib.Object {
56 [CCode (has_construct_function = false)]
57 public ExtensionSet (Peas.Engine? engine, GLib.Type exten_type, ...);
59 public virtual bool call (string method_name, GI.Argument args);
60 [Version (since = "1.2")]
61 public void @foreach (Peas.ExtensionSetForeachFunc func);
62 public unowned Peas.Extension get_extension (Peas.PluginInfo info);
63 [CCode (cname = "peas_extension_set_newv", has_construct_function = false)]
64 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);
66 public void* construct_properties { construct; }
68 public Peas.Engine engine { owned get; construct; }
70 public GLib.Type extension_type { get; construct; }
71 public virtual signal void extension_added (Peas.PluginInfo info, GLib.Object exten);
72 public virtual signal void extension_removed (Peas.PluginInfo info, GLib.Object exten);
74 [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_object_module_get_type ()")]
75 public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
76 [CCode (has_construct_function = false)]
77 protected ObjectModule ();
78 public void register_extension_factory (GLib.Type exten_type, owned Peas.FactoryFunc factory_func);
79 public void register_extension_type (GLib.Type exten_type, GLib.Type impl_type);
81 public bool local_linkage { get; construct; }
83 public string module_name { owned get; construct; }
85 public string path { owned get; construct; }
87 public bool resident { get; construct; }
89 public string symbol { owned get; construct; }
91 [CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
93 public class PluginInfo {
94 [CCode (array_length = false, array_null_terminated = true)]
95 public unowned string[] get_authors ();
96 public unowned string get_copyright ();
97 public unowned string get_data_dir ();
98 [CCode (array_length = false, array_null_terminated = true)]
99 public unowned string[] get_dependencies ();
100 public unowned string get_description ();
101 [Version (since = "1.6")]
102 public unowned string get_external_data (string key);
103 public unowned string get_help_uri ();
104 public unowned string get_icon_name ();
105 public unowned string get_module_dir ();
106 public unowned string get_module_name ();
107 public unowned string get_name ();
108 [Version (since = "1.4")]
109 public GLib.Settings get_settings (string? schema_id);
110 public unowned string get_version ();
111 public unowned string get_website ();
112 public bool has_dependency (string module_name);
113 public bool is_available () throws GLib.Error;
114 public bool is_builtin ();
115 public bool is_hidden ();
116 public bool is_loaded ();
118 [CCode (cheader_filename = "libpeas/peas.h", type_cname = "PeasActivatableInterface", type_id = "peas_activatable_get_type ()")]
119 public interface Activatable : GLib.Object {
120 public abstract void activate ();
121 public abstract void deactivate ();
122 public abstract void update_state ();
124 public abstract GLib.Object object { owned get; construct; }
126 [CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_")]
127 public errordomain PluginInfoError {
132 public static GLib.Quark quark ();
134 [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 3.9)]
135 [Version (since = "1.2")]
136 public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten);
137 [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
138 public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);