[vala] libpeas-1.0: Added vapi based on Peas-1.0



commit fb8f8d56a2574fd5ce303a09d9d63848f1f1b07c
Author: Michal Hruby <michal mhr gmail com>
Date:   Sat Jul 2 10:17:58 2011 +0200

    libpeas-1.0: Added vapi based on Peas-1.0

 vapi/libpeas-1.0.vapi           |  117 +++++++++++++++++++++++++++++++++++++++
 vapi/metadata/Peas-1.0.metadata |    5 ++
 2 files changed, 122 insertions(+), 0 deletions(-)
---
diff --git a/vapi/libpeas-1.0.vapi b/vapi/libpeas-1.0.vapi
new file mode 100644
index 0000000..0c55ed8
--- /dev/null
+++ b/vapi/libpeas-1.0.vapi
@@ -0,0 +1,117 @@
+/* libpeas-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Peas", lower_case_cprefix = "peas_", gir_namespace = "Peas", gir_version = "1.0")]
+namespace Peas {
+	[CCode (type_id = "peas_engine_get_type ()", cheader_filename = "libpeas/peas.h")]
+	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, ...);
+		public Peas.Extension create_extensionv (Peas.PluginInfo info, GLib.Type extension_type, [CCode (array_length_type = "guint", array_length_cname = "n_parameters", array_length_pos = 2.5)] GLib.Parameter[]? parameters);
+		public void enable_loader (string loader_id);
+		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 ();
+		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 (array_length = false, array_null_terminated = true)]
+		public string[] loaded_plugins { owned get; set; }
+		public void* plugin_list { get; }
+		[HasEmitter]
+		public virtual signal void load_plugin (Peas.PluginInfo info);
+		[HasEmitter]
+		public virtual signal void unload_plugin (Peas.PluginInfo info);
+	}
+	[CCode (type_id = "peas_extension_get_type ()", cheader_filename = "libpeas/peas.h")]
+	public class Extension : GLib.Object {
+		[CCode (has_construct_function = false)]
+		protected Extension ();
+		public GLib.Type get_extension_type ();
+		public GLib.Type extension_type { get; construct; }
+	}
+	[CCode (type_id = "peas_extension_base_get_type ()", cheader_filename = "libpeas/peas.h")]
+	public 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 (type_id = "peas_extension_set_get_type ()", cheader_filename = "libpeas/peas.h")]
+	public class ExtensionSet : GLib.Object {
+		[CCode (has_construct_function = false)]
+		protected ExtensionSet ();
+		public void @foreach (Peas.ExtensionSetForeachFunc func);
+		public unowned Peas.Extension get_extension (Peas.PluginInfo info);
+		public static Peas.ExtensionSet newv (Peas.Engine? engine, GLib.Type exten_type, [CCode (array_length_type = "guint", array_length_cname = "n_parameters", array_length_pos = 2.5)] GLib.Parameter[] parameters);
+		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, Peas.Extension exten);
+		public virtual signal void extension_removed (Peas.PluginInfo info, Peas.Extension exten);
+	}
+	[CCode (type_id = "peas_object_module_get_type ()", cheader_filename = "libpeas/peas.h")]
+	public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
+		[CCode (has_construct_function = false)]
+		protected ObjectModule ();
+		public void register_extension_factory (GLib.Type iface_type, [CCode (delegate_target_pos = 2.1)] owned Peas.FactoryFunc factory_func);
+		public void register_extension_type (GLib.Type iface_type, GLib.Type extension_type);
+		[NoAccessorMethod]
+		public string module_name { owned get; construct; }
+		[NoAccessorMethod]
+		public string path { owned get; construct; }
+		[NoAccessorMethod]
+		public bool resident { get; construct; }
+	}
+	[Compact]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()", cheader_filename = "libpeas/peas.h")]
+	public class PluginInfo {
+		[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 ();
+		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 ();
+		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 GLib.Object object { owned get; construct; }
+	}
+	[CCode (cprefix = "PEAS_PLUGIN_INFO_ERROR_", cheader_filename = "libpeas/peas.h")]
+	public errordomain PluginInfoError {
+		LOADING_FAILED,
+		LOADER_NOT_FOUND,
+		DEP_NOT_FOUND,
+		DEP_LOADING_FAILED;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libpeas/peas.h", has_target = false)]
+	public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten, void* data);
+	[CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
+	public delegate GLib.Object FactoryFunc ([CCode (array_length_type = "guint", array_length_cname = "n_parameters", array_length_pos = 0.5)] GLib.Parameter[] parameters);
+}
diff --git a/vapi/metadata/Peas-1.0.metadata b/vapi/metadata/Peas-1.0.metadata
new file mode 100644
index 0000000..5be1b8b
--- /dev/null
+++ b/vapi/metadata/Peas-1.0.metadata
@@ -0,0 +1,5 @@
+Engine
+	.create_extension skip=false owned=true
+	.get_plugin_info unowned=true
+ExtensionBase
+	.get_plugin_info unowned=true



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]