CodeWriter: Write [Diagnostics] attribute
[vala-lang.git] / vapi / packages / gio-unix-2.0 / gio-unix-2.0.gi
blobc579c8bb8e9da97623620aba53194f7c5cb18115
1 <?xml version="1.0"?>
2 <api version="1.0">
3 <namespace name="GLib">
4 <function name="g_unix_is_mount_path_system_internal" symbol="g_unix_is_mount_path_system_internal">
5 <return-type type="gboolean"/>
6 <parameters>
7 <parameter name="mount_path" type="char*"/>
8 </parameters>
9 </function>
10 <function name="g_unix_mount_at" symbol="g_unix_mount_at">
11 <return-type type="GUnixMountEntry*"/>
12 <parameters>
13 <parameter name="mount_path" type="char*"/>
14 <parameter name="time_read" type="guint64*"/>
15 </parameters>
16 </function>
17 <function name="g_unix_mount_compare" symbol="g_unix_mount_compare">
18 <return-type type="gint"/>
19 <parameters>
20 <parameter name="mount1" type="GUnixMountEntry*"/>
21 <parameter name="mount2" type="GUnixMountEntry*"/>
22 </parameters>
23 </function>
24 <function name="g_unix_mount_free" symbol="g_unix_mount_free">
25 <return-type type="void"/>
26 <parameters>
27 <parameter name="mount_entry" type="GUnixMountEntry*"/>
28 </parameters>
29 </function>
30 <function name="g_unix_mount_get_device_path" symbol="g_unix_mount_get_device_path">
31 <return-type type="char*"/>
32 <parameters>
33 <parameter name="mount_entry" type="GUnixMountEntry*"/>
34 </parameters>
35 </function>
36 <function name="g_unix_mount_get_fs_type" symbol="g_unix_mount_get_fs_type">
37 <return-type type="char*"/>
38 <parameters>
39 <parameter name="mount_entry" type="GUnixMountEntry*"/>
40 </parameters>
41 </function>
42 <function name="g_unix_mount_get_mount_path" symbol="g_unix_mount_get_mount_path">
43 <return-type type="char*"/>
44 <parameters>
45 <parameter name="mount_entry" type="GUnixMountEntry*"/>
46 </parameters>
47 </function>
48 <function name="g_unix_mount_guess_can_eject" symbol="g_unix_mount_guess_can_eject">
49 <return-type type="gboolean"/>
50 <parameters>
51 <parameter name="mount_entry" type="GUnixMountEntry*"/>
52 </parameters>
53 </function>
54 <function name="g_unix_mount_guess_icon" symbol="g_unix_mount_guess_icon">
55 <return-type type="GIcon*"/>
56 <parameters>
57 <parameter name="mount_entry" type="GUnixMountEntry*"/>
58 </parameters>
59 </function>
60 <function name="g_unix_mount_guess_name" symbol="g_unix_mount_guess_name">
61 <return-type type="char*"/>
62 <parameters>
63 <parameter name="mount_entry" type="GUnixMountEntry*"/>
64 </parameters>
65 </function>
66 <function name="g_unix_mount_guess_should_display" symbol="g_unix_mount_guess_should_display">
67 <return-type type="gboolean"/>
68 <parameters>
69 <parameter name="mount_entry" type="GUnixMountEntry*"/>
70 </parameters>
71 </function>
72 <function name="g_unix_mount_is_readonly" symbol="g_unix_mount_is_readonly">
73 <return-type type="gboolean"/>
74 <parameters>
75 <parameter name="mount_entry" type="GUnixMountEntry*"/>
76 </parameters>
77 </function>
78 <function name="g_unix_mount_is_system_internal" symbol="g_unix_mount_is_system_internal">
79 <return-type type="gboolean"/>
80 <parameters>
81 <parameter name="mount_entry" type="GUnixMountEntry*"/>
82 </parameters>
83 </function>
84 <function name="g_unix_mount_points_changed_since" symbol="g_unix_mount_points_changed_since">
85 <return-type type="gboolean"/>
86 <parameters>
87 <parameter name="time" type="guint64"/>
88 </parameters>
89 </function>
90 <function name="g_unix_mount_points_get" symbol="g_unix_mount_points_get">
91 <return-type type="GList*"/>
92 <parameters>
93 <parameter name="time_read" type="guint64*"/>
94 </parameters>
95 </function>
96 <function name="g_unix_mounts_changed_since" symbol="g_unix_mounts_changed_since">
97 <return-type type="gboolean"/>
98 <parameters>
99 <parameter name="time" type="guint64"/>
100 </parameters>
101 </function>
102 <function name="g_unix_mounts_get" symbol="g_unix_mounts_get">
103 <return-type type="GList*"/>
104 <parameters>
105 <parameter name="time_read" type="guint64*"/>
106 </parameters>
107 </function>
108 <callback name="GDesktopAppLaunchCallback">
109 <return-type type="void"/>
110 <parameters>
111 <parameter name="appinfo" type="GDesktopAppInfo*"/>
112 <parameter name="pid" type="GPid"/>
113 <parameter name="user_data" type="gpointer"/>
114 </parameters>
115 </callback>
116 <struct name="GUnixMountEntry">
117 </struct>
118 <struct name="GUnixMountMonitorClass">
119 </struct>
120 <struct name="GUnixMountPoint">
121 <method name="compare" symbol="g_unix_mount_point_compare">
122 <return-type type="gint"/>
123 <parameters>
124 <parameter name="mount1" type="GUnixMountPoint*"/>
125 <parameter name="mount2" type="GUnixMountPoint*"/>
126 </parameters>
127 </method>
128 <method name="free" symbol="g_unix_mount_point_free">
129 <return-type type="void"/>
130 <parameters>
131 <parameter name="mount_point" type="GUnixMountPoint*"/>
132 </parameters>
133 </method>
134 <method name="get_device_path" symbol="g_unix_mount_point_get_device_path">
135 <return-type type="char*"/>
136 <parameters>
137 <parameter name="mount_point" type="GUnixMountPoint*"/>
138 </parameters>
139 </method>
140 <method name="get_fs_type" symbol="g_unix_mount_point_get_fs_type">
141 <return-type type="char*"/>
142 <parameters>
143 <parameter name="mount_point" type="GUnixMountPoint*"/>
144 </parameters>
145 </method>
146 <method name="get_mount_path" symbol="g_unix_mount_point_get_mount_path">
147 <return-type type="char*"/>
148 <parameters>
149 <parameter name="mount_point" type="GUnixMountPoint*"/>
150 </parameters>
151 </method>
152 <method name="guess_can_eject" symbol="g_unix_mount_point_guess_can_eject">
153 <return-type type="gboolean"/>
154 <parameters>
155 <parameter name="mount_point" type="GUnixMountPoint*"/>
156 </parameters>
157 </method>
158 <method name="guess_icon" symbol="g_unix_mount_point_guess_icon">
159 <return-type type="GIcon*"/>
160 <parameters>
161 <parameter name="mount_point" type="GUnixMountPoint*"/>
162 </parameters>
163 </method>
164 <method name="guess_name" symbol="g_unix_mount_point_guess_name">
165 <return-type type="char*"/>
166 <parameters>
167 <parameter name="mount_point" type="GUnixMountPoint*"/>
168 </parameters>
169 </method>
170 <method name="is_loopback" symbol="g_unix_mount_point_is_loopback">
171 <return-type type="gboolean"/>
172 <parameters>
173 <parameter name="mount_point" type="GUnixMountPoint*"/>
174 </parameters>
175 </method>
176 <method name="is_readonly" symbol="g_unix_mount_point_is_readonly">
177 <return-type type="gboolean"/>
178 <parameters>
179 <parameter name="mount_point" type="GUnixMountPoint*"/>
180 </parameters>
181 </method>
182 <method name="is_user_mountable" symbol="g_unix_mount_point_is_user_mountable">
183 <return-type type="gboolean"/>
184 <parameters>
185 <parameter name="mount_point" type="GUnixMountPoint*"/>
186 </parameters>
187 </method>
188 </struct>
189 <object name="GDesktopAppInfo" parent="GObject" type-name="GDesktopAppInfo" get-type="g_desktop_app_info_get_type">
190 <implements>
191 <interface name="GAppInfo"/>
192 </implements>
193 <method name="get_filename" symbol="g_desktop_app_info_get_filename">
194 <return-type type="char*"/>
195 <parameters>
196 <parameter name="info" type="GDesktopAppInfo*"/>
197 </parameters>
198 </method>
199 <method name="get_is_hidden" symbol="g_desktop_app_info_get_is_hidden">
200 <return-type type="gboolean"/>
201 <parameters>
202 <parameter name="info" type="GDesktopAppInfo*"/>
203 </parameters>
204 </method>
205 <method name="launch_uris_as_manager" symbol="g_desktop_app_info_launch_uris_as_manager">
206 <return-type type="gboolean"/>
207 <parameters>
208 <parameter name="appinfo" type="GDesktopAppInfo*"/>
209 <parameter name="uris" type="GList*"/>
210 <parameter name="launch_context" type="GAppLaunchContext*"/>
211 <parameter name="spawn_flags" type="GSpawnFlags"/>
212 <parameter name="user_setup" type="GSpawnChildSetupFunc"/>
213 <parameter name="user_setup_data" type="gpointer"/>
214 <parameter name="pid_callback" type="GDesktopAppLaunchCallback"/>
215 <parameter name="pid_callback_data" type="gpointer"/>
216 <parameter name="error" type="GError**"/>
217 </parameters>
218 </method>
219 <constructor name="new" symbol="g_desktop_app_info_new">
220 <return-type type="GDesktopAppInfo*"/>
221 <parameters>
222 <parameter name="desktop_id" type="char*"/>
223 </parameters>
224 </constructor>
225 <constructor name="new_from_filename" symbol="g_desktop_app_info_new_from_filename">
226 <return-type type="GDesktopAppInfo*"/>
227 <parameters>
228 <parameter name="filename" type="char*"/>
229 </parameters>
230 </constructor>
231 <constructor name="new_from_keyfile" symbol="g_desktop_app_info_new_from_keyfile">
232 <return-type type="GDesktopAppInfo*"/>
233 <parameters>
234 <parameter name="key_file" type="GKeyFile*"/>
235 </parameters>
236 </constructor>
237 <method name="set_desktop_env" symbol="g_desktop_app_info_set_desktop_env">
238 <return-type type="void"/>
239 <parameters>
240 <parameter name="desktop_env" type="char*"/>
241 </parameters>
242 </method>
243 </object>
244 <object name="GUnixConnection" parent="GSocketConnection" type-name="GUnixConnection" get-type="g_unix_connection_get_type">
245 <method name="receive_credentials" symbol="g_unix_connection_receive_credentials">
246 <return-type type="GCredentials*"/>
247 <parameters>
248 <parameter name="connection" type="GUnixConnection*"/>
249 <parameter name="cancellable" type="GCancellable*"/>
250 <parameter name="error" type="GError**"/>
251 </parameters>
252 </method>
253 <method name="receive_fd" symbol="g_unix_connection_receive_fd">
254 <return-type type="gint"/>
255 <parameters>
256 <parameter name="connection" type="GUnixConnection*"/>
257 <parameter name="cancellable" type="GCancellable*"/>
258 <parameter name="error" type="GError**"/>
259 </parameters>
260 </method>
261 <method name="send_credentials" symbol="g_unix_connection_send_credentials">
262 <return-type type="gboolean"/>
263 <parameters>
264 <parameter name="connection" type="GUnixConnection*"/>
265 <parameter name="cancellable" type="GCancellable*"/>
266 <parameter name="error" type="GError**"/>
267 </parameters>
268 </method>
269 <method name="send_fd" symbol="g_unix_connection_send_fd">
270 <return-type type="gboolean"/>
271 <parameters>
272 <parameter name="connection" type="GUnixConnection*"/>
273 <parameter name="fd" type="gint"/>
274 <parameter name="cancellable" type="GCancellable*"/>
275 <parameter name="error" type="GError**"/>
276 </parameters>
277 </method>
278 </object>
279 <object name="GUnixCredentialsMessage" parent="GSocketControlMessage" type-name="GUnixCredentialsMessage" get-type="g_unix_credentials_message_get_type">
280 <method name="get_credentials" symbol="g_unix_credentials_message_get_credentials">
281 <return-type type="GCredentials*"/>
282 <parameters>
283 <parameter name="message" type="GUnixCredentialsMessage*"/>
284 </parameters>
285 </method>
286 <method name="is_supported" symbol="g_unix_credentials_message_is_supported">
287 <return-type type="gboolean"/>
288 </method>
289 <constructor name="new" symbol="g_unix_credentials_message_new">
290 <return-type type="GSocketControlMessage*"/>
291 </constructor>
292 <constructor name="new_with_credentials" symbol="g_unix_credentials_message_new_with_credentials">
293 <return-type type="GSocketControlMessage*"/>
294 <parameters>
295 <parameter name="credentials" type="GCredentials*"/>
296 </parameters>
297 </constructor>
298 <property name="credentials" type="GCredentials*" readable="1" writable="1" construct="0" construct-only="1"/>
299 </object>
300 <object name="GUnixFDList" parent="GObject" type-name="GUnixFDList" get-type="g_unix_fd_list_get_type">
301 <method name="append" symbol="g_unix_fd_list_append">
302 <return-type type="gint"/>
303 <parameters>
304 <parameter name="list" type="GUnixFDList*"/>
305 <parameter name="fd" type="gint"/>
306 <parameter name="error" type="GError**"/>
307 </parameters>
308 </method>
309 <method name="get" symbol="g_unix_fd_list_get">
310 <return-type type="gint"/>
311 <parameters>
312 <parameter name="list" type="GUnixFDList*"/>
313 <parameter name="index_" type="gint"/>
314 <parameter name="error" type="GError**"/>
315 </parameters>
316 </method>
317 <method name="get_length" symbol="g_unix_fd_list_get_length">
318 <return-type type="gint"/>
319 <parameters>
320 <parameter name="list" type="GUnixFDList*"/>
321 </parameters>
322 </method>
323 <constructor name="new" symbol="g_unix_fd_list_new">
324 <return-type type="GUnixFDList*"/>
325 </constructor>
326 <constructor name="new_from_array" symbol="g_unix_fd_list_new_from_array">
327 <return-type type="GUnixFDList*"/>
328 <parameters>
329 <parameter name="fds" type="gint*"/>
330 <parameter name="n_fds" type="gint"/>
331 </parameters>
332 </constructor>
333 <method name="peek_fds" symbol="g_unix_fd_list_peek_fds">
334 <return-type type="gint*"/>
335 <parameters>
336 <parameter name="list" type="GUnixFDList*"/>
337 <parameter name="length" type="gint*"/>
338 </parameters>
339 </method>
340 <method name="steal_fds" symbol="g_unix_fd_list_steal_fds">
341 <return-type type="gint*"/>
342 <parameters>
343 <parameter name="list" type="GUnixFDList*"/>
344 <parameter name="length" type="gint*"/>
345 </parameters>
346 </method>
347 </object>
348 <object name="GUnixFDMessage" parent="GSocketControlMessage" type-name="GUnixFDMessage" get-type="g_unix_fd_message_get_type">
349 <method name="append_fd" symbol="g_unix_fd_message_append_fd">
350 <return-type type="gboolean"/>
351 <parameters>
352 <parameter name="message" type="GUnixFDMessage*"/>
353 <parameter name="fd" type="gint"/>
354 <parameter name="error" type="GError**"/>
355 </parameters>
356 </method>
357 <method name="get_fd_list" symbol="g_unix_fd_message_get_fd_list">
358 <return-type type="GUnixFDList*"/>
359 <parameters>
360 <parameter name="message" type="GUnixFDMessage*"/>
361 </parameters>
362 </method>
363 <constructor name="new" symbol="g_unix_fd_message_new">
364 <return-type type="GSocketControlMessage*"/>
365 </constructor>
366 <constructor name="new_with_fd_list" symbol="g_unix_fd_message_new_with_fd_list">
367 <return-type type="GSocketControlMessage*"/>
368 <parameters>
369 <parameter name="fd_list" type="GUnixFDList*"/>
370 </parameters>
371 </constructor>
372 <method name="steal_fds" symbol="g_unix_fd_message_steal_fds">
373 <return-type type="gint*"/>
374 <parameters>
375 <parameter name="message" type="GUnixFDMessage*"/>
376 <parameter name="length" type="gint*"/>
377 </parameters>
378 </method>
379 <property name="fd-list" type="GUnixFDList*" readable="1" writable="1" construct="0" construct-only="1"/>
380 </object>
381 <object name="GUnixInputStream" parent="GInputStream" type-name="GUnixInputStream" get-type="g_unix_input_stream_get_type">
382 <implements>
383 <interface name="GPollableInputStream"/>
384 </implements>
385 <method name="get_close_fd" symbol="g_unix_input_stream_get_close_fd">
386 <return-type type="gboolean"/>
387 <parameters>
388 <parameter name="stream" type="GUnixInputStream*"/>
389 </parameters>
390 </method>
391 <method name="get_fd" symbol="g_unix_input_stream_get_fd">
392 <return-type type="gint"/>
393 <parameters>
394 <parameter name="stream" type="GUnixInputStream*"/>
395 </parameters>
396 </method>
397 <constructor name="new" symbol="g_unix_input_stream_new">
398 <return-type type="GInputStream*"/>
399 <parameters>
400 <parameter name="fd" type="gint"/>
401 <parameter name="close_fd" type="gboolean"/>
402 </parameters>
403 </constructor>
404 <method name="set_close_fd" symbol="g_unix_input_stream_set_close_fd">
405 <return-type type="void"/>
406 <parameters>
407 <parameter name="stream" type="GUnixInputStream*"/>
408 <parameter name="close_fd" type="gboolean"/>
409 </parameters>
410 </method>
411 <property name="close-fd" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
412 <property name="fd" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
413 </object>
414 <object name="GUnixMountMonitor" parent="GObject" type-name="GUnixMountMonitor" get-type="g_unix_mount_monitor_get_type">
415 <constructor name="new" symbol="g_unix_mount_monitor_new">
416 <return-type type="GUnixMountMonitor*"/>
417 </constructor>
418 <method name="set_rate_limit" symbol="g_unix_mount_monitor_set_rate_limit">
419 <return-type type="void"/>
420 <parameters>
421 <parameter name="mount_monitor" type="GUnixMountMonitor*"/>
422 <parameter name="limit_msec" type="int"/>
423 </parameters>
424 </method>
425 <signal name="mountpoints-changed" when="LAST">
426 <return-type type="void"/>
427 <parameters>
428 <parameter name="object" type="GUnixMountMonitor*"/>
429 </parameters>
430 </signal>
431 <signal name="mounts-changed" when="LAST">
432 <return-type type="void"/>
433 <parameters>
434 <parameter name="object" type="GUnixMountMonitor*"/>
435 </parameters>
436 </signal>
437 </object>
438 <object name="GUnixOutputStream" parent="GOutputStream" type-name="GUnixOutputStream" get-type="g_unix_output_stream_get_type">
439 <implements>
440 <interface name="GPollableOutputStream"/>
441 </implements>
442 <method name="get_close_fd" symbol="g_unix_output_stream_get_close_fd">
443 <return-type type="gboolean"/>
444 <parameters>
445 <parameter name="stream" type="GUnixOutputStream*"/>
446 </parameters>
447 </method>
448 <method name="get_fd" symbol="g_unix_output_stream_get_fd">
449 <return-type type="gint"/>
450 <parameters>
451 <parameter name="stream" type="GUnixOutputStream*"/>
452 </parameters>
453 </method>
454 <constructor name="new" symbol="g_unix_output_stream_new">
455 <return-type type="GOutputStream*"/>
456 <parameters>
457 <parameter name="fd" type="gint"/>
458 <parameter name="close_fd" type="gboolean"/>
459 </parameters>
460 </constructor>
461 <method name="set_close_fd" symbol="g_unix_output_stream_set_close_fd">
462 <return-type type="void"/>
463 <parameters>
464 <parameter name="stream" type="GUnixOutputStream*"/>
465 <parameter name="close_fd" type="gboolean"/>
466 </parameters>
467 </method>
468 <property name="close-fd" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
469 <property name="fd" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
470 </object>
471 <object name="GUnixSocketAddress" parent="GSocketAddress" type-name="GUnixSocketAddress" get-type="g_unix_socket_address_get_type">
472 <implements>
473 <interface name="GSocketConnectable"/>
474 </implements>
475 <method name="abstract_names_supported" symbol="g_unix_socket_address_abstract_names_supported">
476 <return-type type="gboolean"/>
477 </method>
478 <method name="get_address_type" symbol="g_unix_socket_address_get_address_type">
479 <return-type type="GUnixSocketAddressType"/>
480 <parameters>
481 <parameter name="address" type="GUnixSocketAddress*"/>
482 </parameters>
483 </method>
484 <method name="get_is_abstract" symbol="g_unix_socket_address_get_is_abstract">
485 <return-type type="gboolean"/>
486 <parameters>
487 <parameter name="address" type="GUnixSocketAddress*"/>
488 </parameters>
489 </method>
490 <method name="get_path" symbol="g_unix_socket_address_get_path">
491 <return-type type="char*"/>
492 <parameters>
493 <parameter name="address" type="GUnixSocketAddress*"/>
494 </parameters>
495 </method>
496 <method name="get_path_len" symbol="g_unix_socket_address_get_path_len">
497 <return-type type="gsize"/>
498 <parameters>
499 <parameter name="address" type="GUnixSocketAddress*"/>
500 </parameters>
501 </method>
502 <constructor name="new" symbol="g_unix_socket_address_new">
503 <return-type type="GSocketAddress*"/>
504 <parameters>
505 <parameter name="path" type="gchar*"/>
506 </parameters>
507 </constructor>
508 <constructor name="new_abstract" symbol="g_unix_socket_address_new_abstract">
509 <return-type type="GSocketAddress*"/>
510 <parameters>
511 <parameter name="path" type="gchar*"/>
512 <parameter name="path_len" type="gint"/>
513 </parameters>
514 </constructor>
515 <constructor name="new_with_type" symbol="g_unix_socket_address_new_with_type">
516 <return-type type="GSocketAddress*"/>
517 <parameters>
518 <parameter name="path" type="gchar*"/>
519 <parameter name="path_len" type="gint"/>
520 <parameter name="type" type="GUnixSocketAddressType"/>
521 </parameters>
522 </constructor>
523 <property name="abstract" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
524 <property name="address-type" type="GUnixSocketAddressType" readable="1" writable="1" construct="0" construct-only="1"/>
525 <property name="path" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
526 <property name="path-as-array" type="GByteArray*" readable="1" writable="1" construct="0" construct-only="1"/>
527 </object>
528 <interface name="GDesktopAppInfoLookup" type-name="GDesktopAppInfoLookup" get-type="g_desktop_app_info_lookup_get_type">
529 <requires>
530 <interface name="GObject"/>
531 </requires>
532 <method name="get_default_for_uri_scheme" symbol="g_desktop_app_info_lookup_get_default_for_uri_scheme">
533 <return-type type="GAppInfo*"/>
534 <parameters>
535 <parameter name="lookup" type="GDesktopAppInfoLookup*"/>
536 <parameter name="uri_scheme" type="char*"/>
537 </parameters>
538 </method>
539 <vfunc name="get_default_for_uri_scheme">
540 <return-type type="GAppInfo*"/>
541 <parameters>
542 <parameter name="lookup" type="GDesktopAppInfoLookup*"/>
543 <parameter name="uri_scheme" type="char*"/>
544 </parameters>
545 </vfunc>
546 </interface>
547 <interface name="GFileDescriptorBased" type-name="GFileDescriptorBased" get-type="g_file_descriptor_based_get_type">
548 <requires>
549 <interface name="GObject"/>
550 </requires>
551 <method name="get_fd" symbol="g_file_descriptor_based_get_fd">
552 <return-type type="int"/>
553 <parameters>
554 <parameter name="fd_based" type="GFileDescriptorBased*"/>
555 </parameters>
556 </method>
557 <vfunc name="get_fd">
558 <return-type type="int"/>
559 <parameters>
560 <parameter name="fd_based" type="GFileDescriptorBased*"/>
561 </parameters>
562 </vfunc>
563 </interface>
564 <constant name="G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME" type="char*" value="gio-desktop-app-info-lookup"/>
565 </namespace>
566 </api>