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);
65 public void* construct_properties { construct; }
67 public Peas.Engine engine { owned get; construct; }
69 public GLib.Type extension_type { get; construct; }
70 public virtual signal void extension_added (Peas.PluginInfo info, GLib.Object exten);
71 public virtual signal void extension_removed (Peas.PluginInfo info, GLib.Object exten);
73 [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_object_module_get_type ()")]
74 public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
75 [CCode (has_construct_function = false)]
76 protected ObjectModule ();
77 public void register_extension_factory (GLib.Type exten_type, owned Peas.FactoryFunc factory_func);
78 public void register_extension_type (GLib.Type exten_type, GLib.Type impl_type);
80 public bool local_linkage { get; construct; }
82 public string module_name { owned get; construct; }
84 public string path { owned get; construct; }
86 public bool resident { get; construct; }
88 public string symbol { owned get; construct; }
90 [CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
92 public class PluginInfo {
93 [CCode (array_length = false, array_null_terminated = true)]
94 public unowned string[] get_authors ();
95 public unowned string get_copyright ();
96 public unowned string get_data_dir ();
97 [CCode (array_length = false, array_null_terminated = true)]
98 public unowned string[] get_dependencies ();
99 public unowned string get_description ();
100 [Version (since = "1.6")]
101 public unowned string get_external_data (string key);
102 public unowned string get_help_uri ();
103 public unowned string get_icon_name ();
104 public unowned string get_module_dir ();
105 public unowned string get_module_name ();
106 public unowned string get_name ();
107 [Version (since = "1.4")]
108 public GLib.Settings get_settings (string? schema_id);
109 public unowned string get_version ();
110 public unowned string get_website ();
111 public bool has_dependency (string module_name);
112 public bool is_available () throws GLib.Error;
113 public bool is_builtin ();
114 public bool is_hidden ();
115 public bool is_loaded ();
117 [CCode (cheader_filename = "libpeas/peas.h", type_cname = "PeasActivatableInterface", type_id = "peas_activatable_get_type ()")]
118 public interface Activatable : GLib.Object {
119 public abstract void activate ();
120 public abstract void deactivate ();
121 public abstract void update_state ();
123 public abstract GLib.Object object { owned get; construct; }
125 [CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_")]
126 public errordomain PluginInfoError {
131 public static GLib.Quark quark ();
133 [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 3.9)]
134 [Version (since = "1.2")]
135 public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten);
136 [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
137 public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);