~attente/vala/vala-0.20-gio-vapi

« back to all changes in this revision

Viewing changes to vapi/libpeas-1.0.vapi

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-04-05 13:45:05 UTC
  • Revision ID: package-import@ubuntu.com-20130405134505-yyk3rec9904i7p8o
Tags: upstream-0.20.1
ImportĀ upstreamĀ versionĀ 0.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* libpeas-1.0.vapi generated by vapigen, do not modify. */
 
2
 
 
3
[CCode (cprefix = "Peas", gir_namespace = "Peas", gir_version = "1.0", lower_case_cprefix = "peas_")]
 
4
namespace 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)]
 
8
                public Engine ();
 
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);
 
32
        }
 
33
        [CCode (cheader_filename = "libpeas/peas.h")]
 
34
        public class Extension : GLib.Object {
 
35
                [CCode (has_construct_function = false)]
 
36
                protected Extension ();
 
37
        }
 
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; }
 
46
        }
 
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, ...);
 
51
                [NoWrapper]
 
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; }
 
58
                [NoAccessorMethod]
 
59
                public Peas.Engine engine { owned get; construct; }
 
60
                [NoAccessorMethod]
 
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);
 
64
        }
 
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);
 
71
                [NoAccessorMethod]
 
72
                public string module_name { owned get; construct; }
 
73
                [NoAccessorMethod]
 
74
                public string path { owned get; construct; }
 
75
                [NoAccessorMethod]
 
76
                public bool resident { get; construct; }
 
77
        }
 
78
        [CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
 
79
        [Compact]
 
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 ();
 
102
        }
 
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 ();
 
108
                [NoAccessorMethod]
 
109
                public abstract GLib.Object object { owned get; construct; }
 
110
        }
 
111
        [CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_")]
 
112
        public errordomain PluginInfoError {
 
113
                LOADING_FAILED,
 
114
                LOADER_NOT_FOUND,
 
115
                DEP_NOT_FOUND,
 
116
                DEP_LOADING_FAILED;
 
117
                public static GLib.Quark quark ();
 
118
        }
 
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);
 
123
}