summaryrefslogtreecommitdiff
path: root/vapi/libpeas-1.0.vapi
blob: 0f6c5da1f346a717aa712ed036436dcdf7e962ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* libpeas-1.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Peas", gir_namespace = "Peas", gir_version = "1.0", lower_case_cprefix = "peas_")]
namespace Peas {
	[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_engine_get_type ()")]
	public class Engine : GLib.Object {
		[CCode (has_construct_function = false)]
		public Engine ();
		public void add_search_path (string module_dir, string? data_dir);
		public Peas.Extension create_extension (Peas.PluginInfo info, GLib.Type extension_type, ...);
		[Version (since = "1.24")]
		public Peas.Extension create_extension_with_properties (Peas.PluginInfo info, GLib.Type extension_type, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = "guint")] string[] prop_names, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = "guint")] GLib.Value[] prop_values);
		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);
		public void enable_loader (string loader_name);
		public void garbage_collect ();
		public static unowned Peas.Engine get_default ();
		[CCode (array_length = false, array_null_terminated = true)]
		public string[] get_loaded_plugins ();
		public unowned Peas.PluginInfo get_plugin_info (string plugin_name);
		public unowned GLib.List<Peas.PluginInfo> get_plugin_list ();
		[Version (since = "1.6")]
		public void prepend_search_path (string module_dir, string? data_dir);
		public bool provides_extension (Peas.PluginInfo info, GLib.Type extension_type);
		public void rescan_plugins ();
		public void set_loaded_plugins ([CCode (array_length = false, array_null_terminated = true)] string[]? plugin_names);
		[CCode (cname = "peas_engine_load_plugin")]
		public bool try_load_plugin (Peas.PluginInfo info);
		[CCode (cname = "peas_engine_unload_plugin")]
		public bool try_unload_plugin (Peas.PluginInfo info);
		[CCode (has_construct_function = false)]
		[Version (since = "1.14")]
		public Engine.with_nonglobal_loaders ();
		[CCode (array_length = false, array_null_terminated = true)]
		public string[] loaded_plugins { owned get; set; }
		[NoAccessorMethod]
		[Version (since = "1.14")]
		public bool nonglobal_loaders { get; construct; }
		public void* plugin_list { get; }
		public virtual signal void load_plugin (Peas.PluginInfo info);
		public virtual signal void unload_plugin (Peas.PluginInfo info);
	}
	[CCode (cheader_filename = "libpeas/peas.h")]
	public class Extension : GLib.Object {
		[CCode (has_construct_function = false)]
		protected Extension ();
	}
	[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_base_get_type ()")]
	public abstract class ExtensionBase : GLib.Object {
		[CCode (has_construct_function = false)]
		protected ExtensionBase ();
		public string get_data_dir ();
		public unowned Peas.PluginInfo get_plugin_info ();
		public string data_dir { owned get; }
		public Peas.PluginInfo plugin_info { get; construct; }
	}
	[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_set_get_type ()")]
	public class ExtensionSet : GLib.Object, GLib.ListModel {
		[CCode (has_construct_function = false)]
		public ExtensionSet (Peas.Engine? engine, GLib.Type exten_type, ...);
		[NoWrapper]
		public virtual bool call (string method_name, GI.Argument args);
		[Version (since = "1.2")]
		public void @foreach (Peas.ExtensionSetForeachFunc func);
		public unowned Peas.Extension? get_extension (Peas.PluginInfo info);
		[CCode (cname = "peas_extension_set_newv", has_construct_function = false)]
		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);
		[CCode (has_construct_function = false)]
		public ExtensionSet.with_properties (Peas.Engine? engine, GLib.Type exten_type, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = "guint")] string[] prop_names, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = "guint")] GLib.Value[] prop_values);
		[NoAccessorMethod]
		public void* construct_properties { construct; }
		[NoAccessorMethod]
		public Peas.Engine engine { owned get; construct; }
		[NoAccessorMethod]
		public GLib.Type extension_type { get; construct; }
		public virtual signal void extension_added (Peas.PluginInfo info, GLib.Object exten);
		public virtual signal void extension_removed (Peas.PluginInfo info, GLib.Object exten);
	}
	[CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_object_module_get_type ()")]
	public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
		[CCode (has_construct_function = false)]
		protected ObjectModule ();
		public void register_extension_factory (GLib.Type exten_type, owned Peas.FactoryFunc factory_func);
		public void register_extension_type (GLib.Type exten_type, GLib.Type impl_type);
		[NoAccessorMethod]
		public bool local_linkage { get; construct; }
		[NoAccessorMethod]
		public string module_name { owned get; construct; }
		[NoAccessorMethod]
		public string path { owned get; construct; }
		[NoAccessorMethod]
		public bool resident { get; construct; }
		[NoAccessorMethod]
		public string symbol { owned get; construct; }
	}
	[CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
	[Compact]
	public class PluginInfo {
		public static GLib.Quark error_quark ();
		[CCode (array_length = false, array_null_terminated = true)]
		public unowned string[] get_authors ();
		public unowned string get_copyright ();
		public unowned string get_data_dir ();
		[CCode (array_length = false, array_null_terminated = true)]
		public unowned string[] get_dependencies ();
		public unowned string get_description ();
		[Version (since = "1.6")]
		public unowned string? get_external_data (string key);
		public unowned string get_help_uri ();
		public unowned string get_icon_name ();
		public unowned string get_module_dir ();
		public unowned string get_module_name ();
		public unowned string get_name ();
		[Version (since = "1.4")]
		public GLib.Settings? get_settings (string? schema_id);
		public unowned string get_version ();
		public unowned string get_website ();
		public bool has_dependency (string module_name);
		public bool is_available () throws GLib.Error;
		public bool is_builtin ();
		public bool is_hidden ();
		public bool is_loaded ();
	}
	[CCode (cheader_filename = "libpeas/peas.h", type_cname = "PeasActivatableInterface", type_id = "peas_activatable_get_type ()")]
	public interface Activatable : GLib.Object {
		public abstract void activate ();
		public abstract void deactivate ();
		public abstract void update_state ();
		[NoAccessorMethod]
		public abstract GLib.Object object { owned get; construct; }
	}
	[CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_", has_type_id = false)]
	public errordomain PluginInfoError {
		LOADING_FAILED,
		LOADER_NOT_FOUND,
		DEP_NOT_FOUND,
		DEP_LOADING_FAILED;
		[Version (replacement = "PluginInfo.error_quark")]
		public static GLib.Quark quark ();
	}
	[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 3.9)]
	[Version (since = "1.2")]
	public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten);
	[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
	public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);
}