codegen: Install as private library for sharing between internal components
[vala-gnome.git] / vapi / libgnome-2.0.vapi
blob685ae8d13c45d93136f3198c525110a0ebe23963
1 /* libgnome-2.0.vapi generated by vapigen, do not modify. */
3 namespace Gnome {
4         [CCode (cheader_filename = "libgnome/libgnome.h", type_id = "gnome_module_info_get_type ()")]
5         [Compact]
6         public class ModuleInfo {
7                 public weak Gnome.ModuleClassInitHook class_init;
8                 public weak string description;
9                 public weak Gnome.ModuleGetGOptionGroupFunc get_goption_group_func;
10                 public weak Gnome.ModuleInitHook init_pass;
11                 public weak Gnome.ModuleHook instance_init;
12                 public weak string name;
13                 public weak string opt_prefix;
14                 public weak Gnome.ModuleHook post_args_parse;
15                 public weak Gnome.ModuleHook pre_args_parse;
16                 public weak Gnome.ModuleRequirement requirements;
17                 public weak string version;
18         }
19         [CCode (cheader_filename = "libgnome/libgnome.h")]
20         [Compact]
21         public class ModuleRequirement {
22                 public weak Gnome.ModuleInfo module_info;
23                 public weak string required_version;
24         }
25         [CCode (cheader_filename = "libgnome/libgnome.h")]
26         public class Program : GLib.Object {
27                 [CCode (has_construct_function = false)]
28                 protected Program ();
29                 public static unowned Gnome.Program @get ();
30                 public unowned string get_app_id ();
31                 public unowned string get_app_version ();
32                 public unowned string get_human_readable_name ();
33                 public static unowned Gnome.Program init (string app_id, string app_version, Gnome.ModuleInfo module_info, [CCode (array_length_pos = 3.9)] string[] argv, ...);
34                 public static unowned Gnome.Program init_paramv (GLib.Type type, string app_id, string app_version, Gnome.ModuleInfo module_info, [CCode (array_length_pos = 4.9)] string[] argv, uint nparams, GLib.Parameter @params);
35                 public static unowned Gnome.Program initv (GLib.Type type, string app_id, string app_version, Gnome.ModuleInfo module_info, [CCode (array_length_pos = 4.9)] string[] argv, string first_property_name, void* args);
36                 public class uint install_property (GLib.ObjectGetPropertyFunc get_fn, GLib.ObjectSetPropertyFunc set_fn, GLib.ParamSpec pspec);
37                 public unowned string locate_file (Gnome.FileDomain domain, string file_name, bool only_if_exists, GLib.SList ret_locations);
38                 public static unowned Gnome.ModuleInfo module_load (string mod_name);
39                 public static void module_register (Gnome.ModuleInfo module_info);
40                 public static bool module_registered (Gnome.ModuleInfo module_info);
41                 [NoAccessorMethod]
42                 public string app_datadir { owned get; set; }
43                 public string app_id { get; }
44                 [NoAccessorMethod]
45                 public string app_libdir { owned get; set; }
46                 [NoAccessorMethod]
47                 public string app_prefix { owned get; set; }
48                 [NoAccessorMethod]
49                 public string app_sysconfdir { owned get; set; }
50                 public string app_version { get; }
51                 [NoAccessorMethod]
52                 public bool create_directories { get; construct; }
53                 [NoAccessorMethod]
54                 public bool enable_sound { get; set; }
55                 [NoAccessorMethod]
56                 public string espeaker { owned get; set; }
57                 [NoAccessorMethod]
58                 public string gnome_datadir { owned get; construct; }
59                 [NoAccessorMethod]
60                 public string gnome_libdir { owned get; construct; }
61                 [NoAccessorMethod]
62                 public string gnome_path { owned get; construct; }
63                 [NoAccessorMethod]
64                 public string gnome_prefix { owned get; construct; }
65                 [NoAccessorMethod]
66                 public string gnome_sysconfdir { owned get; construct; }
67                 [NoAccessorMethod]
68                 public void* goption_context { get; construct; }
69                 public string human_readable_name { get; construct; }
70                 [NoAccessorMethod]
71                 public void* popt_context { get; }
72                 public int popt_flags { construct; }
73                 public void* popt_table { construct; }
74         }
75         [CCode (cheader_filename = "libgnome/libgnome.h")]
76         [Compact]
77         public class Trigger {
78                 public weak string level;
79                 public Gnome.TriggerType type;
80                 public void* u;
81         }
82         [CCode (cheader_filename = "libgnome/libgnome.h", cprefix = "GNOME_FILE_DOMAIN_", has_type_id = false)]
83         public enum FileDomain {
84                 UNKNOWN,
85                 LIBDIR,
86                 DATADIR,
87                 SOUND,
88                 PIXMAP,
89                 CONFIG,
90                 HELP,
91                 APP_LIBDIR,
92                 APP_DATADIR,
93                 APP_SOUND,
94                 APP_PIXMAP,
95                 APP_CONFIG,
96                 APP_HELP
97         }
98         [CCode (cheader_filename = "libgnome/libgnome.h", cprefix = "GNOME_HELP_ERROR_", has_type_id = false)]
99         public enum HelpError {
100                 INTERNAL,
101                 NOT_FOUND
102         }
103         [CCode (cheader_filename = "libgnome/libgnome.h", cprefix = "GTRIG_", has_type_id = false)]
104         public enum TriggerType {
105                 NONE,
106                 FUNCTION,
107                 COMMAND,
108                 MEDIAPLAY
109         }
110         [CCode (cheader_filename = "libgnome/libgnome.h", cprefix = "GNOME_URL_ERROR_", has_type_id = false)]
111         public enum URLError {
112                 PARSE,
113                 LAUNCH,
114                 URL,
115                 NO_DEFAULT,
116                 NOT_SUPPORTED,
117                 VFS,
118                 CANCELLED
119         }
120         [CCode (cheader_filename = "libgnome/libgnome.h", has_target = false)]
121         public delegate void ModuleClassInitHook (void* klass, Gnome.ModuleInfo mod_info);
122         [CCode (cheader_filename = "libgnome/libgnome.h", has_target = false)]
123         public delegate unowned GLib.OptionGroup ModuleGetGOptionGroupFunc ();
124         [CCode (cheader_filename = "libgnome/libgnome.h", has_target = false)]
125         public delegate void ModuleHook (Gnome.Program program, Gnome.ModuleInfo mod_info);
126         [CCode (cheader_filename = "libgnome/libgnome.h", has_target = false)]
127         public delegate void ModuleInitHook (Gnome.ModuleInfo mod_info);
128         [CCode (cheader_filename = "libgnome/libgnome.h", has_target = false)]
129         public delegate void TriggerActionFunction (string msg, string level, string[] supinfo);
130         [CCode (cheader_filename = "libgnome/libgnome.h")]
131         public const string DOT_GNOME;
132         [CCode (cheader_filename = "libgnome/libgnome.h")]
133         public const string DOT_GNOME_PRIVATE;
134         [CCode (cheader_filename = "libgnome/libgnome.h")]
135         public const string PARAM_APP_DATADIR;
136         [CCode (cheader_filename = "libgnome/libgnome.h")]
137         public const string PARAM_APP_ID;
138         [CCode (cheader_filename = "libgnome/libgnome.h")]
139         public const string PARAM_APP_LIBDIR;
140         [CCode (cheader_filename = "libgnome/libgnome.h")]
141         public const string PARAM_APP_PREFIX;
142         [CCode (cheader_filename = "libgnome/libgnome.h")]
143         public const string PARAM_APP_SYSCONFDIR;
144         [CCode (cheader_filename = "libgnome/libgnome.h")]
145         public const string PARAM_APP_VERSION;
146         [CCode (cheader_filename = "libgnome/libgnome.h")]
147         public const string PARAM_CREATE_DIRECTORIES;
148         [CCode (cheader_filename = "libgnome/libgnome.h")]
149         public const string PARAM_ENABLE_SOUND;
150         [CCode (cheader_filename = "libgnome/libgnome.h")]
151         public const string PARAM_ESPEAKER;
152         [CCode (cheader_filename = "libgnome/libgnome.h")]
153         public const string PARAM_GNOME_DATADIR;
154         [CCode (cheader_filename = "libgnome/libgnome.h")]
155         public const string PARAM_GNOME_LIBDIR;
156         [CCode (cheader_filename = "libgnome/libgnome.h")]
157         public const string PARAM_GNOME_PATH;
158         [CCode (cheader_filename = "libgnome/libgnome.h")]
159         public const string PARAM_GNOME_PREFIX;
160         [CCode (cheader_filename = "libgnome/libgnome.h")]
161         public const string PARAM_GNOME_SYSCONFDIR;
162         [CCode (cheader_filename = "libgnome/libgnome.h")]
163         public const string PARAM_GOPTION_CONTEXT;
164         [CCode (cheader_filename = "libgnome/libgnome.h")]
165         public const string PARAM_HUMAN_READABLE_NAME;
166         [CCode (cheader_filename = "libgnome/libgnome.h")]
167         public const string PARAM_POPT_CONTEXT;
168         [CCode (cheader_filename = "libgnome/libgnome.h")]
169         public const string PARAM_POPT_FLAGS;
170         [CCode (cheader_filename = "libgnome/libgnome.h")]
171         public const string PARAM_POPT_TABLE;
172         [CCode (cheader_filename = "libgnome/libgnome.h")]
173         public static unowned Gnome.ModuleInfo bonobo_module_info_get ();
174         [CCode (cheader_filename = "libgnome/libgnome.h")]
175         public static void clearenv ();
176         [CCode (cheader_filename = "libgnome/libgnome.h")]
177         public static int execute_async (string dir, [CCode (array_length_pos = 1.9)] string[] argv);
178         [CCode (cheader_filename = "libgnome/libgnome.h")]
179         public static int execute_async_fds (string dir, [CCode (array_length_pos = 1.9)] string[] argv, bool close_fds);
180         [CCode (cheader_filename = "libgnome/libgnome.h")]
181         public static int execute_async_with_env (string dir, [CCode (array_length_pos = 1.9)] string[] argv, string[] envv);
182         [CCode (cheader_filename = "libgnome/libgnome.h")]
183         public static int execute_async_with_env_fds (string dir, [CCode (array_length_pos = 1.9)] string[] argv, [CCode (array_length_pos = 2.9)] string[] envv, bool close_fds);
184         [CCode (cheader_filename = "libgnome/libgnome.h")]
185         public static int execute_shell (string dir, string commandline);
186         [CCode (cheader_filename = "libgnome/libgnome.h")]
187         public static int execute_shell_fds (string dir, string commandline, bool close_fds);
188         [CCode (cheader_filename = "libgnome/libgnome.h")]
189         public static int execute_terminal_shell (string dir, string commandline);
190         [CCode (cheader_filename = "libgnome/libgnome.h")]
191         public static int execute_terminal_shell_fds (string dir, string commandline, bool close_fds);
192         [CCode (cheader_filename = "libgnome/libgnome.h", cname = "g_extension_pointer")]
193         public static unowned string g_extension_pointer (string path);
194         [CCode (cheader_filename = "libgnome/libgnome.h")]
195         public static unowned string gconf_get_app_settings_relative (Gnome.Program program, string subkey);
196         [CCode (cheader_filename = "libgnome/libgnome.h")]
197         public static unowned string gconf_get_gnome_libs_settings_relative (string subkey);
198         [CCode (cheader_filename = "libgnome/libgnome.h")]
199         public static bool help_display (string file_name, string link_id) throws GLib.Error;
200         [CCode (cheader_filename = "libgnome/libgnome.h")]
201         public static bool help_display_desktop (Gnome.Program program, string doc_id, string file_name, string link_id) throws GLib.Error;
202         [CCode (cheader_filename = "libgnome/libgnome.h")]
203         public static bool help_display_desktop_with_env (Gnome.Program program, string doc_id, string file_name, string link_id, out unowned string envp) throws GLib.Error;
204         [CCode (cheader_filename = "libgnome/libgnome.h")]
205         public static bool help_display_uri (string help_uri) throws GLib.Error;
206         [CCode (cheader_filename = "libgnome/libgnome.h")]
207         public static bool help_display_uri_with_env (string help_uri, out unowned string envp) throws GLib.Error;
208         [CCode (cheader_filename = "libgnome/libgnome.h")]
209         public static bool help_display_with_doc_id (Gnome.Program program, string doc_id, string file_name, string link_id) throws GLib.Error;
210         [CCode (cheader_filename = "libgnome/libgnome.h")]
211         public static bool help_display_with_doc_id_and_env (Gnome.Program program, string doc_id, string file_name, string link_id, out unowned string envp) throws GLib.Error;
212         [CCode (cheader_filename = "libgnome/libgnome.h")]
213         public static GLib.Quark help_error_quark ();
214         [CCode (cheader_filename = "libgnome/libgnome.h", cname = "libgnome_module_info_get")]
215         public static unowned Gnome.ModuleInfo libgnome_module_info_get ();
216         [CCode (cheader_filename = "libgnome/libgnome.h")]
217         public static void prepend_terminal_to_vector (int argc, out unowned string argv);
218         [CCode (cheader_filename = "libgnome/libgnome.h")]
219         public static int setenv (string name, string value, bool overwrite);
220         [CCode (cheader_filename = "libgnome/libgnome.h")]
221         public static int sound_connection_get ();
222         [CCode (cheader_filename = "libgnome/libgnome.h")]
223         public static void sound_init (string hostname);
224         [CCode (cheader_filename = "libgnome/libgnome.h")]
225         public static void sound_play (string filename);
226         [CCode (cheader_filename = "libgnome/libgnome.h")]
227         public static int sound_sample_load (string sample_name, string filename);
228         [CCode (cheader_filename = "libgnome/libgnome.h")]
229         public static void sound_shutdown ();
230         [CCode (cheader_filename = "libgnome/libgnome.h")]
231         public static void triggers_add_trigger (Gnome.Trigger nt);
232         [CCode (cheader_filename = "libgnome/libgnome.h")]
233         public static void triggers_do (string msg, string level);
234         [CCode (cheader_filename = "libgnome/libgnome.h")]
235         public static void triggers_vadd_trigger (Gnome.Trigger nt, string[] supinfo);
236         [CCode (cheader_filename = "libgnome/libgnome.h")]
237         public static void triggers_vdo (string msg, string level, string[] supinfo);
238         [CCode (cheader_filename = "libgnome/libgnome.h")]
239         public static void unsetenv (string name);
240         [CCode (cheader_filename = "libgnome/libgnome.h")]
241         public static GLib.Quark url_error_quark ();
242         [CCode (cheader_filename = "libgnome/libgnome.h")]
243         public static bool url_show (string url) throws GLib.Error;
244         [CCode (cheader_filename = "libgnome/libgnome.h")]
245         public static bool url_show_with_env (string url, out unowned string envp) throws GLib.Error;
246         [CCode (cheader_filename = "libgnome/libgnome.h")]
247         public static unowned string user_accels_dir_get ();
248         [CCode (cheader_filename = "libgnome/libgnome.h")]
249         public static unowned string user_dir_get ();
250         [CCode (cheader_filename = "libgnome/libgnome.h")]
251         public static unowned string user_private_dir_get ();
252         [CCode (cheader_filename = "libgnome/libgnome.h")]
253         public static unowned string util_user_shell ();