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