~diodon-team/diodon/plugin-sample

« back to all changes in this revision

Viewing changes to vapi/libpeas-1.0.vapi

  • Committer: Oliver Sauder
  • Date: 2011-10-12 14:15:03 UTC
  • Revision ID: os@esite.ch-20111012141503-mr927svd5n3z2b1r
Adding plugin sample

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 bool provides_extension (Peas.PluginInfo info, GLib.Type extension_type);
 
20
                public void rescan_plugins ();
 
21
                public void set_loaded_plugins ([CCode (array_length = false, array_null_terminated = true)] string[]? plugin_names);
 
22
                [CCode (array_length = false, array_null_terminated = true)]
 
23
                public string[] loaded_plugins { owned get; set; }
 
24
                public void* plugin_list { get; }
 
25
                [HasEmitter]
 
26
                public virtual signal void load_plugin (Peas.PluginInfo info);
 
27
                [HasEmitter]
 
28
                public virtual signal void unload_plugin (Peas.PluginInfo info);
 
29
        }
 
30
        [CCode (cheader_filename = "libpeas/peas.h")]
 
31
        public class Extension : GLib.Object {
 
32
                [CCode (has_construct_function = false)]
 
33
                protected Extension ();
 
34
                public static GLib.Type get_extension_type (Peas.Extension exten);
 
35
                public static GLib.Type get_type ();
 
36
        }
 
37
        [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_base_get_type ()")]
 
38
        public abstract class ExtensionBase : GLib.Object {
 
39
                [CCode (has_construct_function = false)]
 
40
                protected ExtensionBase ();
 
41
                public string get_data_dir ();
 
42
                public unowned Peas.PluginInfo get_plugin_info ();
 
43
                public string data_dir { owned get; }
 
44
                public Peas.PluginInfo plugin_info { get; construct; }
 
45
        }
 
46
        [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_extension_set_get_type ()")]
 
47
        public class ExtensionSet : GLib.Object {
 
48
                [CCode (has_construct_function = false)]
 
49
                public ExtensionSet (Peas.Engine engine, GLib.Type exten_type, ...);
 
50
                public void @foreach (Peas.ExtensionSetForeachFunc func, void* data);
 
51
                public unowned Peas.Extension get_extension (Peas.PluginInfo info);
 
52
                public void* construct_properties { construct; }
 
53
                [NoAccessorMethod]
 
54
                public Peas.Engine engine { owned get; construct; }
 
55
                [NoAccessorMethod]
 
56
                public GLib.Type extension_type { get; construct; }
 
57
                public virtual signal void extension_added (Peas.PluginInfo info, GLib.Object exten);
 
58
                public virtual signal void extension_removed (Peas.PluginInfo info, GLib.Object exten);
 
59
        }
 
60
        [CCode (cheader_filename = "libpeas/peas.h", type_id = "peas_object_module_get_type ()")]
 
61
        public class ObjectModule : GLib.TypeModule, GLib.TypePlugin {
 
62
                [CCode (has_construct_function = false)]
 
63
                protected ObjectModule ();
 
64
                public void register_extension_factory (GLib.Type iface_type, owned Peas.FactoryFunc factory_func);
 
65
                public void register_extension_type (GLib.Type iface_type, GLib.Type extension_type);
 
66
                [NoAccessorMethod]
 
67
                public string module_name { owned get; construct; }
 
68
                [NoAccessorMethod]
 
69
                public string path { owned get; construct; }
 
70
                [NoAccessorMethod]
 
71
                public bool resident { get; construct; }
 
72
        }
 
73
        [CCode (cheader_filename = "libpeas/peas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "peas_plugin_info_get_type ()")]
 
74
        [Compact]
 
75
        public class PluginInfo {
 
76
                [CCode (array_length = false, array_null_terminated = true)]
 
77
                public unowned string[] get_authors ();
 
78
                public unowned string get_copyright ();
 
79
                public unowned string get_data_dir ();
 
80
                [CCode (array_length = false, array_null_terminated = true)]
 
81
                public unowned string[] get_dependencies ();
 
82
                public unowned string get_description ();
 
83
                public unowned string get_help_uri ();
 
84
                public unowned string get_icon_name ();
 
85
                public unowned string get_module_dir ();
 
86
                public unowned string get_module_name ();
 
87
                public unowned string get_name ();
 
88
                public unowned string get_version ();
 
89
                public unowned string get_website ();
 
90
                public bool has_dependency (string module_name);
 
91
                public bool is_available () throws GLib.Error;
 
92
                public bool is_builtin ();
 
93
                public bool is_hidden ();
 
94
                public bool is_loaded ();
 
95
        }
 
96
        [CCode (cheader_filename = "libpeas/peas.h", type_cname = "PeasActivatableInterface", type_id = "peas_activatable_get_type ()")]
 
97
        public interface Activatable : GLib.Object {
 
98
                public abstract void activate ();
 
99
                public abstract void deactivate ();
 
100
                public abstract void update_state ();
 
101
        //[NoAccessorMethod]
 
102
        //public abstract GLib.Object object { owned get; construct; }
 
103
        }
 
104
        [CCode (cheader_filename = "libpeas/peas.h", cprefix = "PEAS_PLUGIN_INFO_ERROR_")]
 
105
        public errordomain PluginInfoError {
 
106
                LOADING_FAILED,
 
107
                LOADER_NOT_FOUND,
 
108
                DEP_NOT_FOUND,
 
109
                DEP_LOADING_FAILED;
 
110
                public static GLib.Quark quark ();
 
111
        }
 
112
        [CCode (cheader_filename = "libpeas/peas.h", has_target = false)]
 
113
        public delegate void ExtensionSetForeachFunc (Peas.ExtensionSet @set, Peas.PluginInfo info, Peas.Extension exten, void* data);
 
114
        [CCode (cheader_filename = "libpeas/peas.h", instance_pos = 1.9)]
 
115
        public delegate GLib.Object FactoryFunc ([CCode (array_length_cname = "n_parameters", array_length_pos = 0.5, array_length_type = "guint")] GLib.Parameter[] parameters);
 
116
}