3 (include "gio-types.defs")
7 (define-function app_info_get_type
8 (c-name "g_app_info_get_type")
12 (define-function app_launch_context_get_type
13 (c-name "g_app_launch_context_get_type")
17 (define-function app_info_create_from_commandline
18 (c-name "g_app_info_create_from_commandline")
19 (is-constructor-of "GAppInfo")
20 (return-type "GAppInfo*")
22 '("const-char*" "commandline")
23 '("const-char*" "application_name" (null-ok) (default "NULL"))
24 '("GAppInfoCreateFlags" "flags" (default "G_APP_INFO_CREATE_NONE"))
30 (of-object "GAppInfo")
31 (c-name "g_app_info_dup")
32 (return-type "GAppInfo*")
33 (caller-owns-return #t)
37 (of-object "GAppInfo")
38 (c-name "g_app_info_equal")
39 (return-type "gboolean")
41 '("GAppInfo*" "appinfo2")
46 (of-object "GAppInfo")
47 (c-name "g_app_info_get_id")
48 (return-type "const-char*")
51 (define-method get_name
52 (of-object "GAppInfo")
53 (c-name "g_app_info_get_name")
54 (return-type "const-char*")
57 (define-method get_description
58 (of-object "GAppInfo")
59 (c-name "g_app_info_get_description")
60 (return-type "const-char*")
63 (define-method get_executable
64 (of-object "GAppInfo")
65 (c-name "g_app_info_get_executable")
66 (return-type "const-char*")
69 (define-method get_icon
70 (of-object "GAppInfo")
71 (c-name "g_app_info_get_icon")
72 (return-type "GIcon*")
76 ;; wrapped in gappinfo.override
80 "launch (files=None, launch_context=None) -> gboolean\n"
82 "Launches the application. Passes files to the launched application\n"
83 "as arguments, using the optional launch_context to get information\n"
84 "about the details of the launcher (like what screen it is on).\n"
85 "On error, error will be set accordingly.\n\n"
86 "Note that even if the launch is successful the application launched\n"
87 "can fail to start if it runs into problems during startup.\n"
88 "There is no way to detect this.\n\n"
89 "Some URIs can be changed when passed through a gio.File\n"
90 "(for instance unsupported uris with strange formats like mailto:),\n"
91 "so if you have a textual uri you want to pass in as argument,\n"
92 "consider using gio.AppInfo.launch_uris() instead."
94 (of-object "GAppInfo")
95 (c-name "g_app_info_launch")
96 (return-type "gboolean")
99 '("GAppLaunchContext*" "launch_context")
100 '("GError**" "error")
104 (define-method supports_uris
105 (of-object "GAppInfo")
106 (c-name "g_app_info_supports_uris")
107 (return-type "gboolean")
110 (define-method supports_files
111 (of-object "GAppInfo")
112 (c-name "g_app_info_supports_files")
113 (return-type "gboolean")
117 ;; wrapped in gappinfo.override
119 (define-method launch_uris
121 "launch_uris (files=None, launch_context=None) -> gboolean\n"
123 "Launches the application. Passes files to the launched application\n"
124 "as arguments, using the optional launch_context to get information\n"
125 "about the details of the launcher (like what screen it is on).\n"
126 "On error, error will be set accordingly.\n\n"
127 "Note that even if the launch is successful the application launched\n"
128 "can fail to start if it runs into problems during startup.\n"
129 "There is no way to detect this.\n\n"
131 (of-object "GAppInfo")
132 (c-name "g_app_info_launch_uris")
133 (return-type "gboolean")
136 '("GAppLaunchContext*" "launch_context")
137 '("GError**" "error")
141 (define-method should_show
142 (of-object "GAppInfo")
143 (c-name "g_app_info_should_show")
144 (return-type "gboolean")
147 (define-method set_as_default_for_type
148 (of-object "GAppInfo")
149 (c-name "g_app_info_set_as_default_for_type")
150 (return-type "gboolean")
152 '("const-char*" "content_type")
153 '("GError**" "error")
157 (define-method set_as_default_for_extension
158 (of-object "GAppInfo")
159 (c-name "g_app_info_set_as_default_for_extension")
160 (return-type "gboolean")
162 '("const-char*" "extension")
163 '("GError**" "error")
167 (define-method add_supports_type
168 (of-object "GAppInfo")
169 (c-name "g_app_info_add_supports_type")
170 (return-type "gboolean")
172 '("const-char*" "content_type")
173 '("GError**" "error")
177 (define-method can_remove_supports_type
178 (of-object "GAppInfo")
179 (c-name "g_app_info_can_remove_supports_type")
180 (return-type "gboolean")
183 (define-method remove_supports_type
184 (of-object "GAppInfo")
185 (c-name "g_app_info_remove_supports_type")
186 (return-type "gboolean")
188 '("const-char*" "content_type")
189 '("GError**" "error")
194 ;; wrapped in gio.override
196 (define-function app_info_get_all
197 (c-name "g_app_info_get_all")
198 (return-type "GList*")
202 ;; wrapped in gio.override
204 (define-function app_info_get_all_for_type
205 (c-name "g_app_info_get_all_for_type")
206 (return-type "GList*")
208 '("const-char*" "content_type")
212 (define-function app_info_get_default_for_type
213 (c-name "g_app_info_get_default_for_type")
214 (return-type "GAppInfo*")
216 '("const-char*" "content_type")
217 '("gboolean" "must_support_uris")
221 (define-function app_info_get_default_for_uri_scheme
222 (c-name "g_app_info_get_default_for_uri_scheme")
223 (return-type "GAppInfo*")
225 '("const-char*" "uri_scheme")
229 (define-function app_launch_context_new
230 (c-name "g_app_launch_context_new")
231 (is-constructor-of "GAppLaunchContext")
232 (return-type "GAppLaunchContext*")
236 ;; wrapped in gapplaunchcontext.override
238 (define-method get_display
239 (of-object "GAppLaunchContext")
240 (c-name "g_app_launch_context_get_display")
241 (return-type "char*")
243 '("GAppInfo*" "info")
249 ;; wrapped in gapplaunchcontext.override
251 (define-method get_startup_notify_id
252 (of-object "GAppLaunchContext")
253 (c-name "g_app_launch_context_get_startup_notify_id")
254 (return-type "char*")
256 '("GAppInfo*" "info")
261 (define-method launch_failed
262 (of-object "GAppLaunchContext")
263 (c-name "g_app_launch_context_launch_failed")
266 '("const-char*" "startup_notify_id")
270 (define-function app_info_reset_type_associations
271 (c-name "g_app_info_reset_type_associations")
274 '("const-char*" "content_type")
278 (define-method can_delete
279 (of-object "GAppInfo")
280 (c-name "g_app_info_can_delete")
281 (return-type "gboolean")
284 (define-method delete
285 (of-object "GAppInfo")
286 (c-name "g_app_info_delete")
287 (return-type "gboolean")
290 (define-method get_commandline
291 (of-object "GAppInfo")
292 (c-name "g_app_info_get_commandline")
293 (return-type "const-char*")
298 ;; From gasyncinitable.h
300 (define-function g_async_initable_get_type
301 (c-name "g_async_initable_get_type")
302 (return-type "GType")
305 (define-method init_async
306 (of-object "GAsyncInitable")
307 (c-name "g_async_initable_init_async")
310 '("int" "io_priority")
311 '("GCancellable*" "cancellable")
312 '("GAsyncReadyCallback" "callback")
313 '("gpointer" "user_data")
317 (define-method init_finish
318 (of-object "GAsyncInitable")
319 (c-name "g_async_initable_init_finish")
320 (return-type "gboolean")
322 '("GAsyncResult*" "res")
323 '("GError**" "error")
327 (define-function g_async_initable_new_async
328 (c-name "g_async_initable_new_async")
331 '("GType" "object_type")
332 '("int" "io_priority")
333 '("GCancellable*" "cancellable")
334 '("GAsyncReadyCallback" "callback")
335 '("gpointer" "user_data")
336 '("const-gchar*" "first_property_name")
341 (define-function g_async_initable_newv_async
342 (c-name "g_async_initable_newv_async")
345 '("GType" "object_type")
346 '("guint" "n_parameters")
347 '("GParameter*" "parameters")
348 '("int" "io_priority")
349 '("GCancellable*" "cancellable")
350 '("GAsyncReadyCallback" "callback")
351 '("gpointer" "user_data")
355 (define-function g_async_initable_new_valist_async
356 (c-name "g_async_initable_new_valist_async")
359 '("GType" "object_type")
360 '("const-gchar*" "first_property_name")
361 '("va_list" "var_args")
362 '("int" "io_priority")
363 '("GCancellable*" "cancellable")
364 '("GAsyncReadyCallback" "callback")
365 '("gpointer" "user_data")
369 (define-method new_finish
370 (of-object "GAsyncInitable")
371 (c-name "g_async_initable_new_finish")
372 (return-type "GObject*")
374 '("GAsyncResult*" "res")
375 '("GError**" "error")
381 ;; From gasyncresult.h
383 (define-function async_result_get_type
384 (c-name "g_async_result_get_type")
385 (return-type "GType")
388 (define-method get_user_data
389 (of-object "GAsyncResult")
390 (c-name "g_async_result_get_user_data")
391 (return-type "gpointer")
394 (define-method get_source_object
395 (of-object "GAsyncResult")
396 (c-name "g_async_result_get_source_object")
397 (return-type "GObject*")
402 ;; From gbufferedinputstream.h
404 (define-function buffered_input_stream_get_type
405 (c-name "g_buffered_input_stream_get_type")
406 (return-type "GType")
409 (define-function buffered_input_stream_new
410 (c-name "g_buffered_input_stream_new")
411 (is-constructor-of "GBufferedInputStream")
412 (return-type "GInputStream*")
418 (define-function buffered_input_stream_new_sized
419 (c-name "g_buffered_input_stream_new_sized")
420 (return-type "GInputStream*")
422 '("GInputStream*" "base_stream")
427 (define-method get_buffer_size
428 (of-object "GBufferedInputStream")
429 (c-name "g_buffered_input_stream_get_buffer_size")
430 (return-type "gsize")
433 (define-method set_buffer_size
434 (of-object "GBufferedInputStream")
435 (c-name "g_buffered_input_stream_set_buffer_size")
442 (define-method get_available
443 (of-object "GBufferedInputStream")
444 (c-name "g_buffered_input_stream_get_available")
445 (return-type "gsize")
449 (of-object "GBufferedInputStream")
450 (c-name "g_buffered_input_stream_peek")
451 (return-type "gsize")
459 (define-method peek_buffer
460 (of-object "GBufferedInputStream")
461 (c-name "g_buffered_input_stream_peek_buffer")
462 (return-type "const-void*")
469 (of-object "GBufferedInputStream")
470 (c-name "g_buffered_input_stream_fill")
471 (return-type "gssize")
475 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
476 '("GError**" "error")
480 (define-method fill_async
481 (of-object "GBufferedInputStream")
482 (c-name "g_buffered_input_stream_fill_async")
486 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
487 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
488 '("GAsyncReadyCallback" "callback")
489 '("gpointer" "user_data")
493 (define-method fill_finish
494 (of-object "GBufferedInputStream")
495 (c-name "g_buffered_input_stream_fill_finish")
496 (return-type "gssize")
498 '("GAsyncResult*" "result")
499 '("GError**" "error")
503 (define-method read_byte
504 (of-object "GBufferedInputStream")
505 (c-name "g_buffered_input_stream_read_byte")
508 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
509 '("GError**" "error")
515 ;; From gbufferedoutputstream.h
517 (define-function buffered_output_stream_get_type
518 (c-name "g_buffered_output_stream_get_type")
519 (return-type "GType")
522 (define-function buffered_output_stream_new
523 (c-name "g_buffered_output_stream_new")
524 (is-constructor-of "GBufferedOutputStream")
525 (return-type "GOutputStream*")
531 (define-function buffered_output_stream_new_sized
532 (c-name "g_buffered_output_stream_new_sized")
533 (return-type "GOutputStream*")
535 '("GOutputStream*" "base_stream")
540 (define-method get_buffer_size
541 (of-object "GBufferedOutputStream")
542 (c-name "g_buffered_output_stream_get_buffer_size")
543 (return-type "gsize")
546 (define-method set_buffer_size
547 (of-object "GBufferedOutputStream")
548 (c-name "g_buffered_output_stream_set_buffer_size")
555 (define-method get_auto_grow
556 (of-object "GBufferedOutputStream")
557 (c-name "g_buffered_output_stream_get_auto_grow")
558 (return-type "gboolean")
561 (define-method set_auto_grow
562 (of-object "GBufferedOutputStream")
563 (c-name "g_buffered_output_stream_set_auto_grow")
566 '("gboolean" "auto_grow")
572 ;; From gcancellable.h
574 (define-function cancellable_get_type
575 (c-name "g_cancellable_get_type")
576 (return-type "GType")
579 (define-function cancellable_new
580 (c-name "g_cancellable_new")
581 (is-constructor-of "GCancellable")
582 (return-type "GCancellable*")
585 (define-method is_cancelled
586 (of-object "GCancellable")
587 (c-name "g_cancellable_is_cancelled")
588 (return-type "gboolean")
591 (define-method set_error_if_cancelled
592 (of-object "GCancellable")
593 (c-name "g_cancellable_set_error_if_cancelled")
594 (return-type "gboolean")
596 '("GError**" "error")
600 (define-method get_fd
601 (of-object "GCancellable")
602 (c-name "g_cancellable_get_fd")
606 (define-method make_pollfd
607 (of-object "GCancellable")
608 (c-name "g_cancellable_make_pollfd")
611 '("GPollFD*" "pollfd")
615 (define-function cancellable_get_current
616 (c-name "g_cancellable_get_current")
617 (return-type "GCancellable*")
620 (define-method push_current
621 (of-object "GCancellable")
622 (c-name "g_cancellable_push_current")
626 (define-method pop_current
627 (of-object "GCancellable")
628 (c-name "g_cancellable_pop_current")
633 (of-object "GCancellable")
634 (c-name "g_cancellable_reset")
638 (define-method cancel
639 (of-object "GCancellable")
640 (c-name "g_cancellable_cancel")
644 (define-method connect
645 (of-object "GCancellable")
646 (c-name "g_cancellable_connect")
647 (return-type "gulong")
649 '("GCallback" "callback")
651 '("GDestroyNotify" "data_destroy_func")
655 (define-method disconnect
656 (of-object "GCancellable")
657 (c-name "g_cancellable_disconnect")
660 '("gulong" "handler_id")
664 (define-method release_fd
665 (of-object "GCancellable")
666 (c-name "g_cancellable_release_fd")
672 ;; From gcontenttype.h
674 (define-function content_type_equals
675 (c-name "g_content_type_equals")
676 (return-type "gboolean")
678 '("const-char*" "type1")
679 '("const-char*" "type2")
683 (define-function content_type_is_a
684 (c-name "g_content_type_is_a")
685 (return-type "gboolean")
687 '("const-char*" "type")
688 '("const-char*" "supertype")
692 (define-function content_type_is_unknown
693 (c-name "g_content_type_is_unknown")
694 (return-type "gboolean")
696 '("const-char*" "type")
700 (define-function content_type_get_description
701 (c-name "g_content_type_get_description")
702 (return-type "char*")
704 '("const-char*" "type")
708 (define-function content_type_get_mime_type
709 (c-name "g_content_type_get_mime_type")
710 (return-type "char*")
712 '("const-char*" "type")
716 (define-function content_type_get_icon
717 (c-name "g_content_type_get_icon")
718 (return-type "GIcon*")
719 (caller-owns-return #t)
721 '("const-char*" "type")
725 (define-function content_type_can_be_executable
726 (c-name "g_content_type_can_be_executable")
727 (return-type "gboolean")
729 '("const-char*" "type")
733 (define-function content_type_from_mime_type
734 (c-name "g_content_type_from_mime_type")
735 (return-type "char*")
737 '("const-char*" "mime_type")
742 ;; wrapped in gio.override
744 (define-function content_type_guess
746 "content_type_guess([filename, data, want_uncertain]) -> mime type\n"
748 "Guesses the content type based on the parameters passed.\n"
749 "Either filename or data must be specified\n"
750 "Returns a string containing the mime type.\n"
751 "If want_uncertain is set to True, return a tuple with the mime type and \n"
752 "True/False if the type guess was uncertain or not.")
753 (c-name "g_content_type_guess")
754 (return-type "char*")
756 '("const-char*" "filename")
757 '("const-guchar*" "data")
758 '("gsize" "data_size")
759 '("gboolean*" "result_uncertain")
763 (define-function content_type_guess_for_tree
764 (c-name "g_content_type_guess_for_tree")
765 (return-type "char**")
772 ;; wrapped in gio.override
774 (define-function content_types_get_registered
775 (c-name "g_content_types_get_registered")
776 (return-type "GList*")
781 ;; From gdatainputstream.h
783 (define-function data_input_stream_get_type
784 (c-name "g_data_input_stream_get_type")
785 (return-type "GType")
788 (define-function data_input_stream_new
789 (c-name "g_data_input_stream_new")
790 (is-constructor-of "GDataInputStream")
791 (return-type "GDataInputStream*")
797 (define-method set_byte_order
798 (of-object "GDataInputStream")
799 (c-name "g_data_input_stream_set_byte_order")
802 '("GDataStreamByteOrder" "order")
806 (define-method get_byte_order
807 (of-object "GDataInputStream")
808 (c-name "g_data_input_stream_get_byte_order")
809 (return-type "GDataStreamByteOrder")
812 (define-method set_newline_type
813 (of-object "GDataInputStream")
814 (c-name "g_data_input_stream_set_newline_type")
817 '("GDataStreamNewlineType" "type")
821 (define-method get_newline_type
822 (of-object "GDataInputStream")
823 (c-name "g_data_input_stream_get_newline_type")
824 (return-type "GDataStreamNewlineType")
827 (define-method read_byte
828 (of-object "GDataInputStream")
829 (c-name "g_data_input_stream_read_byte")
830 (return-type "guchar")
832 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
833 '("GError**" "error")
837 (define-method read_int16
838 (of-object "GDataInputStream")
839 (c-name "g_data_input_stream_read_int16")
840 (return-type "gint16")
842 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
843 '("GError**" "error")
847 (define-method read_uint16
848 (of-object "GDataInputStream")
849 (c-name "g_data_input_stream_read_uint16")
850 (return-type "guint16")
852 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
853 '("GError**" "error")
857 (define-method read_int32
858 (of-object "GDataInputStream")
859 (c-name "g_data_input_stream_read_int32")
860 (return-type "gint32")
862 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
863 '("GError**" "error")
867 (define-method read_uint32
868 (of-object "GDataInputStream")
869 (c-name "g_data_input_stream_read_uint32")
870 (return-type "guint32")
872 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
873 '("GError**" "error")
877 (define-method read_int64
878 (of-object "GDataInputStream")
879 (c-name "g_data_input_stream_read_int64")
880 (return-type "gint64")
882 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
883 '("GError**" "error")
887 (define-method read_uint64
888 (of-object "GDataInputStream")
889 (c-name "g_data_input_stream_read_uint64")
890 (return-type "guint64")
892 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
893 '("GError**" "error")
898 ;; wrapped in gdatainputstream.override
900 (define-method read_line
901 (of-object "GDataInputStream")
903 "S.read_line([cancellable]) -> str\n"
904 "Read a line from the stream. Return value includes ending newline\n"
906 (c-name "g_data_input_stream_read_line")
907 (return-type "char*")
910 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
911 '("GError**" "error")
916 ;; wrapped in gdatainputstream.override
918 (define-method read_until
919 (of-object "GDataInputStream")
921 "S.read_until(stop_chars, [cancellable]) -> str\n"
922 "Read characters from the string, stopping at the end or upon reading\n"
923 "any character in stop_chars. Return value does not include the stopping\n"
925 (c-name "g_data_input_stream_read_until")
926 (return-type "char*")
928 '("const-gchar*" "stop_chars")
930 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
931 '("GError**" "error")
935 (define-method read_until_async
936 (of-object "GDataInputStream")
937 (c-name "g_data_input_stream_read_until_async")
940 '("const-gchar*" "stop_chars")
941 '("gint" "io_priority")
942 '("GCancellable*" "cancellable")
943 '("GAsyncReadyCallback" "callback")
944 '("gpointer" "user_data")
948 (define-method read_until_finish
949 (of-object "GDataInputStream")
950 (c-name "g_data_input_stream_read_until_finish")
951 (return-type "char*")
953 '("GAsyncResult*" "result")
955 '("GError**" "error")
959 (define-method read_line_async
960 (of-object "GDataInputStream")
961 (c-name "g_data_input_stream_read_line_async")
964 '("gint" "io_priority")
965 '("GCancellable*" "cancellable")
966 '("GAsyncReadyCallback" "callback")
967 '("gpointer" "user_data")
971 (define-method read_line_finish
972 (of-object "GDataInputStream")
973 (c-name "g_data_input_stream_read_line_finish")
974 (return-type "char*")
976 '("GAsyncResult*" "result")
978 '("GError**" "error")
984 ;; From gdataoutputstream.h
986 (define-function data_output_stream_get_type
987 (c-name "g_data_output_stream_get_type")
988 (return-type "GType")
991 (define-function data_output_stream_new
992 (c-name "g_data_output_stream_new")
993 (is-constructor-of "GDataOutputStream")
994 (return-type "GDataOutputStream*")
1000 (define-method set_byte_order
1001 (of-object "GDataOutputStream")
1002 (c-name "g_data_output_stream_set_byte_order")
1003 (return-type "none")
1005 '("GDataStreamByteOrder" "order")
1009 (define-method get_byte_order
1010 (of-object "GDataOutputStream")
1011 (c-name "g_data_output_stream_get_byte_order")
1012 (return-type "GDataStreamByteOrder")
1015 (define-method put_byte
1016 (of-object "GDataOutputStream")
1017 (c-name "g_data_output_stream_put_byte")
1018 (return-type "gboolean")
1021 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1022 '("GError**" "error")
1026 (define-method put_int16
1027 (of-object "GDataOutputStream")
1028 (c-name "g_data_output_stream_put_int16")
1029 (return-type "gboolean")
1032 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1033 '("GError**" "error")
1037 (define-method put_uint16
1038 (of-object "GDataOutputStream")
1039 (c-name "g_data_output_stream_put_uint16")
1040 (return-type "gboolean")
1043 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1044 '("GError**" "error")
1048 (define-method put_int32
1049 (of-object "GDataOutputStream")
1050 (c-name "g_data_output_stream_put_int32")
1051 (return-type "gboolean")
1054 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1055 '("GError**" "error")
1059 (define-method put_uint32
1060 (of-object "GDataOutputStream")
1061 (c-name "g_data_output_stream_put_uint32")
1062 (return-type "gboolean")
1065 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1066 '("GError**" "error")
1070 (define-method put_int64
1071 (of-object "GDataOutputStream")
1072 (c-name "g_data_output_stream_put_int64")
1073 (return-type "gboolean")
1076 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1077 '("GError**" "error")
1081 (define-method put_uint64
1082 (of-object "GDataOutputStream")
1083 (c-name "g_data_output_stream_put_uint64")
1084 (return-type "gboolean")
1087 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1088 '("GError**" "error")
1092 (define-method put_string
1093 (of-object "GDataOutputStream")
1094 (c-name "g_data_output_stream_put_string")
1095 (return-type "gboolean")
1097 '("const-char*" "str")
1098 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1099 '("GError**" "error")
1110 (define-function drive_get_type
1111 (c-name "g_drive_get_type")
1112 (return-type "GType")
1115 (define-method get_name
1116 (of-object "GDrive")
1117 (c-name "g_drive_get_name")
1118 (return-type "char*")
1121 (define-method get_icon
1122 (of-object "GDrive")
1123 (c-name "g_drive_get_icon")
1124 (return-type "GIcon*")
1125 (caller-owns-return #t)
1128 (define-method has_volumes
1129 (of-object "GDrive")
1130 (c-name "g_drive_has_volumes")
1131 (return-type "gboolean")
1135 ;; wrapped in gdrive.override
1137 (define-method get_volumes
1138 (of-object "GDrive")
1139 (c-name "g_drive_get_volumes")
1140 (return-type "GList*")
1143 (define-method is_media_removable
1144 (of-object "GDrive")
1145 (c-name "g_drive_is_media_removable")
1146 (return-type "gboolean")
1149 (define-method has_media
1150 (of-object "GDrive")
1151 (c-name "g_drive_has_media")
1152 (return-type "gboolean")
1155 (define-method is_media_check_automatic
1156 (of-object "GDrive")
1157 (c-name "g_drive_is_media_check_automatic")
1158 (return-type "gboolean")
1161 (define-method can_poll_for_media
1162 (of-object "GDrive")
1163 (c-name "g_drive_can_poll_for_media")
1164 (return-type "gboolean")
1167 (define-method can_eject
1168 (of-object "GDrive")
1169 (c-name "g_drive_can_eject")
1170 (return-type "gboolean")
1174 ;; wrapped in gdrive.override
1176 (define-method eject
1177 (of-object "GDrive")
1178 (c-name "g_drive_eject")
1179 (return-type "none")
1181 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
1182 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1183 '("GAsyncReadyCallback" "callback")
1184 '("gpointer" "user_data")
1188 (define-method eject_finish
1189 (of-object "GDrive")
1190 (c-name "g_drive_eject_finish")
1191 (return-type "gboolean")
1193 '("GAsyncResult*" "result")
1194 '("GError**" "error")
1199 ;; wrapped in gdrive.override
1201 (define-method poll_for_media
1202 (of-object "GDrive")
1203 (c-name "g_drive_poll_for_media")
1204 (return-type "none")
1206 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1207 '("GAsyncReadyCallback" "callback")
1208 '("gpointer" "user_data")
1212 (define-method poll_for_media_finish
1213 (of-object "GDrive")
1214 (c-name "g_drive_poll_for_media_finish")
1215 (return-type "gboolean")
1217 '("GAsyncResult*" "result")
1218 '("GError**" "error")
1222 (define-method get_identifier
1223 (of-object "GDrive")
1224 (c-name "g_drive_get_identifier")
1225 (return-type "char*")
1227 '("const-char*" "kind")
1232 ;; wrapped in gdrive.override
1234 (define-method enumerate_identifiers
1235 (of-object "GDrive")
1236 (c-name "g_drive_enumerate_identifiers")
1237 (return-type "char**")
1240 (define-method can_start
1241 (of-object "GDrive")
1242 (c-name "g_drive_can_start")
1243 (return-type "gboolean")
1246 (define-method can_start_degraded
1247 (of-object "GDrive")
1248 (c-name "g_drive_can_start_degraded")
1249 (return-type "gboolean")
1252 (define-method can_stop
1253 (of-object "GDrive")
1254 (c-name "g_drive_can_stop")
1255 (return-type "gboolean")
1258 (define-method eject_with_operation
1259 (of-object "GDrive")
1260 (c-name "g_drive_eject_with_operation")
1261 (return-type "none")
1263 '("GMountUnmountFlags" "flags")
1264 '("GMountOperation*" "mount_operation")
1265 '("GCancellable*" "cancellable")
1266 '("GAsyncReadyCallback" "callback")
1267 '("gpointer" "user_data")
1271 (define-method eject_with_operation_finish
1272 (of-object "GDrive")
1273 (c-name "g_drive_eject_with_operation_finish")
1274 (return-type "gboolean")
1276 '("GAsyncResult*" "result")
1277 '("GError**" "error")
1281 (define-method get_start_stop_type
1282 (of-object "GDrive")
1283 (c-name "g_drive_get_start_stop_type")
1284 (return-type "GDriveStartStopType")
1287 (define-method start
1288 (of-object "GDrive")
1289 (c-name "g_drive_start")
1290 (return-type "none")
1292 '("GDriveStartFlags" "flags")
1293 '("GMountOperation*" "mount_operation")
1294 '("GCancellable*" "cancellable")
1295 '("GAsyncReadyCallback" "callback")
1296 '("gpointer" "user_data")
1300 (define-method start_finish
1301 (of-object "GDrive")
1302 (c-name "g_drive_start_finish")
1303 (return-type "gboolean")
1305 '("GAsyncResult*" "result")
1306 '("GError**" "error")
1311 (of-object "GDrive")
1312 (c-name "g_drive_stop")
1313 (return-type "none")
1315 '("GMountUnmountFlags" "flags")
1316 '("GMountOperation*" "mount_operation")
1317 '("GCancellable*" "cancellable")
1318 '("GAsyncReadyCallback" "callback")
1319 '("gpointer" "user_data")
1323 (define-method stop_finish
1324 (of-object "GDrive")
1325 (c-name "g_drive_stop_finish")
1326 (return-type "gboolean")
1328 '("GAsyncResult*" "result")
1329 '("GError**" "error")
1335 ;; From gemblemedicon.h
1337 (define-function g_emblemed_icon_get_type
1338 (c-name "g_emblemed_icon_get_type")
1339 (return-type "GType")
1342 (define-function g_emblemed_icon_new
1343 (c-name "g_emblemed_icon_new")
1344 (is-constructor-of "GEmblemedIcon")
1345 (return-type "GIcon*")
1348 '("GEmblem*" "emblem")
1352 (define-method get_icon
1353 (of-object "GEmblemedIcon")
1354 (c-name "g_emblemed_icon_get_icon")
1355 (return-type "GIcon*")
1358 (define-method get_emblems
1359 (of-object "GEmblemedIcon")
1360 (c-name "g_emblemed_icon_get_emblems")
1361 (return-type "GList*")
1364 (define-method add_emblem
1365 (of-object "GEmblemedIcon")
1366 (c-name "g_emblemed_icon_add_emblem")
1367 (return-type "none")
1369 '("GEmblem*" "emblem")
1377 (define-function g_emblem_get_type
1378 (c-name "g_emblem_get_type")
1379 (return-type "GType")
1382 (define-function g_emblem_new
1383 (c-name "g_emblem_new")
1384 (is-constructor-of "GEmblem")
1385 (return-type "GEmblem*")
1388 '("origin" (optional))
1392 (define-function emblem_new_with_origin
1393 (c-name "g_emblem_new_with_origin")
1394 (return-type "GEmblem*")
1397 '("GEmblemOrigin" "origin")
1401 (define-method get_icon
1402 (of-object "GEmblem")
1403 (c-name "g_emblem_get_icon")
1404 (return-type "GIcon*")
1407 (define-method get_origin
1408 (of-object "GEmblem")
1409 (c-name "g_emblem_get_origin")
1410 (return-type "GEmblemOrigin")
1415 ;; From gfileattribute.h
1417 (define-function file_attribute_info_list_new
1418 (c-name "g_file_attribute_info_list_new")
1419 (is-constructor-of "GFileAttributeInfoList")
1420 (return-type "GFileAttributeInfoList*")
1424 (of-object "GFileAttributeInfoList")
1425 (c-name "g_file_attribute_info_list_ref")
1426 (return-type "GFileAttributeInfoList*")
1429 (define-method unref
1430 (of-object "GFileAttributeInfoList")
1431 (c-name "g_file_attribute_info_list_unref")
1432 (return-type "none")
1436 (of-object "GFileAttributeInfoList")
1437 (c-name "g_file_attribute_info_list_dup")
1438 (return-type "GFileAttributeInfoList*")
1441 (define-method lookup
1442 (of-object "GFileAttributeInfoList")
1443 (c-name "g_file_attribute_info_list_lookup")
1444 (return-type "const-GFileAttributeInfo*")
1446 '("const-char*" "name")
1451 (of-object "GFileAttributeInfoList")
1452 (c-name "g_file_attribute_info_list_add")
1453 (return-type "none")
1455 '("const-char*" "name")
1456 '("GFileAttributeType" "type")
1457 '("GFileAttributeInfoFlags" "flags" (default "G_FILE_ATTRIBUTE_INFO_NONE"))
1463 ;; From gfileenumerator.h
1465 (define-function file_enumerator_get_type
1466 (c-name "g_file_enumerator_get_type")
1467 (return-type "GType")
1470 (define-method next_file
1471 (of-object "GFileEnumerator")
1472 (c-name "g_file_enumerator_next_file")
1473 (return-type "GFileInfo*")
1474 (caller-owns-return #t)
1476 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1477 '("GError**" "error")
1481 (define-method close
1482 (of-object "GFileEnumerator")
1483 (c-name "g_file_enumerator_close")
1484 (return-type "gboolean")
1486 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1487 '("GError**" "error")
1492 ;; wrapped in gfileenumerator.override
1494 (define-method next_files_async
1496 "FE.next_files_async(num_files, callback, [io_priority, cancellable,\n"
1498 "Request information for a number of files from the enumerator\n"
1499 "asynchronously. When all i/o for the operation is finished the callback\n"
1500 "will be called with the requested information.\n"
1502 "The callback can be called with less than num_files files in case of error\n"
1503 "or at the end of the enumerator. In case of a partial error the callback\n"
1504 "will be called with any succeeding items and no error, and on the next\n"
1505 "request the error will be reported. If a request is cancelled the callback\n"
1506 "will be called with gio.ERROR_CANCELLED.\n"
1508 "During an async request no other sync and async calls are allowed, and will\n"
1509 "result in gio.ERROR_PENDING errors.\n"
1511 "Any outstanding i/o request with higher priority (lower numerical value)\n"
1512 "will be executed before an outstanding request with lower priority.\n"
1513 "Default priority is gobject.PRIORITY_DEFAULT.")
1515 (of-object "GFileEnumerator")
1516 (c-name "g_file_enumerator_next_files_async")
1517 (return-type "none")
1519 '("int" "num_files")
1520 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1521 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1522 '("GAsyncReadyCallback" "callback")
1523 '("gpointer" "user_data")
1528 ;; wrapped in gfileenumerator.override
1530 (define-method next_files_finish
1532 "FE.next_files_finish(result) -> a list of gio.FileInfos\n"
1533 "Finishes the asynchronous operation started with\n"
1534 "gio.FileEnumerator.next_files_async().")
1535 (of-object "GFileEnumerator")
1536 (c-name "g_file_enumerator_next_files_finish")
1537 (return-type "GList*")
1539 '("GAsyncResult*" "result")
1540 '("GError**" "error")
1545 ;; wrapped in gfileenumerator.override
1547 (define-method close_async
1548 (of-object "GFileEnumerator")
1549 (c-name "g_file_enumerator_close_async")
1550 (return-type "none")
1552 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1553 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1554 '("GAsyncReadyCallback" "callback")
1555 '("gpointer" "user_data")
1559 (define-method close_finish
1560 (of-object "GFileEnumerator")
1561 (c-name "g_file_enumerator_close_finish")
1562 (return-type "gboolean")
1564 '("GAsyncResult*" "result")
1565 '("GError**" "error")
1569 (define-method is_closed
1570 (of-object "GFileEnumerator")
1571 (c-name "g_file_enumerator_is_closed")
1572 (return-type "gboolean")
1575 (define-method has_pending
1576 (of-object "GFileEnumerator")
1577 (c-name "g_file_enumerator_has_pending")
1578 (return-type "gboolean")
1581 (define-method set_pending
1582 (of-object "GFileEnumerator")
1583 (c-name "g_file_enumerator_set_pending")
1584 (return-type "none")
1586 '("gboolean" "pending")
1590 (define-method get_container
1591 (of-object "GFileEnumerator")
1592 (c-name "g_file_enumerator_get_container")
1593 (return-type "GFile*")
1600 (define-function file_get_type
1601 (c-name "g_file_get_type")
1602 (return-type "GType")
1605 (define-function file_new_for_path
1606 (c-name "g_file_new_for_path")
1607 (is-constructor-of "GFile")
1608 (return-type "GFile*")
1610 '("const-char*" "path")
1614 (define-function file_new_for_uri
1615 (c-name "g_file_new_for_uri")
1616 (is-constructor-of "GFile")
1617 (return-type "GFile*")
1619 '("const-char*" "uri")
1623 (define-function file_new_for_commandline_arg
1624 (is-constructor-of "GFile")
1625 (c-name "g_file_new_for_commandline_arg")
1626 (return-type "GFile*")
1628 '("const-char*" "arg")
1632 (define-function file_parse_name
1633 (c-name "g_file_parse_name")
1634 (return-type "GFile*")
1635 (caller-owns-return #t)
1637 '("const-char*" "parse_name")
1643 (c-name "g_file_dup")
1644 (return-type "GFile*")
1645 (caller-owns-return #t)
1648 (define-function file_hash
1649 (c-name "g_file_hash")
1650 (return-type "guint")
1652 '("gconstpointer" "file")
1656 (define-method equal
1658 (c-name "g_file_equal")
1659 (return-type "gboolean")
1665 (define-method get_basename
1667 (c-name "g_file_get_basename")
1668 (return-type "char*")
1671 (define-method get_path
1673 (c-name "g_file_get_path")
1674 (return-type "char*")
1677 (define-method get_uri
1679 (c-name "g_file_get_uri")
1680 (return-type "char*")
1683 (define-method get_parse_name
1685 (c-name "g_file_get_parse_name")
1686 (return-type "char*")
1689 (define-method get_parent
1691 (c-name "g_file_get_parent")
1692 (return-type "GFile*")
1693 (caller-owns-return #t)
1696 (define-method get_child
1698 (c-name "g_file_get_child")
1699 (return-type "GFile*")
1700 (caller-owns-return #t)
1702 '("const-char*" "name")
1706 (define-method get_child_for_display_name
1708 (c-name "g_file_get_child_for_display_name")
1709 (return-type "GFile*")
1710 (caller-owns-return #t)
1712 '("const-char*" "display_name")
1713 '("GError**" "error")
1717 (define-method has_prefix
1719 (c-name "g_file_has_prefix")
1720 (return-type "gboolean")
1722 '("GFile*" "descendant")
1726 (define-method get_relative_path
1728 (c-name "g_file_get_relative_path")
1729 (return-type "char*")
1731 '("GFile*" "descendant")
1735 (define-method resolve_relative_path
1737 (c-name "g_file_resolve_relative_path")
1738 (return-type "GFile*")
1739 (caller-owns-return #t)
1741 '("const-char*" "relative_path")
1745 (define-method is_native
1747 (c-name "g_file_is_native")
1748 (return-type "gboolean")
1751 (define-method has_uri_scheme
1753 (c-name "g_file_has_uri_scheme")
1754 (return-type "gboolean")
1756 '("const-char*" "uri_scheme")
1760 (define-method get_uri_scheme
1762 (c-name "g_file_get_uri_scheme")
1763 (return-type "char*")
1769 "F.read([cancellable]) -> input stream\n"
1770 "Opens a file for reading. The result is a GFileInputStream that\n"
1771 "can be used to read the contents of the file.\n"
1773 "If cancellable is specified, then the operation can be cancelled\n"
1774 "by triggering the cancellable object from another thread. If the\n"
1775 "operation was cancelled, the error gio.IO_ERROR_CANCELLED will\n"
1776 "be returned. If the file does not exist, the gio.IO_ERROR_NOT_FOUND\n"
1777 "error will be returned. If the file is a directory, the\n"
1778 "gio.IO_ERROR_IS_DIRECTORY error will be returned. Other errors\n"
1779 "are possible too, and depend on what kind of filesystem the file is on."
1781 (c-name "g_file_read")
1782 (return-type "GFileInputStream*")
1783 (unblock-threads #t)
1784 (caller-owns-return #t)
1786 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1787 '("GError**" "error")
1792 ;; wrapped in gfile.override
1794 (define-method read_async
1797 "F.read_async(callback [,io_priority [,cancellable [,user_data]]])\n"
1800 "For more details, see gio.File.read() which is the synchronous\n"
1801 "version of this call. Asynchronously opens file for reading.\n"
1802 "When the operation is finished, callback will be called.\n"
1803 "You can then call g_file_read_finish() to get the result of the\n"
1806 (c-name "g_file_read_async")
1807 (return-type "none")
1809 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1810 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1811 '("GAsyncReadyCallback" "callback")
1812 '("gpointer" "user_data")
1816 (define-method read_finish
1818 (c-name "g_file_read_finish")
1819 (return-type "GFileInputStream*")
1820 (caller-owns-return #t)
1822 '("GAsyncResult*" "res")
1823 '("GError**" "error")
1827 (define-method append_to
1829 (c-name "g_file_append_to")
1830 (return-type "GFileOutputStream*")
1831 (unblock-threads #t)
1832 (caller-owns-return #t)
1834 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1835 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1836 '("GError**" "error")
1840 (define-method create
1842 (c-name "g_file_create")
1843 (return-type "GFileOutputStream*")
1844 (unblock-threads #t)
1845 (caller-owns-return #t)
1847 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1848 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1849 '("GError**" "error")
1853 (define-method replace
1855 (c-name "g_file_replace")
1856 (return-type "GFileOutputStream*")
1857 (unblock-threads #t)
1858 (caller-owns-return #t)
1860 '("const-char*" "etag")
1861 '("gboolean" "make_backup")
1862 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1863 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1864 '("GError**" "error")
1869 ;; wrapped in gfile.override
1871 (define-method append_to_async
1873 "F.append_to_async(callback [flags, [,io_priority [,cancellable\n"
1874 " [,user_data]]]]) -> open for append\n"
1876 "Asynchronously opens file for appending.\n"
1877 "For more details, see gio.File.append_to() which is the synchronous\n"
1878 "version of this call. When the operation is finished, callback will\n"
1879 "be called. You can then call F.append_to_finish() to get the result\n"
1883 (c-name "g_file_append_to_async")
1884 (return-type "none")
1886 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1887 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1888 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1889 '("GAsyncReadyCallback" "callback")
1890 '("gpointer" "user_data")
1894 (define-method append_to_finish
1896 (c-name "g_file_append_to_finish")
1897 (return-type "GFileOutputStream*")
1898 (caller-owns-return #t)
1900 '("GAsyncResult*" "res")
1901 '("GError**" "error")
1906 ;; wrapped in gfile.override
1908 (define-method create_async
1910 "F.create_async(callback [flags, [,io_priority [,cancellable\n"
1911 " [,user_data]]]]) -> file created\n"
1913 "Asynchronously creates a new file and returns an output stream for\n"
1914 "writing to it. The file must not already exist.\n"
1915 "For more details, see F.create() which is the synchronous\n"
1916 "version of this call.\n"
1917 "When the operation is finished, callback will be called. You can\n"
1918 "then call F.create_finish() to get the result of the operation."
1921 (c-name "g_file_create_async")
1922 (return-type "none")
1924 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1925 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1926 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1927 '("GAsyncReadyCallback" "callback")
1928 '("gpointer" "user_data")
1932 (define-method create_finish
1934 (c-name "g_file_create_finish")
1935 (return-type "GFileOutputStream*")
1936 (caller-owns-return #t)
1938 '("GAsyncResult*" "res")
1939 '("GError**" "error")
1944 ;; wrapped in gfile.override
1946 (define-method replace_async
1948 "F.replace_async(callback [etag, [make_backup, [flags, [io_priority,\n"
1949 " [cancellable, [user_data]]]]]]) -> file replace\n"
1951 "Asynchronously overwrites the file, replacing the contents, possibly\n"
1952 "creating a backup copy of the file first.\n"
1953 "For more details, see F.replace() which is the synchronous\n"
1954 "version of this call.\n"
1955 "When the operation is finished, callback will be called. You can\n"
1956 "then call F.replace_finish() to get the result of the operation."
1959 (c-name "g_file_replace_async")
1960 (return-type "none")
1962 '("const-char*" "etag")
1963 '("gboolean" "make_backup")
1964 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1965 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1966 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1967 '("GAsyncReadyCallback" "callback")
1968 '("gpointer" "user_data")
1972 (define-method replace_finish
1974 (c-name "g_file_replace_finish")
1975 (return-type "GFileOutputStream*")
1976 (caller-owns-return #t)
1978 '("GAsyncResult*" "res")
1979 '("GError**" "error")
1983 (define-method query_exists
1985 (c-name "g_file_query_exists")
1986 (return-type "gboolean")
1988 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1992 (define-method query_file_type
1994 (c-name "g_file_query_file_type")
1995 (return-type "GFileType")
1997 '("GFileQueryInfoFlags" "flags")
1998 '("GCancellable*" "cancellable")
2002 (define-method query_info
2004 (c-name "g_file_query_info")
2005 (return-type "GFileInfo*")
2006 (unblock-threads #t)
2007 (caller-owns-return #t)
2009 '("const-char*" "attributes")
2010 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2011 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2012 '("GError**" "error")
2017 ;; wrapped in gfile.override
2019 (define-method query_info_async
2021 "F.query_info_async(attributes, callback, [flags, [io_priority,\n"
2022 " [cancellable, [user_data]]]]) -> query attributes\n"
2024 "Asynchronously gets the requested information about specified file.\n"
2025 "The result is a GFileInfo object that contains key-value attributes\n"
2026 "(such as type or size for the file).\n"
2027 "For more details, see F.query_info() which is the synchronous\n"
2028 "version of this call. \n"
2029 "When the operation is finished, callback will be called. You can\n"
2030 "then call F.query_info_finish() to get the result of the operation.\n"
2033 (c-name "g_file_query_info_async")
2034 (return-type "none")
2036 '("const-char*" "attributes")
2037 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2038 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2039 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2040 '("GAsyncReadyCallback" "callback")
2041 '("gpointer" "user_data")
2045 (define-method query_info_finish
2047 (c-name "g_file_query_info_finish")
2048 (return-type "GFileInfo*")
2049 (caller-owns-return #t)
2051 '("GAsyncResult*" "res")
2052 '("GError**" "error")
2056 (define-method query_filesystem_info
2058 (c-name "g_file_query_filesystem_info")
2059 (return-type "GFileInfo*")
2060 (unblock-threads #t)
2061 (caller-owns-return #t)
2063 '("const-char*" "attributes")
2064 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2065 '("GError**" "error")
2069 (define-method query_filesystem_info_async
2071 (c-name "g_file_query_filesystem_info_async")
2072 (return-type "none")
2074 '("const-char*" "attributes")
2075 '("int" "io_priority")
2076 '("GCancellable*" "cancellable")
2077 '("GAsyncReadyCallback" "callback")
2078 '("gpointer" "user_data")
2082 (define-method query_filesystem_info_finish
2084 (c-name "g_file_query_filesystem_info_finish")
2085 (return-type "GFileInfo*")
2087 '("GAsyncResult*" "res")
2088 '("GError**" "error")
2092 (define-method find_enclosing_mount
2094 (c-name "g_file_find_enclosing_mount")
2095 (return-type "GMount*")
2096 (unblock-threads #t)
2097 (caller-owns-return #t)
2099 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2100 '("GError**" "error")
2104 (define-method find_enclosing_mount_async
2106 (c-name "g_file_find_enclosing_mount_async")
2107 (return-type "none")
2109 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2110 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2111 '("GAsyncReadyCallback" "callback")
2112 '("gpointer" "user_data")
2116 (define-method find_enclosing_mount_finish
2118 (c-name "g_file_find_enclosing_mount_finish")
2119 (return-type "GMount*")
2120 (caller-owns-return #t)
2122 '("GAsyncResult*" "res")
2123 '("GError**" "error")
2127 (define-method enumerate_children
2129 "F.enumerate_children(attributes, [flags, cancellable]) -> enumerator\n"
2130 "Gets the requested information about the files in a directory.\n"
2131 "The result is a gio.FileEnumerator object that will give out gio.FileInfo\n"
2132 "objects for all the files in the directory.\n"
2133 "The attribute value is a string that specifies the file attributes that\n"
2134 "should be gathered. It is not an error if it's not possible to read a \n"
2135 "particular requested attribute from a file - it just won't be set.\n"
2136 "attribute should be a comma-separated list of attribute or attribute\n"
2137 "wildcards. The wildcard \"*\" means all attributes, and a wildcard like\n"
2138 "\"standard::*\" means all attributes in the standard namespace.\n"
2139 "An example attribute query be \"standard::*,owner::user\". The standard\n"
2140 "attributes are available as defines, like gio.FILE_ATTRIBUTE_STANDARD_NAME.\n"
2142 "If cancellable is not None, then the operation can be cancelled by\n"
2143 "triggering the cancellable object from another thread. If the operation was\n"
2144 "cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
2146 "If the file does not exist, the gio.ERROR_NOT_FOUND error will be returned.\n"
2147 "If the file is not a directory, the gio.FILE_ERROR_NOTDIR error will\n"
2148 "be returned. Other errors are possible too.")
2150 (c-name "g_file_enumerate_children")
2151 (return-type "GFileEnumerator*")
2152 (unblock-threads #t)
2153 (caller-owns-return #t)
2155 '("const-char*" "attributes")
2156 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2157 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2158 '("GError**" "error")
2163 ;; wrapped in gfile.override
2165 (define-method enumerate_children_async
2167 "F.enumerate_children_async(attributes, callback,\n"
2168 " [flags, io_priority, cancellable, user_data])\n"
2169 "Asynchronously gets the requested information about the files in a\n"
2170 "directory. The result is a GFileEnumerator object that will give out\n"
2171 "GFileInfo objects for all the files in the directory.\n"
2173 "For more details, see gio.File.enumerate_children() which is the synchronous\n"
2174 "version of this call.\n"
2176 "When the operation is finished, callback will be called. You can then call\n"
2177 "gio.File.enumerate_children_finish() to get the result of the operation.")
2179 (c-name "g_file_enumerate_children_async")
2180 (return-type "none")
2182 '("const-char*" "attributes")
2183 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2184 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2185 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2186 '("GAsyncReadyCallback" "callback")
2187 '("gpointer" "user_data")
2191 (define-method enumerate_children_finish
2193 (c-name "g_file_enumerate_children_finish")
2194 (return-type "GFileEnumerator*")
2195 (caller-owns-return #t)
2197 '("GAsyncResult*" "res")
2198 '("GError**" "error")
2202 (define-method set_display_name
2204 (c-name "g_file_set_display_name")
2205 (return-type "GFile*")
2206 (unblock-threads #t)
2207 (caller-owns-return #t)
2209 '("const-char*" "display_name")
2210 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2211 '("GError**" "error")
2215 (define-method set_display_name_async
2217 (c-name "g_file_set_display_name_async")
2218 (return-type "none")
2220 '("const-char*" "display_name")
2221 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2222 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2223 '("GAsyncReadyCallback" "callback")
2224 '("gpointer" "user_data")
2228 (define-method set_display_name_finish
2230 (c-name "g_file_set_display_name_finish")
2231 (return-type "GFile*")
2232 (caller-owns-return #t)
2234 '("GAsyncResult*" "res")
2235 '("GError**" "error")
2239 (define-method delete
2241 (c-name "g_file_delete")
2242 (return-type "gboolean")
2243 (unblock-threads #t)
2245 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2246 '("GError**" "error")
2250 (define-method trash
2252 (c-name "g_file_trash")
2253 (return-type "gboolean")
2254 (unblock-threads #t)
2256 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2257 '("GError**" "error")
2262 ;; wrapped in gfile.override
2266 "F.copy(destination, [callback, flags, cancellable, user_data])\n"
2267 "Copies the file source to the location specified by destination.\n"
2268 "Can not handle recursive copies of directories.\n"
2270 "If the flag gio.FILE_COPY_OVERWRITE is specified an already existing\n"
2271 "destination file is overwritten.\n"
2273 "If the flag gio.FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlink\n"
2274 "will be copied as symlinks, otherwise the target of the source symlink\n"
2277 "If cancellable is not None, then the operation can be cancelled b\n"
2278 "triggering the cancellable object from another thread.\n"
2279 "If the operation was cancelled, the error gio.ERROR_CANCELLED\n"
2280 "will be returned.\n"
2282 "If progress_callback is not None, then the operation can be monitored\n"
2283 "by setting this to a callable. if specified progress_callback_data will\n"
2284 "be passed to this function. It is guaranteed that this callback\n"
2285 "will be called after all data has been transferred with the total number\n"
2286 "of bytes copied during the operation.\n"
2288 "If the source file does not exist then the gio.ERROR_NOT_FOUND\n"
2289 "error is returned, independent on the status of the destination.\n"
2291 "If gio.FILE_COPY_OVERWRITE is not specified and the target exists\n"
2292 "then the error gio.ERROR_EXISTS is returned.\n"
2294 "If trying to overwrite a file over a directory the gio.ERROR_IS_DIRECTORY\n"
2295 "error is returned. If trying to overwrite a directory with a directory\n"
2296 "the gio.ERROR_WOULD_MERGE error is returned.\n"
2298 "If the source is a directory and the target does not exist\n"
2299 "or gio.FILE_COPY_OVERWRITE is specified and the target is a file\n"
2300 "then the gio.ERROR_WOULD_RECURSE error is returned.\n"
2302 "If you are interested in copying the GFile object itself\n"
2303 "(not the on-disk file), see gio.File.dup().")
2305 (c-name "g_file_copy")
2306 (unblock-threads #t)
2307 (return-type "gboolean")
2309 '("GFile*" "destination")
2310 '("GFileCopyFlags" "flags" (default "G_FILE_COPY_NONE"))
2311 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2312 '("GFileProgressCallback" "progress_callback")
2313 '("gpointer" "progress_callback_data")
2314 '("GError**" "error")
2319 ;; wrapped in gfile.override
2321 (define-method copy_async
2324 "F.copy_async(destination, callback, [flags, io_priority, user_data, cancellable, progress_callback])\n"
2327 "For more details, see gio.File.copy() which is the synchronous\n"
2328 "version of this call. Asynchronously copies file.\n"
2329 "When the operation is finished, callback will be called.\n"
2330 "You can then call g_file_copy_finish() to get the result of the\n"
2333 (c-name "g_file_copy_async")
2334 (return-type "none")
2336 '("GFile*" "destination")
2337 '("GFileCopyFlags" "flags" (default "G_FILE_COPY_NONE"))
2338 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2339 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2340 '("GFileProgressCallback" "progress_callback")
2341 '("gpointer" "progress_callback_data")
2342 '("GAsyncReadyCallback" "callback")
2343 '("gpointer" "user_data")
2347 (define-method copy_finish
2349 (c-name "g_file_copy_finish")
2350 (return-type "gboolean")
2352 '("GAsyncResult*" "res")
2353 '("GError**" "error")
2358 ;; wrapped in gfile.override
2362 "F.move(destination, [callback, flags, cancellable, user_data])\n"
2363 "Tries to move the file or directory source to the location\n"
2364 "specified by destination. If native move operations are\n"
2365 "supported then this is used, otherwise a copy + delete fallback\n"
2366 "is used. The native implementation may support moving directories\n"
2367 "(for instance on moves inside the same filesystem), but the \n"
2368 "fallback code does not.\n"
2370 "If the flag gio.FILE_COPY_OVERWRITE is specified an already existing\n"
2371 "destination file is overwritten.\n"
2373 "If the flag gio.FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlink\n"
2374 "will be copied as symlinks, otherwise the target of the source symlink\n"
2377 "If cancellable is not None, then the operation can be cancelled b\n"
2378 "triggering the cancellable object from another thread.\n"
2379 "If the operation was cancelled, the error gio.ERROR_CANCELLED\n"
2380 "will be returned.\n"
2382 "If progress_callback is not None, then the operation can be monitored\n"
2383 "by setting this to a callable. if specified progress_callback_data will\n"
2384 "be passed to this function. It is guaranteed that this callback\n"
2385 "will be called after all data has been transferred with the total number\n"
2386 "of bytes copied during the operation.\n"
2388 "If the source file does not exist then the gio.ERROR_NOT_FOUND\n"
2389 "error is returned, independent on the status of the destination.\n"
2391 "If gio.FILE_COPY_OVERWRITE is not specified and the target exists\n"
2392 "then the error gio.ERROR_EXISTS is returned.\n"
2394 "If trying to overwrite a file over a directory the gio.ERROR_IS_DIRECTORY\n"
2395 "error is returned. If trying to overwrite a directory with a directory\n"
2396 "the gio.ERROR_WOULD_MERGE error is returned.\n"
2398 "If the source is a directory and the target does not exist\n"
2399 "or gio.FILE_COPY_OVERWRITE is specified and the target is a file\n"
2400 "then the gio.ERROR_WOULD_RECURSE error is returned.")
2402 (c-name "g_file_move")
2403 (return-type "gboolean")
2405 '("GFile*" "destination")
2406 '("GFileCopyFlags" "flags" (default "G_FILE_COPY_NONE"))
2407 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2408 '("GFileProgressCallback" "progress_callback")
2409 '("gpointer" "progress_callback_data")
2410 '("GError**" "error")
2414 (define-method make_directory
2416 (c-name "g_file_make_directory")
2417 (return-type "gboolean")
2418 (unblock-threads #t)
2420 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2421 '("GError**" "error")
2425 (define-method make_directory_with_parents
2427 (c-name "g_file_make_directory_with_parents")
2428 (return-type "gboolean")
2429 (unblock-threads #t)
2431 '("GCancellable*" "cancellable")
2432 '("GError**" "error")
2436 (define-method make_symbolic_link
2438 (c-name "g_file_make_symbolic_link")
2439 (return-type "gboolean")
2440 (unblock-threads #t)
2442 '("const-char*" "symlink_value")
2443 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2444 '("GError**" "error")
2449 ;; wrapped in gfile.override
2451 (define-method query_settable_attributes
2453 "F.query_settable_attributes([cancellable]) -> list\n\n"
2454 "Obtain the list of settable attributes for the file.\n"
2455 "Returns the type and full attribute name of all the attributes that\n"
2456 "can be set on this file. This doesn't mean setting it will always\n"
2457 "succeed though, you might get an access failure, or some specific\n"
2458 "file may not support a specific attribute.\n\n"
2459 "If cancellable is not None, then the operation can be cancelled by\n"
2460 "triggering the cancellable object from another thread. If the operation\n"
2461 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned."
2464 (c-name "g_file_query_settable_attributes")
2465 (return-type "GFileAttributeInfoList*")
2467 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2468 '("GError**" "error")
2473 ;; wrapped in gfile.override
2475 (define-method query_writable_namespaces
2477 "F.query_writable_namespaces([cancellable]) -> list\n\n"
2478 "Obtain the list of attribute namespaces where new attributes can\n"
2479 "be created by a user. An example of this is extended attributes\n"
2480 "(in the "xattr" namespace).\n"
2481 "If cancellable is not None, then the operation can be cancelled\n"
2482 "by triggering the cancellable object from another thread. If the\n"
2483 "operation was cancelled, the error gio.IO_ERROR_CANCELLED\n"
2487 (c-name "g_file_query_writable_namespaces")
2488 (return-type "GFileAttributeInfoList*")
2490 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2491 '("GError**" "error")
2496 ;; wrapped in gfile.override
2498 (define-method set_attribute
2500 "F.set_attribute(attribute, type, value_p [,flags [,cancellable ]])->bool\n"
2502 "Sets an attribute in the file with attribute name attribute to value_p.\n"
2503 "If cancellable is not None, then the operation can be cancelled by\n"
2504 "triggering the cancellable object from another thread. If the operation\n"
2505 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned."
2508 (c-name "g_file_set_attribute")
2509 (return-type "gboolean")
2511 '("const-char*" "attribute")
2512 '("GFileAttributeType" "type")
2513 '("gpointer" "value_p")
2514 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2515 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2516 '("GError**" "error")
2520 (define-method set_attributes_from_info
2522 (c-name "g_file_set_attributes_from_info")
2523 (return-type "gboolean")
2525 '("GFileInfo*" "info")
2526 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2527 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2528 '("GError**" "error")
2532 (define-method set_attributes_async
2534 (c-name "g_file_set_attributes_async")
2535 (return-type "none")
2537 '("GFileInfo*" "info")
2538 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2539 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2540 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2541 '("GAsyncReadyCallback" "callback")
2542 '("gpointer" "user_data")
2546 (define-method set_attributes_finish
2548 (c-name "g_file_set_attributes_finish")
2549 (return-type "gboolean")
2551 '("GAsyncResult*" "result")
2552 '("GFileInfo**" "info")
2553 '("GError**" "error")
2557 (define-method set_attribute_string
2559 (c-name "g_file_set_attribute_string")
2560 (return-type "gboolean")
2562 '("const-char*" "attribute")
2563 '("const-char*" "value")
2564 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2565 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2566 '("GError**" "error")
2570 (define-method set_attribute_byte_string
2572 (c-name "g_file_set_attribute_byte_string")
2573 (return-type "gboolean")
2575 '("const-char*" "attribute")
2576 '("const-char*" "value")
2577 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2578 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2579 '("GError**" "error")
2583 (define-method set_attribute_uint32
2585 (c-name "g_file_set_attribute_uint32")
2586 (return-type "gboolean")
2588 '("const-char*" "attribute")
2589 '("guint32" "value")
2590 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2591 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2592 '("GError**" "error")
2596 (define-method set_attribute_int32
2598 (c-name "g_file_set_attribute_int32")
2599 (return-type "gboolean")
2601 '("const-char*" "attribute")
2603 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2604 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2605 '("GError**" "error")
2609 (define-method set_attribute_uint64
2611 (c-name "g_file_set_attribute_uint64")
2612 (return-type "gboolean")
2614 '("const-char*" "attribute")
2615 '("guint64" "value")
2616 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2617 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2618 '("GError**" "error")
2622 (define-method set_attribute_int64
2624 (c-name "g_file_set_attribute_int64")
2625 (return-type "gboolean")
2627 '("const-char*" "attribute")
2629 '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2630 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2631 '("GError**" "error")
2636 ;; wrapped in gfile.override
2638 (define-method mount_enclosing_volume
2640 "F.mount_enclosing_volume(mount_operation, callback, [cancellable,\n"
2642 "Starts a mount_operation, mounting the volume that contains\n"
2643 "the file location.\n"
2645 "When this operation has completed, callback will be called with\n"
2646 "user_user data, and the operation can be finalized with\n"
2647 "gio.File.mount_enclosing_volume_finish().\n"
2649 "If cancellable is not None, then the operation can be cancelled\n"
2650 "by triggering the cancellable object from another thread.\n"
2651 "If the operation was cancelled, the error gio.ERROR_CANCELLED\n"
2652 "will be returned.")
2654 (c-name "g_file_mount_enclosing_volume")
2655 (return-type "none")
2657 '("GMountOperation*" "mount_operation")
2658 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2659 '("GAsyncReadyCallback" "callback")
2660 '("gpointer" "user_data")
2664 (define-method mount_enclosing_volume_finish
2666 (c-name "g_file_mount_enclosing_volume_finish")
2667 (return-type "gboolean")
2669 '("GAsyncResult*" "result")
2670 '("GError**" "error")
2675 ;; wrapped in gfile.override
2677 (define-method mount_mountable
2679 "F.mount_mountable(mount_operation, callback, [flags, cancellable,\n"
2681 "Mounts a file of type gio.FILE_TYPE_MOUNTABLE. Using mount_operation,\n"
2682 "you can request callbacks when, for instance, passwords are needed\n"
2683 "during authentication.\n"
2685 "If cancellable is not None, then the operation can be cancelled by\n"
2686 " triggering the cancellable object from another thread. If the\n"
2687 "operation was cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
2689 "When the operation is finished, callback will be called. You can then\n"
2690 "call g_file_mount_mountable_finish() to get the result of the operation.\n")
2692 (c-name "g_file_mount_mountable")
2693 (return-type "none")
2695 '("GMountOperation*" "mount_operation")
2696 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2697 '("GAsyncReadyCallback" "callback")
2698 '("gpointer" "user_data")
2702 (define-method mount_mountable_finish
2704 (c-name "g_file_mount_mountable_finish")
2705 (return-type "GFile*")
2706 (caller-owns-return #t)
2708 '("GAsyncResult*" "result")
2709 '("GError**" "error")
2714 ;; wrapped in gfile.override
2716 (define-method unmount_mountable
2718 "F.unmount_mountable(callback, [flags, cancellable, user_data])\n"
2719 "Unmounts a file of type gio.FILE_TYPE_MOUNTABLE.\n"
2721 "If cancellable is not None, then the operation can be cancelled by\n"
2722 "triggering the cancellable object from another thread. If the\n"
2723 "operation was cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
2725 "When the operation is finished, callback will be called. You can\n"
2726 "then call gio.File.unmount_mountable_finish() to get the\n"
2727 "result of the operation.\n")
2729 (c-name "g_file_unmount_mountable")
2730 (return-type "none")
2732 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
2733 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2734 '("GAsyncReadyCallback" "callback")
2735 '("gpointer" "user_data")
2739 (define-method unmount_mountable_finish
2741 (c-name "g_file_unmount_mountable_finish")
2742 (return-type "gboolean")
2744 '("GAsyncResult*" "result")
2745 '("GError**" "error")
2749 (define-method eject_mountable
2751 (c-name "g_file_eject_mountable")
2752 (return-type "none")
2754 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
2755 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2756 '("GAsyncReadyCallback" "callback")
2757 '("gpointer" "user_data")
2761 (define-method eject_mountable_finish
2763 (c-name "g_file_eject_mountable_finish")
2764 (return-type "gboolean")
2766 '("GAsyncResult*" "result")
2767 '("GError**" "error")
2772 (define-method copy_attributes
2774 (c-name "g_file_copy_attributes")
2775 (return-type "gboolean")
2777 '("GFile*" "destination")
2778 '("GFileCopyFlags" "flags" (default "G_FILE_COPY_NONE"))
2779 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2780 '("GError**" "error")
2784 (define-method monitor_directory
2786 (c-name "g_file_monitor_directory")
2787 (return-type "GFileMonitor*")
2788 (caller-owns-return #t)
2790 '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2791 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2792 '("GError**" "error")
2796 (define-method monitor_file
2798 (c-name "g_file_monitor_file")
2799 (return-type "GFileMonitor*")
2800 (caller-owns-return #t)
2802 '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2803 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2804 '("GError**" "error")
2808 (define-method monitor
2810 (c-name "g_file_monitor")
2811 (return-type "GFileMonitor*")
2813 '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2814 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2815 '("GError**" "error")
2819 (define-method query_default_handler
2821 (c-name "g_file_query_default_handler")
2822 (return-type "GAppInfo*")
2823 (caller-owns-return #t)
2825 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2826 '("GError**" "error")
2831 ;; wrapped in gfile.override
2833 (define-method load_contents
2835 "F.load_contents([cancellable]) -> contents, length, etag_out\n\n"
2836 "Loads the content of the file into memory, returning the size of the\n"
2837 "data. The data is always zero terminated, but this is not included\n"
2838 "in the resultant length.\n"
2839 "If cancellable is not None, then the operation can be cancelled by\n"
2840 "triggering the cancellable object from another thread. If the operation\n"
2841 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned.\n"
2844 (c-name "g_file_load_contents")
2845 (return-type "gboolean")
2847 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2848 '("char**" "contents")
2849 '("gsize*" "length")
2850 '("char**" "etag_out")
2851 '("GError**" "error")
2856 ;; wrapped in gfile.override
2858 (define-method load_contents_async
2860 "F.load_contents_async(callback, [cancellable, [user_data]])->start loading\n\n"
2861 "Starts an asynchronous load of the file's contents.\n\n"
2862 "For more details, see F.load_contents() which is the synchronous\n"
2863 "version of this call.\n\n"
2864 "When the load operation has completed, callback will be called with\n"
2865 "user data. To finish the operation, call F.load_contents_finish() with\n"
2866 "the parameter 'res' returned by the callback.\n\n"
2867 "If cancellable is not None, then the operation can be cancelled by\n"
2868 "triggering the cancellable object from another thread. If the operation\n"
2869 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned.\n"
2872 (c-name "g_file_load_contents_async")
2873 (return-type "none")
2875 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2876 '("GAsyncReadyCallback" "callback")
2877 '("gpointer" "user_data")
2882 ;; wrapped in gfile.override
2884 (define-method load_contents_finish
2886 "F.load_contents_finish(res) -> contents, length, etag_out\n\n"
2887 "Finishes an asynchronous load of the file's contents. The contents are\n"
2888 "placed in contents, and length is set to the size of the contents\n"
2889 "string. If etag_out is present, it will be set to the new entity\n"
2890 "tag for the file.\n"
2893 (c-name "g_file_load_contents_finish")
2894 (return-type "gboolean")
2896 '("GAsyncResult*" "res")
2897 '("char**" "contents")
2898 '("gsize*" "length")
2899 '("char**" "etag_out")
2900 '("GError**" "error")
2904 (define-method load_partial_contents_async
2906 (c-name "g_file_load_partial_contents_async")
2907 (return-type "none")
2909 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2910 '("GFileReadMoreCallback" "read_more_callback")
2911 '("GAsyncReadyCallback" "callback")
2912 '("gpointer" "user_data")
2916 (define-method load_partial_contents_finish
2918 (c-name "g_file_load_partial_contents_finish")
2919 (return-type "gboolean")
2921 '("GAsyncResult*" "res")
2922 '("char**" "contents")
2923 '("gsize*" "length")
2924 '("char**" "etag_out")
2925 '("GError**" "error")
2930 ;; wrapped in gfile.override
2932 (define-method replace_contents
2934 "F.replace_contents(contents, [etag, [make_backup, [flags, [cancellable]]]])\n"
2937 "Replaces the content of the file, returning the new etag value for the\n"
2938 "file. If an etag is specified, any existing file must have that etag, or\n"
2939 "the error gio.IO_ERROR_WRONG_ETAG will be returned.\n"
2940 "If make_backup is True, this method will attempt to make a backup of the\n"
2941 "file. If cancellable is not None, then the operation can be cancelled by\n"
2942 "triggering the cancellable object from another thread. If the operation\n"
2943 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned.\n"
2946 (c-name "g_file_replace_contents")
2947 (return-type "gboolean")
2949 '("const-char*" "contents")
2951 '("const-char*" "etag")
2952 '("gboolean" "make_backup")
2953 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
2954 '("char**" "new_etag")
2955 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2956 '("GError**" "error")
2961 ;; wrapped in gfile.override
2963 (define-method replace_contents_async
2965 "F.replace_contents_async(contents, callback, [etag, [make_backup, [flags,\n"
2966 " [cancellable]]]]) -> etag_out\n"
2968 "Starts an asynchronous replacement of the file with the given contents.\n"
2969 "For more details, see F.replace_contents() which is the synchronous\n"
2970 "version of this call.\n\n"
2971 "When the load operation has completed, callback will be called with\n"
2972 "user data. To finish the operation, call F.replace_contents_finish() with\n"
2973 "the parameter 'res' returned by the callback.\n\n"
2974 "If cancellable is not None, then the operation can be cancelled by\n"
2975 "triggering the cancellable object from another thread. If the operation\n"
2976 "was cancelled, the error gio.IO_ERROR_CANCELLED will be returned.\n"
2979 (c-name "g_file_replace_contents_async")
2980 (return-type "none")
2982 '("const-char*" "contents")
2984 '("const-char*" "etag")
2985 '("gboolean" "make_backup")
2986 '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
2987 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2988 '("GAsyncReadyCallback" "callback")
2989 '("gpointer" "user_data")
2994 ;; wrapped in gfile.override
2996 (define-method replace_contents_finish
2998 "F.replace_contents_finish(res) -> etag_out\n\n"
2999 "Finishes an asynchronous replacement of the file's contents.\n"
3000 "The new entity tag for the file is returned.\n"
3003 (c-name "g_file_replace_contents_finish")
3004 (return-type "gboolean")
3006 '("GAsyncResult*" "res")
3007 '("char**" "new_etag")
3008 '("GError**" "error")
3012 (define-method create_readwrite
3014 (c-name "g_file_create_readwrite")
3015 (return-type "GFileIOStream*")
3017 '("GFileCreateFlags" "flags")
3018 '("GCancellable*" "cancellable")
3019 '("GError**" "error")
3023 (define-method create_readwrite_async
3025 (c-name "g_file_create_readwrite_async")
3026 (return-type "none")
3028 '("GFileCreateFlags" "flags")
3029 '("int" "io_priority")
3030 '("GCancellable*" "cancellable")
3031 '("GAsyncReadyCallback" "callback")
3032 '("gpointer" "user_data")
3036 (define-method create_readwrite_finish
3038 (c-name "g_file_create_readwrite_finish")
3039 (return-type "GFileIOStream*")
3041 '("GAsyncResult*" "res")
3042 '("GError**" "error")
3046 (define-method eject_mountable_with_operation
3048 (c-name "g_file_eject_mountable_with_operation")
3049 (return-type "none")
3051 '("GMountUnmountFlags" "flags")
3052 '("GMountOperation*" "mount_operation")
3053 '("GCancellable*" "cancellable")
3054 '("GAsyncReadyCallback" "callback")
3055 '("gpointer" "user_data")
3059 (define-method eject_mountable_with_operation_finish
3061 (c-name "g_file_eject_mountable_with_operation_finish")
3062 (return-type "gboolean")
3064 '("GAsyncResult*" "result")
3065 '("GError**" "error")
3069 (define-method open_readwrite
3071 (c-name "g_file_open_readwrite")
3072 (return-type "GFileIOStream*")
3074 '("GCancellable*" "cancellable")
3075 '("GError**" "error")
3079 (define-method open_readwrite_async
3081 (c-name "g_file_open_readwrite_async")
3082 (return-type "none")
3084 '("int" "io_priority")
3085 '("GCancellable*" "cancellable")
3086 '("GAsyncReadyCallback" "callback")
3087 '("gpointer" "user_data")
3091 (define-method open_readwrite_finish
3093 (c-name "g_file_open_readwrite_finish")
3094 (return-type "GFileIOStream*")
3096 '("GAsyncResult*" "res")
3097 '("GError**" "error")
3101 (define-method poll_mountable
3103 (c-name "g_file_poll_mountable")
3104 (return-type "none")
3106 '("GCancellable*" "cancellable")
3107 '("GAsyncReadyCallback" "callback")
3108 '("gpointer" "user_data")
3112 (define-method poll_mountable_finish
3114 (c-name "g_file_poll_mountable_finish")
3115 (return-type "gboolean")
3117 '("GAsyncResult*" "result")
3118 '("GError**" "error")
3122 (define-method replace_readwrite
3124 (c-name "g_file_replace_readwrite")
3125 (return-type "GFileIOStream*")
3127 '("const-char*" "etag")
3128 '("gboolean" "make_backup")
3129 '("GFileCreateFlags" "flags")
3130 '("GCancellable*" "cancellable")
3131 '("GError**" "error")
3135 (define-method replace_readwrite_async
3137 (c-name "g_file_replace_readwrite_async")
3138 (return-type "none")
3140 '("const-char*" "etag")
3141 '("gboolean" "make_backup")
3142 '("GFileCreateFlags" "flags")
3143 '("int" "io_priority")
3144 '("GCancellable*" "cancellable")
3145 '("GAsyncReadyCallback" "callback")
3146 '("gpointer" "user_data")
3150 (define-method replace_readwrite_finish
3152 (c-name "g_file_replace_readwrite_finish")
3153 (return-type "GFileIOStream*")
3155 '("GAsyncResult*" "res")
3156 '("GError**" "error")
3160 (define-method start_mountable
3162 (c-name "g_file_start_mountable")
3163 (return-type "none")
3165 '("GDriveStartFlags" "flags")
3166 '("GMountOperation*" "start_operation")
3167 '("GCancellable*" "cancellable")
3168 '("GAsyncReadyCallback" "callback")
3169 '("gpointer" "user_data")
3173 (define-method start_mountable_finish
3175 (c-name "g_file_start_mountable_finish")
3176 (return-type "gboolean")
3178 '("GAsyncResult*" "result")
3179 '("GError**" "error")
3183 (define-method stop_mountable
3185 (c-name "g_file_stop_mountable")
3186 (return-type "none")
3188 '("GMountUnmountFlags" "flags")
3189 '("GMountOperation*" "mount_operation")
3190 '("GCancellable*" "cancellable")
3191 '("GAsyncReadyCallback" "callback")
3192 '("gpointer" "user_data")
3196 (define-method stop_mountable_finish
3198 (c-name "g_file_stop_mountable_finish")
3199 (return-type "gboolean")
3201 '("GAsyncResult*" "result")
3202 '("GError**" "error")
3206 (define-method supports_thread_contexts
3208 (c-name "g_file_supports_thread_contexts")
3209 (return-type "gboolean")
3212 (define-method unmount_mountable_with_operation
3214 (c-name "g_file_unmount_mountable_with_operation")
3215 (return-type "none")
3217 '("GMountUnmountFlags" "flags")
3218 '("GMountOperation*" "mount_operation")
3219 '("GCancellable*" "cancellable")
3220 '("GAsyncReadyCallback" "callback")
3221 '("gpointer" "user_data")
3225 (define-method unmount_mountable_with_operation_finish
3227 (c-name "g_file_unmount_mountable_with_operation_finish")
3228 (return-type "gboolean")
3230 '("GAsyncResult*" "result")
3231 '("GError**" "error")
3239 (define-function file_icon_get_type
3240 (c-name "g_file_icon_get_type")
3241 (return-type "GType")
3244 (define-function file_icon_new
3245 (c-name "g_file_icon_new")
3246 (is-constructor-of "GFileIcon")
3247 (return-type "GIcon*")
3248 ;; Note: starting with GLib 2.18 we could use (properties ...)
3249 ;; instead, but I don't know if it is possible to branch on version
3256 (define-method get_file
3257 (of-object "GFileIcon")
3258 (c-name "g_file_icon_get_file")
3259 (return-type "GFile*")
3266 (define-function file_info_get_type
3267 (c-name "g_file_info_get_type")
3268 (return-type "GType")
3271 (define-function file_info_new
3272 (c-name "g_file_info_new")
3273 (is-constructor-of "GFileInfo")
3274 (return-type "GFileInfo*")
3278 (of-object "GFileInfo")
3279 (c-name "g_file_info_dup")
3280 (return-type "GFileInfo*")
3281 (caller-owns-return #t)
3284 (define-method copy_into
3285 (of-object "GFileInfo")
3286 (c-name "g_file_info_copy_into")
3287 (return-type "none")
3289 '("GFileInfo*" "dest_info")
3293 (define-method has_attribute
3294 (of-object "GFileInfo")
3295 (c-name "g_file_info_has_attribute")
3296 (return-type "gboolean")
3298 '("const-char*" "attribute")
3302 (define-method has_namespace
3303 (of-object "GFileInfo")
3304 (c-name "g_file_info_has_namespace")
3305 (return-type "gboolean")
3307 '("const-char*" "name_space")
3312 ;; wrapped in gfileinfo.override
3313 (define-method list_attributes
3315 "INFO.list_attributes(name_space) -> Attribute list\n\n"
3316 "Lists the file info structure's attributes."
3318 (of-object "GFileInfo")
3319 (c-name "g_file_info_list_attributes")
3320 (return-type "char**")
3322 '("const-char*" "name_space")
3326 (define-method get_attribute_data
3327 (of-object "GFileInfo")
3328 (c-name "g_file_info_get_attribute_data")
3329 (return-type "gboolean")
3331 '("const-char*" "attribute")
3332 '("GFileAttributeType*" "type")
3333 '("gpointer*" "value_pp")
3334 '("GFileAttributeStatus*" "status")
3338 (define-method get_attribute_type
3339 (of-object "GFileInfo")
3340 (c-name "g_file_info_get_attribute_type")
3341 (return-type "GFileAttributeType")
3343 '("const-char*" "attribute")
3347 (define-method remove_attribute
3348 (of-object "GFileInfo")
3349 (c-name "g_file_info_remove_attribute")
3350 (return-type "none")
3352 '("const-char*" "attribute")
3356 (define-method get_attribute_status
3357 (of-object "GFileInfo")
3358 (c-name "g_file_info_get_attribute_status")
3359 (return-type "GFileAttributeStatus")
3361 '("const-char*" "attribute")
3365 (define-method set_attribute_status
3366 (of-object "GFileInfo")
3367 (c-name "g_file_info_set_attribute_status")
3368 (return-type "gboolean")
3370 '("const-char*" "attribute")
3371 '("GFileAttributeStatus" "status")
3375 (define-method get_attribute_as_string
3376 (of-object "GFileInfo")
3377 (c-name "g_file_info_get_attribute_as_string")
3378 (return-type "char*")
3380 '("const-char*" "attribute")
3384 (define-method get_attribute_string
3385 (of-object "GFileInfo")
3386 (c-name "g_file_info_get_attribute_string")
3387 (return-type "const-char*")
3389 '("const-char*" "attribute")
3393 (define-method get_attribute_byte_string
3394 (of-object "GFileInfo")
3395 (c-name "g_file_info_get_attribute_byte_string")
3396 (return-type "const-char*")
3398 '("const-char*" "attribute")
3402 (define-method get_attribute_boolean
3403 (of-object "GFileInfo")
3404 (c-name "g_file_info_get_attribute_boolean")
3405 (return-type "gboolean")
3407 '("const-char*" "attribute")
3411 (define-method get_attribute_uint32
3412 (of-object "GFileInfo")
3413 (c-name "g_file_info_get_attribute_uint32")
3414 (return-type "guint32")
3416 '("const-char*" "attribute")
3420 (define-method get_attribute_int32
3421 (of-object "GFileInfo")
3422 (c-name "g_file_info_get_attribute_int32")
3423 (return-type "gint32")
3425 '("const-char*" "attribute")
3429 (define-method get_attribute_uint64
3430 (of-object "GFileInfo")
3431 (c-name "g_file_info_get_attribute_uint64")
3432 (return-type "guint64")
3434 '("const-char*" "attribute")
3438 (define-method get_attribute_int64
3439 (of-object "GFileInfo")
3440 (c-name "g_file_info_get_attribute_int64")
3441 (return-type "gint64")
3443 '("const-char*" "attribute")
3447 (define-method get_attribute_object
3448 (of-object "GFileInfo")
3449 (c-name "g_file_info_get_attribute_object")
3450 (return-type "GObject*")
3452 '("const-char*" "attribute")
3456 (define-method get_attribute_stringv
3457 (of-object "GFileInfo")
3458 (c-name "g_file_info_get_attribute_stringv")
3459 (return-type "char**")
3461 '("const-char*" "attribute")
3465 (define-method set_attribute
3466 (of-object "GFileInfo")
3467 (c-name "g_file_info_set_attribute")
3468 (return-type "none")
3470 '("const-char*" "attribute")
3471 '("GFileAttributeType" "type")
3472 '("gpointer" "value_p")
3476 (define-method set_attribute_string
3477 (of-object "GFileInfo")
3478 (c-name "g_file_info_set_attribute_string")
3479 (return-type "none")
3481 '("const-char*" "attribute")
3482 '("const-char*" "attr_value")
3486 (define-method set_attribute_byte_string
3487 (of-object "GFileInfo")
3488 (c-name "g_file_info_set_attribute_byte_string")
3489 (return-type "none")
3491 '("const-char*" "attribute")
3492 '("const-char*" "attr_value")
3496 (define-method set_attribute_boolean
3497 (of-object "GFileInfo")
3498 (c-name "g_file_info_set_attribute_boolean")
3499 (return-type "none")
3501 '("const-char*" "attribute")
3502 '("gboolean" "attr_value")
3506 (define-method set_attribute_uint32
3507 (of-object "GFileInfo")
3508 (c-name "g_file_info_set_attribute_uint32")
3509 (return-type "none")
3511 '("const-char*" "attribute")
3512 '("guint32" "attr_value")
3516 (define-method set_attribute_int32
3517 (of-object "GFileInfo")
3518 (c-name "g_file_info_set_attribute_int32")
3519 (return-type "none")
3521 '("const-char*" "attribute")
3522 '("gint32" "attr_value")
3526 (define-method set_attribute_uint64
3527 (of-object "GFileInfo")
3528 (c-name "g_file_info_set_attribute_uint64")
3529 (return-type "none")
3531 '("const-char*" "attribute")
3532 '("guint64" "attr_value")
3536 (define-method set_attribute_int64
3537 (of-object "GFileInfo")
3538 (c-name "g_file_info_set_attribute_int64")
3539 (return-type "none")
3541 '("const-char*" "attribute")
3542 '("gint64" "attr_value")
3546 (define-method set_attribute_object
3547 (of-object "GFileInfo")
3548 (c-name "g_file_info_set_attribute_object")
3549 (return-type "none")
3551 '("const-char*" "attribute")
3552 '("GObject*" "attr_value")
3556 (define-method clear_status
3557 (of-object "GFileInfo")
3558 (c-name "g_file_info_clear_status")
3559 (return-type "none")
3562 (define-method get_file_type
3563 (of-object "GFileInfo")
3564 (c-name "g_file_info_get_file_type")
3565 (return-type "GFileType")
3568 (define-method get_is_hidden
3569 (of-object "GFileInfo")
3570 (c-name "g_file_info_get_is_hidden")
3571 (return-type "gboolean")
3574 (define-method get_is_backup
3575 (of-object "GFileInfo")
3576 (c-name "g_file_info_get_is_backup")
3577 (return-type "gboolean")
3580 (define-method get_is_symlink
3581 (of-object "GFileInfo")
3582 (c-name "g_file_info_get_is_symlink")
3583 (return-type "gboolean")
3586 (define-method get_name
3587 (of-object "GFileInfo")
3588 (c-name "g_file_info_get_name")
3589 (return-type "const-char*")
3592 (define-method get_display_name
3593 (of-object "GFileInfo")
3594 (c-name "g_file_info_get_display_name")
3595 (return-type "const-char*")
3598 (define-method get_edit_name
3599 (of-object "GFileInfo")
3600 (c-name "g_file_info_get_edit_name")
3601 (return-type "const-char*")
3604 (define-method get_icon
3605 (of-object "GFileInfo")
3606 (c-name "g_file_info_get_icon")
3607 (return-type "GIcon*")
3610 (define-method get_content_type
3611 (of-object "GFileInfo")
3612 (c-name "g_file_info_get_content_type")
3613 (return-type "const-char*")
3616 (define-method get_size
3617 (of-object "GFileInfo")
3618 (c-name "g_file_info_get_size")
3619 (return-type "goffset")
3623 ;; wrapped in gfileinfo.override
3625 (define-method get_modification_time
3627 "INFO.get_modification_time() -> modification time\n"
3628 "Returns the modification time, in UNIX time format\n")
3629 (of-object "GFileInfo")
3630 (c-name "g_file_info_get_modification_time")
3631 (return-type "none")
3633 '("GTimeVal*" "result")
3637 (define-method get_symlink_target
3638 (of-object "GFileInfo")
3639 (c-name "g_file_info_get_symlink_target")
3640 (return-type "const-char*")
3643 (define-method get_etag
3644 (of-object "GFileInfo")
3645 (c-name "g_file_info_get_etag")
3646 (return-type "const-char*")
3649 (define-method get_sort_order
3650 (of-object "GFileInfo")
3651 (c-name "g_file_info_get_sort_order")
3652 (return-type "gint32")
3655 (define-method set_attribute_mask
3656 (of-object "GFileInfo")
3657 (c-name "g_file_info_set_attribute_mask")
3658 (return-type "none")
3660 '("GFileAttributeMatcher*" "mask")
3664 (define-method unset_attribute_mask
3665 (of-object "GFileInfo")
3666 (c-name "g_file_info_unset_attribute_mask")
3667 (return-type "none")
3670 (define-method set_file_type
3671 (of-object "GFileInfo")
3672 (c-name "g_file_info_set_file_type")
3673 (return-type "none")
3675 '("GFileType" "type")
3679 (define-method set_is_hidden
3680 (of-object "GFileInfo")
3681 (c-name "g_file_info_set_is_hidden")
3682 (return-type "none")
3684 '("gboolean" "is_hidden")
3688 (define-method set_is_symlink
3689 (of-object "GFileInfo")
3690 (c-name "g_file_info_set_is_symlink")
3691 (return-type "none")
3693 '("gboolean" "is_symlink")
3697 (define-method set_name
3698 (of-object "GFileInfo")
3699 (c-name "g_file_info_set_name")
3700 (return-type "none")
3702 '("const-char*" "name")
3706 (define-method set_display_name
3707 (of-object "GFileInfo")
3708 (c-name "g_file_info_set_display_name")
3709 (return-type "none")
3711 '("const-char*" "display_name")
3715 (define-method set_edit_name
3716 (of-object "GFileInfo")
3717 (c-name "g_file_info_set_edit_name")
3718 (return-type "none")
3720 '("const-char*" "edit_name")
3724 (define-method set_icon
3725 (of-object "GFileInfo")
3726 (c-name "g_file_info_set_icon")
3727 (return-type "none")
3733 (define-method set_content_type
3734 (of-object "GFileInfo")
3735 (c-name "g_file_info_set_content_type")
3736 (return-type "none")
3738 '("const-char*" "content_type")
3742 (define-method set_size
3743 (of-object "GFileInfo")
3744 (c-name "g_file_info_set_size")
3745 (return-type "none")
3751 (define-method set_modification_time
3752 (of-object "GFileInfo")
3753 (c-name "g_file_info_set_modification_time")
3754 (return-type "none")
3756 '("GTimeVal*" "mtime")
3760 (define-method set_symlink_target
3761 (of-object "GFileInfo")
3762 (c-name "g_file_info_set_symlink_target")
3763 (return-type "none")
3765 '("const-char*" "symlink_target")
3769 (define-method set_sort_order
3770 (of-object "GFileInfo")
3771 (c-name "g_file_info_set_sort_order")
3772 (return-type "none")
3774 '("gint32" "sort_order")
3778 (define-function file_attribute_matcher_new
3779 (c-name "g_file_attribute_matcher_new")
3780 (is-constructor-of "GFileAttributeMatcher")
3781 (return-type "GFileAttributeMatcher*")
3783 '("const-char*" "attributes")
3788 (of-object "GFileAttributeMatcher")
3789 (c-name "g_file_attribute_matcher_ref")
3790 (return-type "GFileAttributeMatcher*")
3793 (define-method unref
3794 (of-object "GFileAttributeMatcher")
3795 (c-name "g_file_attribute_matcher_unref")
3796 (return-type "none")
3799 (define-method matches
3800 (of-object "GFileAttributeMatcher")
3801 (c-name "g_file_attribute_matcher_matches")
3802 (return-type "gboolean")
3804 '("const-char*" "attribute")
3808 (define-method matches_only
3809 (of-object "GFileAttributeMatcher")
3810 (c-name "g_file_attribute_matcher_matches_only")
3811 (return-type "gboolean")
3813 '("const-char*" "attribute")
3817 (define-method enumerate_namespace
3818 (of-object "GFileAttributeMatcher")
3819 (c-name "g_file_attribute_matcher_enumerate_namespace")
3820 (return-type "gboolean")
3822 '("const-char*" "ns")
3826 (define-method enumerate_next
3827 (of-object "GFileAttributeMatcher")
3828 (c-name "g_file_attribute_matcher_enumerate_next")
3829 (return-type "const-char*")
3834 ;; From gfileinputstream.h
3836 (define-function file_input_stream_get_type
3837 (c-name "g_file_input_stream_get_type")
3838 (return-type "GType")
3841 (define-method query_info
3842 (of-object "GFileInputStream")
3843 (c-name "g_file_input_stream_query_info")
3844 (return-type "GFileInfo*")
3846 '("char*" "attributes")
3847 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
3848 '("GError**" "error")
3852 (define-method query_info_async
3853 (of-object "GFileInputStream")
3854 (c-name "g_file_input_stream_query_info_async")
3855 (return-type "none")
3857 '("char*" "attributes")
3858 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
3859 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
3860 '("GAsyncReadyCallback" "callback")
3861 '("gpointer" "user_data")
3865 (define-method query_info_finish
3866 (of-object "GFileInputStream")
3867 (c-name "g_file_input_stream_query_info_finish")
3868 (return-type "GFileInfo*")
3870 '("GAsyncResult*" "result")
3871 '("GError**" "error")
3877 ;; From gfileiostream.h
3879 (define-function g_file_io_stream_get_type
3880 (c-name "g_file_io_stream_get_type")
3881 (return-type "GType")
3884 (define-method query_info
3885 (of-object "GFileIOStream")
3886 (c-name "g_file_io_stream_query_info")
3887 (return-type "GFileInfo*")
3889 '("const-char*" "attributes")
3890 '("GCancellable*" "cancellable")
3891 '("GError**" "error")
3895 (define-method query_info_async
3896 (of-object "GFileIOStream")
3897 (c-name "g_file_io_stream_query_info_async")
3898 (return-type "none")
3900 '("const-char*" "attributes")
3901 '("int" "io_priority")
3902 '("GCancellable*" "cancellable")
3903 '("GAsyncReadyCallback" "callback")
3904 '("gpointer" "user_data")
3908 (define-method query_info_finish
3909 (of-object "GFileIOStream")
3910 (c-name "g_file_io_stream_query_info_finish")
3911 (return-type "GFileInfo*")
3913 '("GAsyncResult*" "result")
3914 '("GError**" "error")
3918 (define-method get_etag
3919 (of-object "GFileIOStream")
3920 (c-name "g_file_io_stream_get_etag")
3921 (return-type "char*")
3927 ;; From gfilemonitor.h
3929 (define-function file_monitor_get_type
3930 (c-name "g_file_monitor_get_type")
3931 (return-type "GType")
3934 (define-method cancel
3935 (of-object "GFileMonitor")
3936 (c-name "g_file_monitor_cancel")
3937 (return-type "gboolean")
3940 (define-method is_cancelled
3941 (of-object "GFileMonitor")
3942 (c-name "g_file_monitor_is_cancelled")
3943 (return-type "gboolean")
3946 (define-method set_rate_limit
3947 (of-object "GFileMonitor")
3948 (c-name "g_file_monitor_set_rate_limit")
3949 (return-type "none")
3951 '("int" "limit_msecs")
3955 (define-method emit_event
3956 (of-object "GFileMonitor")
3957 (c-name "g_file_monitor_emit_event")
3958 (return-type "none")
3961 '("GFile*" "other_file")
3962 '("GFileMonitorEvent" "event_type")
3968 ;; From gfilenamecompleter.h
3970 (define-function filename_completer_get_type
3971 (c-name "g_filename_completer_get_type")
3972 (return-type "GType")
3975 (define-function filename_completer_new
3976 (c-name "g_filename_completer_new")
3977 (is-constructor-of "GFilenameCompleter")
3978 (return-type "GFilenameCompleter*")
3981 (define-method get_completion_suffix
3982 (of-object "GFilenameCompleter")
3983 (c-name "g_filename_completer_get_completion_suffix")
3984 (return-type "char*")
3986 '("const-char*" "initial_text")
3990 (define-method get_completions
3991 (of-object "GFilenameCompleter")
3992 (c-name "g_filename_completer_get_completions")
3993 (return-type "char**")
3995 '("const-char*" "initial_text")
3999 (define-method set_dirs_only
4000 (of-object "GFilenameCompleter")
4001 (c-name "g_filename_completer_set_dirs_only")
4002 (return-type "none")
4004 '("gboolean" "dirs_only")
4010 ;; From gfileoutputstream.h
4012 (define-function file_output_stream_get_type
4013 (c-name "g_file_output_stream_get_type")
4014 (return-type "GType")
4017 (define-method query_info
4018 (of-object "GFileOutputStream")
4019 (c-name "g_file_output_stream_query_info")
4020 (return-type "GFileInfo*")
4022 '("char*" "attributes")
4023 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4024 '("GError**" "error")
4028 (define-method query_info_async
4029 (of-object "GFileOutputStream")
4030 (c-name "g_file_output_stream_query_info_async")
4031 (return-type "none")
4033 '("char*" "attributes")
4034 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4035 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4036 '("GAsyncReadyCallback" "callback")
4037 '("gpointer" "user_data")
4041 (define-method query_info_finish
4042 (of-object "GFileOutputStream")
4043 (c-name "g_file_output_stream_query_info_finish")
4044 (return-type "GFileInfo*")
4046 '("GAsyncResult*" "result")
4047 '("GError**" "error")
4051 (define-method get_etag
4052 (of-object "GFileOutputStream")
4053 (c-name "g_file_output_stream_get_etag")
4054 (return-type "char*")
4058 ;; From gfilterinputstream.h
4060 (define-function filter_input_stream_get_type
4061 (c-name "g_filter_input_stream_get_type")
4062 (return-type "GType")
4065 (define-method get_base_stream
4066 (of-object "GFilterInputStream")
4067 (c-name "g_filter_input_stream_get_base_stream")
4068 (return-type "GInputStream*")
4071 (define-method get_close_base_stream
4072 (of-object "GFilterInputStream")
4073 (c-name "g_filter_input_stream_get_close_base_stream")
4074 (return-type "gboolean")
4077 (define-method set_close_base_stream
4078 (of-object "GFilterInputStream")
4079 (c-name "g_filter_input_stream_set_close_base_stream")
4080 (return-type "none")
4082 '("gboolean" "close_base")
4088 ;; From gfilteroutputstream.h
4090 (define-function filter_output_stream_get_type
4091 (c-name "g_filter_output_stream_get_type")
4092 (return-type "GType")
4095 (define-method get_base_stream
4096 (of-object "GFilterOutputStream")
4097 (c-name "g_filter_output_stream_get_base_stream")
4098 (return-type "GOutputStream*")
4101 (define-method get_close_base_stream
4102 (of-object "GFilterOutputStream")
4103 (c-name "g_filter_output_stream_get_close_base_stream")
4104 (return-type "gboolean")
4107 (define-method set_close_base_stream
4108 (of-object "GFilterOutputStream")
4109 (c-name "g_filter_output_stream_set_close_base_stream")
4110 (return-type "none")
4112 '("gboolean" "close_base")
4120 (define-function icon_get_type
4121 (c-name "g_icon_get_type")
4122 (return-type "GType")
4125 (define-function icon_hash
4126 (c-name "g_icon_hash")
4127 (return-type "guint")
4129 '("gconstpointer" "icon")
4133 (define-method equal
4135 (c-name "g_icon_equal")
4136 (return-type "gboolean")
4142 (define-method to_string
4144 (c-name "g_icon_to_string")
4145 (return-type "gchar*")
4148 (define-function icon_new_for_string
4149 (c-name "g_icon_new_for_string")
4150 (return-type "GIcon*")
4152 '("const-gchar*" "str")
4153 '("GError**" "error")
4159 ;; From ginputstream.h
4161 (define-function input_stream_get_type
4162 (c-name "g_input_stream_get_type")
4163 (return-type "GType")
4167 ;; wrapped in ginputstream.override
4169 ;; Note: the following two methods are renamed for consistency with
4170 ;; Python file objects' read(). I.e. g_input_stream_read_all() is
4171 ;; more like Python file.read(), so it is renamed read(). Since now
4172 ;; there is a name clash, g_input_stream_read() is renamed
4174 (define-method read_part
4175 (of-object "GInputStream")
4177 "STREAM.read_part([count, [cancellable]]) -> string\n"
4179 "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4180 "omitted, read until the end of the stream. This method is allowed to\n"
4181 "stop at any time after reading at least 1 byte from the stream. E.g.\n"
4182 "when reading over a (relatively slow) HTTP connection, it will often\n"
4183 "stop after receiving one packet. Therefore, to reliably read requested\n"
4184 "number of bytes, you need to use a loop. See also gio.InputStream.read\n"
4185 "for easier to use (though less efficient) method.\n"
4187 "Note: this method roughly corresponds to C GIO g_input_stream_read."
4189 (c-name "g_input_stream_read")
4190 (return-type "gssize")
4194 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4195 '("GError**" "error")
4200 ;; wrapped in ginputstream.override
4202 ;; See comments before the previous method definition.
4204 (of-object "GInputStream")
4206 "STREAM.read([count, [cancellable]]) -> string\n"
4208 "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4209 "omitted, read until the end of the stream. This method will stop only\n"
4210 "after reading requested number of bytes, reaching end of stream or\n"
4211 "triggering an I/O error. See also gio.InputStream.read_part for more\n"
4212 "efficient, but more cumbersome to use method.\n"
4214 "Note: this method roughly corresponds to C GIO g_input_stream_read_all.\n"
4215 "It was renamed for consistency with Python standard file.read."
4217 (c-name "g_input_stream_read_all")
4218 (return-type "gboolean")
4222 '("gsize*" "bytes_read")
4223 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4224 '("GError**" "error")
4229 (of-object "GInputStream")
4230 (c-name "g_input_stream_skip")
4231 (return-type "gssize")
4234 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4235 '("GError**" "error")
4239 (define-method close
4240 (of-object "GInputStream")
4241 (c-name "g_input_stream_close")
4242 (return-type "gboolean")
4244 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4245 '("GError**" "error")
4250 ;; wrapped in ginputstream.override
4252 (define-method read_async
4253 (of-object "GInputStream")
4254 (c-name "g_input_stream_read_async")
4255 (return-type "none")
4259 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4260 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4261 '("GAsyncReadyCallback" "callback")
4262 '("gpointer" "user_data")
4267 ;; wrapped in ginputstream.override
4269 (define-method read_finish
4270 (of-object "GInputStream")
4271 (c-name "g_input_stream_read_finish")
4272 (return-type "gssize")
4274 '("GAsyncResult*" "result")
4275 '("GError**" "error")
4279 (define-method skip_async
4280 (of-object "GInputStream")
4281 (c-name "g_input_stream_skip_async")
4282 (return-type "none")
4285 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4286 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4287 '("GAsyncReadyCallback" "callback")
4288 '("gpointer" "user_data")
4292 (define-method skip_finish
4293 (of-object "GInputStream")
4294 (c-name "g_input_stream_skip_finish")
4295 (return-type "gssize")
4297 '("GAsyncResult*" "result")
4298 '("GError**" "error")
4303 ;; wrapped in ginputstream.override
4305 (define-method close_async
4306 (of-object "GInputStream")
4307 (c-name "g_input_stream_close_async")
4308 (return-type "none")
4310 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4311 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4312 '("GAsyncReadyCallback" "callback")
4313 '("gpointer" "user_data")
4317 (define-method close_finish
4318 (of-object "GInputStream")
4319 (c-name "g_input_stream_close_finish")
4320 (return-type "gboolean")
4322 '("GAsyncResult*" "result")
4323 '("GError**" "error")
4327 (define-method is_closed
4328 (of-object "GInputStream")
4329 (c-name "g_input_stream_is_closed")
4330 (return-type "gboolean")
4333 (define-method has_pending
4334 (of-object "GInputStream")
4335 (c-name "g_input_stream_has_pending")
4336 (return-type "gboolean")
4339 (define-method set_pending
4340 (of-object "GInputStream")
4341 (c-name "g_input_stream_set_pending")
4342 (return-type "gboolean")
4344 '("GError**" "error")
4348 (define-method clear_pending
4349 (of-object "GInputStream")
4350 (c-name "g_input_stream_clear_pending")
4351 (return-type "none")
4360 ;; From gioenumtypes.h
4362 (define-function app_info_create_flags_get_type
4363 (c-name "g_app_info_create_flags_get_type")
4364 (return-type "GType")
4367 (define-function data_stream_byte_order_get_type
4368 (c-name "g_data_stream_byte_order_get_type")
4369 (return-type "GType")
4372 (define-function data_stream_newline_type_get_type
4373 (c-name "g_data_stream_newline_type_get_type")
4374 (return-type "GType")
4377 (define-function file_query_info_flags_get_type
4378 (c-name "g_file_query_info_flags_get_type")
4379 (return-type "GType")
4382 (define-function file_create_flags_get_type
4383 (c-name "g_file_create_flags_get_type")
4384 (return-type "GType")
4387 (define-function file_copy_flags_get_type
4388 (c-name "g_file_copy_flags_get_type")
4389 (return-type "GType")
4392 (define-function file_monitor_flags_get_type
4393 (c-name "g_file_monitor_flags_get_type")
4394 (return-type "GType")
4397 (define-function file_attribute_type_get_type
4398 (c-name "g_file_attribute_type_get_type")
4399 (return-type "GType")
4402 (define-function file_attribute_info_flags_get_type
4403 (c-name "g_file_attribute_info_flags_get_type")
4404 (return-type "GType")
4407 (define-function file_attribute_status_get_type
4408 (c-name "g_file_attribute_status_get_type")
4409 (return-type "GType")
4412 (define-function file_type_get_type
4413 (c-name "g_file_type_get_type")
4414 (return-type "GType")
4417 (define-function file_monitor_event_get_type
4418 (c-name "g_file_monitor_event_get_type")
4419 (return-type "GType")
4422 (define-function io_error_enum_get_type
4423 (c-name "g_io_error_enum_get_type")
4424 (return-type "GType")
4427 (define-function ask_password_flags_get_type
4428 (c-name "g_ask_password_flags_get_type")
4429 (return-type "GType")
4432 (define-function password_save_get_type
4433 (c-name "g_password_save_get_type")
4434 (return-type "GType")
4437 (define-function output_stream_splice_flags_get_type
4438 (c-name "g_output_stream_splice_flags_get_type")
4439 (return-type "GType")
4446 (define-function io_error_quark
4447 (c-name "g_io_error_quark")
4448 (return-type "GQuark")
4451 (define-function io_error_from_errno
4452 (c-name "g_io_error_from_errno")
4453 (return-type "GIOErrorEnum")
4465 ;; From gio-marshal.h
4471 (define-function io_module_get_type
4472 (c-name "g_io_module_get_type")
4473 (return-type "GType")
4476 (define-function io_module_new
4477 (c-name "g_io_module_new")
4478 (is-constructor-of "GIoModule")
4479 (return-type "GIOModule*")
4481 '("const-gchar*" "filename")
4485 (define-function io_modules_load_all_in_directory
4486 (c-name "g_io_modules_load_all_in_directory")
4487 (return-type "GList*")
4489 '("const-char*" "dirname")
4494 (of-object "GIOModule")
4495 (c-name "g_io_module_load")
4496 (return-type "none")
4499 (define-method unload
4500 (of-object "GIOModule")
4501 (c-name "g_io_module_unload")
4502 (return-type "none")
4507 ;; From gioscheduler.h
4509 (define-function io_scheduler_push_job
4510 (c-name "g_io_scheduler_push_job")
4511 (return-type "none")
4513 '("GIOSchedulerJobFunc" "job_func")
4514 '("gpointer" "user_data")
4515 '("GDestroyNotify" "notify")
4516 '("gint" "io_priority" (default "G_PRIORITY_DEFAULT"))
4517 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4521 (define-function io_scheduler_cancel_all_jobs
4522 (c-name "g_io_scheduler_cancel_all_jobs")
4523 (return-type "none")
4526 (define-method send_to_mainloop
4527 (of-object "GIOSchedulerJob")
4528 (c-name "g_io_scheduler_job_send_to_mainloop")
4529 (return-type "gboolean")
4531 '("GSourceFunc" "func")
4532 '("gpointer" "user_data")
4533 '("GDestroyNotify" "notify")
4537 (define-method send_to_mainloop_async
4538 (of-object "GIOSchedulerJob")
4539 (c-name "g_io_scheduler_job_send_to_mainloop_async")
4540 (return-type "none")
4542 '("GSourceFunc" "func")
4543 '("gpointer" "user_data")
4544 '("GDestroyNotify" "notify")
4550 ;; From gloadableicon.h
4552 (define-function loadable_icon_get_type
4553 (c-name "g_loadable_icon_get_type")
4554 (return-type "GType")
4558 ;; wrapped in gicon.override
4561 (of-object "GLoadableIcon")
4563 "ICON.load([size, [cancellable]]) -> input stream, type\n"
4565 "Opens a stream of icon data for reading. The result is a tuple of\n"
4566 "gio.InputStream and type (either a string or None). The stream can\n"
4567 "be read to retrieve icon data.\n"
4569 ;; Note: this is just a guess, GIO docs say nothing at the moment.
4570 "Optional size is a hint at desired icon size. Not all implementations\n"
4571 "support it and the hint will be just ignored in such cases.\n"
4572 "If cancellable is specified, then the operation can be cancelled\n"
4573 "by triggering the cancellable object from another thread. See\n"
4574 "gio.File.read for details."
4576 (c-name "g_loadable_icon_load")
4577 (return-type "GInputStream*")
4581 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4582 '("GError**" "error")
4587 ;; wrapped in gicon.override
4589 (define-method load_async
4590 (of-object "GLoadableIcon")
4592 "ICON.load_async(callback, [size, [cancellable, [user_data]]])\n"
4593 "-> start loading\n"
4595 "For more information, see gio.LoadableIcon.load() which is the\n"
4596 "synchronous version of this call. Asynchronously opens icon data for\n"
4597 "reading. When the operation is finished, callback will be called.\n"
4598 "You can then call gio.LoadableIcon.load_finish() to get the result of\n"
4601 (c-name "g_loadable_icon_load_async")
4602 (return-type "none")
4605 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4606 '("GAsyncReadyCallback" "callback")
4607 '("gpointer" "user_data")
4612 ;; wrapped in gicon.override
4614 (define-method load_finish
4616 "F.load_finish(res) -> start loading\n"
4618 "Finish asynchronous icon loading operation. Must be called from callback\n"
4619 "as specified to gio.LoadableIcon.load_async. Returns a tuple of\n"
4620 "gio.InputStream and type, just as gio.LoadableIcon.load."
4622 (of-object "GLoadableIcon")
4623 (c-name "g_loadable_icon_load_finish")
4624 (return-type "GInputStream*")
4626 '("GAsyncResult*" "res")
4628 '("GError**" "error")
4634 ;; From ginetaddress.h
4636 (define-function g_inet_address_get_type
4637 (c-name "g_inet_address_get_type")
4638 (return-type "GType")
4641 (define-function g_inet_address_new_from_string
4642 (c-name "g_inet_address_new_from_string")
4643 (return-type "GInetAddress*")
4645 '("const-gchar*" "string")
4649 (define-function g_inet_address_new_from_bytes
4650 (c-name "g_inet_address_new_from_bytes")
4651 (return-type "GInetAddress*")
4653 '("const-guint8*" "bytes")
4654 '("GSocketFamily" "family")
4658 (define-function g_inet_address_new_loopback
4659 (c-name "g_inet_address_new_loopback")
4660 (return-type "GInetAddress*")
4662 '("GSocketFamily" "family")
4666 (define-function g_inet_address_new_any
4667 (c-name "g_inet_address_new_any")
4668 (return-type "GInetAddress*")
4670 '("GSocketFamily" "family")
4674 (define-method to_string
4675 (of-object "GInetAddress")
4676 (c-name "g_inet_address_to_string")
4677 (return-type "gchar*")
4681 ;; FIXME codegen barfs on this one
4683 ;;(define-method to_bytes
4684 ;; (of-object "GInetAddress")
4685 ;; (c-name "g_inet_address_to_bytes")
4686 ;; (return-type "const-guint8*")
4689 (define-method get_native_size
4690 (of-object "GInetAddress")
4691 (c-name "g_inet_address_get_native_size")
4692 (return-type "gsize")
4695 (define-method get_family
4696 (of-object "GInetAddress")
4697 (c-name "g_inet_address_get_family")
4698 (return-type "GSocketFamily")
4701 (define-method get_is_any
4702 (of-object "GInetAddress")
4703 (c-name "g_inet_address_get_is_any")
4704 (return-type "gboolean")
4707 (define-method get_is_loopback
4708 (of-object "GInetAddress")
4709 (c-name "g_inet_address_get_is_loopback")
4710 (return-type "gboolean")
4713 (define-method get_is_link_local
4714 (of-object "GInetAddress")
4715 (c-name "g_inet_address_get_is_link_local")
4716 (return-type "gboolean")
4719 (define-method get_is_site_local
4720 (of-object "GInetAddress")
4721 (c-name "g_inet_address_get_is_site_local")
4722 (return-type "gboolean")
4725 (define-method get_is_multicast
4726 (of-object "GInetAddress")
4727 (c-name "g_inet_address_get_is_multicast")
4728 (return-type "gboolean")
4731 (define-method get_is_mc_global
4732 (of-object "GInetAddress")
4733 (c-name "g_inet_address_get_is_mc_global")
4734 (return-type "gboolean")
4737 (define-method get_is_mc_link_local
4738 (of-object "GInetAddress")
4739 (c-name "g_inet_address_get_is_mc_link_local")
4740 (return-type "gboolean")
4743 (define-method get_is_mc_node_local
4744 (of-object "GInetAddress")
4745 (c-name "g_inet_address_get_is_mc_node_local")
4746 (return-type "gboolean")
4749 (define-method get_is_mc_org_local
4750 (of-object "GInetAddress")
4751 (c-name "g_inet_address_get_is_mc_org_local")
4752 (return-type "gboolean")
4755 (define-method get_is_mc_site_local
4756 (of-object "GInetAddress")
4757 (c-name "g_inet_address_get_is_mc_site_local")
4758 (return-type "gboolean")
4765 (define-function g_initable_get_type
4766 (c-name "g_initable_get_type")
4767 (return-type "GType")
4771 (of-object "GInitable")
4772 (c-name "g_initable_init")
4773 (return-type "gboolean")
4775 '("GCancellable*" "cancellable")
4776 '("GError**" "error")
4780 (define-function g_initable_new
4781 (c-name "g_initable_new")
4782 (return-type "gpointer")
4784 '("GType" "object_type")
4785 '("GCancellable*" "cancellable")
4786 '("GError**" "error")
4787 '("const-gchar*" "first_property_name")
4792 (define-function g_initable_newv
4793 (c-name "g_initable_newv")
4794 (return-type "gpointer")
4796 '("GType" "object_type")
4797 '("guint" "n_parameters")
4798 '("GParameter*" "parameters")
4799 '("GCancellable*" "cancellable")
4800 '("GError**" "error")
4804 (define-function g_initable_new_valist
4805 (c-name "g_initable_new_valist")
4806 (return-type "GObject*")
4808 '("GType" "object_type")
4809 '("const-gchar*" "first_property_name")
4810 '("va_list" "var_args")
4811 '("GCancellable*" "cancellable")
4812 '("GError**" "error")
4820 (define-function g_io_stream_get_type
4821 (c-name "g_io_stream_get_type")
4822 (return-type "GType")
4825 (define-method get_input_stream
4826 (of-object "GIOStream")
4827 (c-name "g_io_stream_get_input_stream")
4828 (return-type "GInputStream*")
4831 (define-method get_output_stream
4832 (of-object "GIOStream")
4833 (c-name "g_io_stream_get_output_stream")
4834 (return-type "GOutputStream*")
4837 (define-method close
4838 (of-object "GIOStream")
4839 (c-name "g_io_stream_close")
4840 (return-type "gboolean")
4842 '("GCancellable*" "cancellable")
4843 '("GError**" "error")
4847 (define-method close_async
4848 (of-object "GIOStream")
4849 (c-name "g_io_stream_close_async")
4850 (return-type "none")
4852 '("int" "io_priority")
4853 '("GCancellable*" "cancellable")
4854 '("GAsyncReadyCallback" "callback")
4855 '("gpointer" "user_data")
4859 (define-method close_finish
4860 (of-object "GIOStream")
4861 (c-name "g_io_stream_close_finish")
4862 (return-type "gboolean")
4864 '("GAsyncResult*" "result")
4865 '("GError**" "error")
4869 (define-method is_closed
4870 (of-object "GIOStream")
4871 (c-name "g_io_stream_is_closed")
4872 (return-type "gboolean")
4875 (define-method has_pending
4876 (of-object "GIOStream")
4877 (c-name "g_io_stream_has_pending")
4878 (return-type "gboolean")
4881 (define-method set_pending
4882 (of-object "GIOStream")
4883 (c-name "g_io_stream_set_pending")
4884 (return-type "gboolean")
4886 '("GError**" "error")
4890 (define-method clear_pending
4891 (of-object "GIOStream")
4892 (c-name "g_io_stream_clear_pending")
4893 (return-type "none")
4898 ;; From glocaldirectorymonitor.h
4900 (define-function local_directory_monitor_get_type
4901 (c-name "g_local_directory_monitor_get_type")
4902 (return-type "GType")
4907 ;; From glocalfileenumerator.h
4911 ;; From glocalfile.h
4915 ;; From glocalfileinfo.h
4919 ;; From glocalfileinputstream.h
4923 ;; From glocalfilemonitor.h
4925 (define-function local_file_monitor_get_type
4926 (c-name "g_local_file_monitor_get_type")
4927 (return-type "GType")
4932 ;; From glocalfileoutputstream.h
4940 ;; From gmemoryinputstream.h
4942 (define-function memory_input_stream_get_type
4943 (c-name "g_memory_input_stream_get_type")
4944 (return-type "GType")
4947 (define-function memory_input_stream_new
4948 (c-name "g_memory_input_stream_new")
4949 (is-constructor-of "GMemoryInputStream")
4950 (return-type "GInputStream*")
4953 (define-function memory_input_stream_new_from_data
4954 (c-name "g_memory_input_stream_new_from_data")
4955 (return-type "GInputStream*")
4957 '("const-void*" "data")
4959 '("GDestroyNotify" "destroy")
4964 ;; wrapped in ginputstream.override
4966 (define-method add_data
4967 (of-object "GMemoryInputStream")
4968 (c-name "g_memory_input_stream_add_data")
4969 (return-type "none")
4971 '("const-void*" "data")
4973 '("GDestroyNotify" "destroy")
4979 ;; From gmemoryoutputstream.h
4981 (define-function memory_output_stream_get_type
4982 (c-name "g_memory_output_stream_get_type")
4983 (return-type "GType")
4987 ;; wrapped in goutputstream.override
4989 (define-function memory_output_stream_new
4990 (c-name "g_memory_output_stream_new")
4991 (is-constructor-of "GMemoryOutputStream")
4992 (return-type "GOutputStream*")
4994 '("gpointer" "data")
4996 '("GReallocFunc" "realloc_fn")
4997 '("GDestroyNotify" "destroy")
5002 ;; wrapped in goutputstream.override
5004 ;; Note: name clash with gobject.GObject.get_data; renamed.
5005 (define-method get_contents
5006 (of-object "GMemoryOutputStream")
5007 (c-name "g_memory_output_stream_get_data")
5008 (return-type "gpointer")
5011 (define-method get_size
5012 (of-object "GMemoryOutputStream")
5013 (c-name "g_memory_output_stream_get_size")
5014 (return-type "gsize")
5017 (define-method get_data_size
5018 (of-object "GMemoryOutputStream")
5019 (c-name "g_memory_output_stream_get_data_size")
5020 (return-type "gsize")
5027 (define-function mount_get_type
5028 (c-name "g_mount_get_type")
5029 (return-type "GType")
5032 (define-method get_root
5033 (of-object "GMount")
5034 (c-name "g_mount_get_root")
5035 (return-type "GFile*")
5036 (caller-owns-return #t)
5039 (define-method get_name
5040 (of-object "GMount")
5041 (c-name "g_mount_get_name")
5042 (return-type "char*")
5045 (define-method get_icon
5046 (of-object "GMount")
5047 (c-name "g_mount_get_icon")
5048 (return-type "GIcon*")
5049 (caller-owns-return #t)
5052 (define-method get_uuid
5053 (of-object "GMount")
5054 (c-name "g_mount_get_uuid")
5055 (return-type "char*")
5058 (define-method get_volume
5059 (of-object "GMount")
5060 (c-name "g_mount_get_volume")
5061 (return-type "GVolume*")
5062 (caller-owns-return #t)
5065 (define-method get_drive
5066 (of-object "GMount")
5067 (c-name "g_mount_get_drive")
5068 (return-type "GDrive*")
5069 (caller-owns-return #t)
5072 (define-method can_unmount
5073 (of-object "GMount")
5074 (c-name "g_mount_can_unmount")
5075 (return-type "gboolean")
5078 (define-method can_eject
5079 (of-object "GMount")
5080 (c-name "g_mount_can_eject")
5081 (return-type "gboolean")
5085 ;; wrapped in gio.override
5087 (define-method unmount
5089 "M.unmount(callback, [flags, cancellable, user_data])\n"
5090 "Unmounts a mount. This is an asynchronous operation, and is finished\n"
5091 "by calling gio.Mount.unmount_finish() with the mount and gio.AsyncResults\n"
5092 "data returned in the callback."
5094 (of-object "GMount")
5095 (c-name "g_mount_unmount")
5096 (return-type "none")
5098 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5099 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5100 '("GAsyncReadyCallback" "callback")
5101 '("gpointer" "user_data")
5105 (define-method unmount_finish
5106 (of-object "GMount")
5107 (c-name "g_mount_unmount_finish")
5108 (return-type "gboolean")
5110 '("GAsyncResult*" "result")
5111 '("GError**" "error")
5116 ;; wrapped in gio.override
5118 (define-method eject
5120 "F.eject(callback, [flags, cancellable, user_data])\n"
5121 "Ejects a volume.\n"
5123 "If cancellable is not None, then the operation can be cancelled by\n"
5124 "triggering the cancellable object from another thread. If the\n"
5125 "operation was cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
5127 "When the operation is finished, callback will be called. You can\n"
5128 "then call gio.Volume.eject_finish() to get the result of the operation.\n")
5129 (of-object "GMount")
5130 (c-name "g_mount_eject")
5131 (return-type "none")
5133 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5134 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5135 '("GAsyncReadyCallback" "callback")
5136 '("gpointer" "user_data")
5140 (define-method eject_finish
5141 (of-object "GMount")
5142 (c-name "g_mount_eject_finish")
5143 (return-type "gboolean")
5145 '("GAsyncResult*" "result")
5146 '("GError**" "error")
5151 ;; wrapped in gio.override
5153 (define-method remount
5154 (of-object "GMount")
5156 "M.remount(callback, [flags, [mount_operation, [cancellable, [user_data]]]])\n"
5157 "Remounts a mount. This is an asynchronous operation, and is finished by\n"
5158 "calling gio.Mount.remount_finish with the mount and gio.AsyncResults data\n"
5159 "returned in the callback.")
5160 (c-name "g_mount_remount")
5161 (return-type "none")
5163 '("GMountOperation*" "mount_operation")
5164 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5165 '("GAsyncReadyCallback" "callback")
5166 '("gpointer" "user_data")
5170 (define-method remount_finish
5171 (of-object "GMount")
5172 (c-name "g_mount_remount_finish")
5173 (return-type "gboolean")
5175 '("GAsyncResult*" "result")
5176 '("GError**" "error")
5180 (define-method guess_content_type
5181 (of-object "GMount")
5182 (c-name "g_mount_guess_content_type")
5183 (return-type "none")
5185 '("gboolean" "force_rescan")
5186 '("GCancellable*" "cancellable")
5187 '("GAsyncReadyCallback" "callback")
5188 '("gpointer" "user_data")
5192 (define-method guess_content_type_finish
5193 (of-object "GMount")
5194 (c-name "g_mount_guess_content_type_finish")
5195 (return-type "gchar**")
5197 '("GAsyncResult*" "result")
5198 '("GError**" "error")
5202 (define-method guess_content_type_sync
5203 (of-object "GMount")
5204 (c-name "g_mount_guess_content_type_sync")
5205 (return-type "gchar**")
5207 '("gboolean" "force_rescan")
5208 '("GCancellable*" "cancellable")
5209 '("GError**" "error")
5213 (define-method is_shadowed
5214 (of-object "GMount")
5215 (c-name "g_mount_is_shadowed")
5216 (return-type "gboolean")
5219 (define-method shadow
5220 (of-object "GMount")
5221 (c-name "g_mount_shadow")
5222 (return-type "none")
5225 (define-method unshadow
5226 (of-object "GMount")
5227 (c-name "g_mount_unshadow")
5228 (return-type "none")
5231 (define-method unmount_with_operation
5232 (of-object "GMount")
5233 (c-name "g_mount_unmount_with_operation")
5234 (return-type "none")
5236 '("GMountUnmountFlags" "flags")
5237 '("GMountOperation*" "mount_operation")
5238 '("GCancellable*" "cancellable")
5239 '("GAsyncReadyCallback" "callback")
5240 '("gpointer" "user_data")
5244 (define-method unmount_with_operation_finish
5245 (of-object "GMount")
5246 (c-name "g_mount_unmount_with_operation_finish")
5247 (return-type "gboolean")
5249 '("GAsyncResult*" "result")
5250 '("GError**" "error")
5254 (define-method eject_with_operation
5255 (of-object "GMount")
5256 (c-name "g_mount_eject_with_operation")
5257 (return-type "none")
5259 '("GMountUnmountFlags" "flags")
5260 '("GMountOperation*" "mount_operation")
5261 '("GCancellable*" "cancellable")
5262 '("GAsyncReadyCallback" "callback")
5263 '("gpointer" "user_data")
5267 (define-method eject_with_operation_finish
5268 (of-object "GMount")
5269 (c-name "g_mount_eject_with_operation_finish")
5270 (return-type "gboolean")
5272 '("GAsyncResult*" "result")
5273 '("GError**" "error")
5279 ;; From gmountoperation.h
5281 (define-function mount_operation_get_type
5282 (c-name "g_mount_operation_get_type")
5283 (return-type "GType")
5286 (define-function mount_operation_new
5287 (c-name "g_mount_operation_new")
5288 (is-constructor-of "GMountOperation")
5289 (return-type "GMountOperation*")
5292 (define-method get_username
5293 (of-object "GMountOperation")
5294 (c-name "g_mount_operation_get_username")
5295 (return-type "const-char*")
5298 (define-method set_username
5299 (of-object "GMountOperation")
5300 (c-name "g_mount_operation_set_username")
5301 (return-type "none")
5303 '("const-char*" "username")
5307 (define-method get_password
5308 (of-object "GMountOperation")
5309 (c-name "g_mount_operation_get_password")
5310 (return-type "const-char*")
5313 (define-method set_password
5314 (of-object "GMountOperation")
5315 (c-name "g_mount_operation_set_password")
5316 (return-type "none")
5318 '("const-char*" "password")
5322 (define-method get_anonymous
5323 (of-object "GMountOperation")
5324 (c-name "g_mount_operation_get_anonymous")
5325 (return-type "gboolean")
5328 (define-method set_anonymous
5329 (of-object "GMountOperation")
5330 (c-name "g_mount_operation_set_anonymous")
5331 (return-type "none")
5333 '("gboolean" "anonymous")
5337 (define-method get_domain
5338 (of-object "GMountOperation")
5339 (c-name "g_mount_operation_get_domain")
5340 (return-type "const-char*")
5343 (define-method set_domain
5344 (of-object "GMountOperation")
5345 (c-name "g_mount_operation_set_domain")
5346 (return-type "none")
5348 '("const-char*" "domain")
5352 (define-method get_password_save
5353 (of-object "GMountOperation")
5354 (c-name "g_mount_operation_get_password_save")
5355 (return-type "GPasswordSave")
5358 (define-method set_password_save
5359 (of-object "GMountOperation")
5360 (c-name "g_mount_operation_set_password_save")
5361 (return-type "none")
5363 '("GPasswordSave" "save")
5367 (define-method get_choice
5368 (of-object "GMountOperation")
5369 (c-name "g_mount_operation_get_choice")
5373 (define-method set_choice
5374 (of-object "GMountOperation")
5375 (c-name "g_mount_operation_set_choice")
5376 (return-type "none")
5382 (define-method reply
5383 (of-object "GMountOperation")
5384 (c-name "g_mount_operation_reply")
5385 (return-type "none")
5387 '("GMountOperationResult" "result")
5393 ;; From gnativevolumemonitor.h
5395 (define-function native_volume_monitor_get_type
5396 (c-name "g_native_volume_monitor_get_type")
5397 (return-type "GType")
5402 ;; From gnetworkaddress.h
5404 (define-function g_network_address_get_type
5405 (c-name "g_network_address_get_type")
5406 (return-type "GType")
5409 (define-function g_network_address_new
5410 (c-name "g_network_address_new")
5411 (is-constructor-of "GNetworkAddress")
5412 (return-type "GSocketConnectable*")
5414 '("const-gchar*" "hostname")
5419 (define-function g_network_address_parse
5420 (c-name "g_network_address_parse")
5421 (return-type "GSocketConnectable*")
5423 '("const-gchar*" "host_and_port")
5424 '("guint16" "default_port")
5425 '("GError**" "error")
5429 (define-method get_hostname
5430 (of-object "GNetworkAddress")
5431 (c-name "g_network_address_get_hostname")
5432 (return-type "const-gchar*")
5435 (define-method get_port
5436 (of-object "GNetworkAddress")
5437 (c-name "g_network_address_get_port")
5438 (return-type "guint16")
5443 ;; From gnetworkservice.h
5445 (define-function g_network_service_get_type
5446 (c-name "g_network_service_get_type")
5447 (return-type "GType")
5450 (define-function g_network_service_new
5451 (c-name "g_network_service_new")
5452 (is-constructor-of "GNetworkService")
5453 (return-type "GSocketConnectable*")
5455 '("const-gchar*" "service")
5456 '("const-gchar*" "protocol")
5457 '("const-gchar*" "domain")
5461 (define-method get_service
5462 (of-object "GNetworkService")
5463 (c-name "g_network_service_get_service")
5464 (return-type "const-gchar*")
5467 (define-method get_protocol
5468 (of-object "GNetworkService")
5469 (c-name "g_network_service_get_protocol")
5470 (return-type "const-gchar*")
5473 (define-method get_domain
5474 (of-object "GNetworkService")
5475 (c-name "g_network_service_get_domain")
5476 (return-type "const-gchar*")
5481 ;; From goutputstream.h
5483 (define-function output_stream_get_type
5484 (c-name "g_output_stream_get_type")
5485 (return-type "GType")
5489 ;; wrapped in goutputstream.override
5491 ;; Note: the following two methods are renamed for consistency with
5492 ;; Python file objects' write(). I.e. g_output_stream_write_all() is
5493 ;; more like Python file.write(), so it is renamed write(). Since now
5494 ;; there is a name clash, g_output_stream_write() is renamed
5496 (define-method write_part
5497 (of-object "GOutputStream")
5499 "STREAM.write_part(buffer, [cancellable]) -> int\n"
5501 "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5502 "successfully written. This method is allowed to stop at any time after\n"
5503 "writing at least 1 byte. Therefore, to reliably write the whole buffer,\n"
5504 "you need to use a loop. See also gio.OutputStream.write for easier to\n"
5505 "use (though less efficient) method.\n"
5507 "Note: this method roughly corresponds to C GIO g_output_stream_write."
5509 (c-name "g_output_stream_write")
5510 (return-type "gssize")
5512 '("const-void*" "buffer")
5514 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5515 '("GError**" "error")
5520 ;; wrapped in goutputstream.override
5522 ;; See comments before the previous method definition.
5523 (define-method write
5524 (of-object "GOutputStream")
5525 "STREAM.write(buffer, [cancellable]) -> int\n"
5527 "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5528 "successfully written. This method will stop only after writing the whole\n"
5529 "buffer or triggering an I/O error. See also gio.OutputStream.write_part\n"
5530 "for more efficient, but more cumbersome to use method.\n"
5532 "Note: this method roughly corresponds to C GIO g_output_stream_write_all.\n"
5533 "It was renamed for consistency with Python standard file.write."
5534 (c-name "g_output_stream_write_all")
5535 (return-type "gboolean")
5537 '("const-void*" "buffer")
5539 '("gsize*" "bytes_written")
5540 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5541 '("GError**" "error")
5545 (define-method splice
5546 (of-object "GOutputStream")
5547 (c-name "g_output_stream_splice")
5548 (return-type "gssize")
5550 '("GInputStream*" "source")
5551 '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5552 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5553 '("GError**" "error")
5557 (define-method flush
5558 (of-object "GOutputStream")
5559 (c-name "g_output_stream_flush")
5560 (return-type "gboolean")
5562 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5563 '("GError**" "error")
5567 (define-method close
5568 (of-object "GOutputStream")
5569 (c-name "g_output_stream_close")
5570 (return-type "gboolean")
5572 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5573 '("GError**" "error")
5578 ;; wrapped in goutputstream.override
5580 (define-method write_async
5581 (of-object "GOutputStream")
5583 "S.write_async(buffer, callback [,io_priority] [,cancellable] [,user_data])\n"
5585 "Request an asynchronous write of count bytes from buffer into the stream.\n"
5586 "When the operation is finished callback will be called. You can then call\n"
5587 "gio.OutputStream.write_finish() to get the result of the operation.\n"
5588 "On success, the number of bytes written will be passed to the callback.\n"
5589 "It is not an error if this is not the same as the requested size, as it can\n"
5590 "happen e.g. on a partial I/O error, but generally tries to write as many \n"
5591 "bytes as requested.\n"
5592 "For the synchronous, blocking version of this function, see\n"
5593 "gio.OutputStream.write().\n")
5594 (c-name "g_output_stream_write_async")
5595 (return-type "none")
5597 '("const-void*" "buffer")
5599 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5600 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5601 '("GAsyncReadyCallback" "callback")
5602 '("gpointer" "user_data")
5606 (define-method write_finish
5607 (of-object "GOutputStream")
5608 (c-name "g_output_stream_write_finish")
5609 (return-type "gssize")
5611 '("GAsyncResult*" "result")
5612 '("GError**" "error")
5616 (define-method splice_async
5617 (of-object "GOutputStream")
5618 (c-name "g_output_stream_splice_async")
5619 (return-type "none")
5621 '("GInputStream*" "source")
5622 '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5623 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5624 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5625 '("GAsyncReadyCallback" "callback")
5626 '("gpointer" "user_data")
5630 (define-method splice_finish
5631 (of-object "GOutputStream")
5632 (c-name "g_output_stream_splice_finish")
5633 (return-type "gssize")
5635 '("GAsyncResult*" "result")
5636 '("GError**" "error")
5640 (define-method flush_async
5641 (of-object "GOutputStream")
5642 (c-name "g_output_stream_flush_async")
5643 (return-type "none")
5645 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5646 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5647 '("GAsyncReadyCallback" "callback")
5648 '("gpointer" "user_data")
5652 (define-method flush_finish
5653 (of-object "GOutputStream")
5654 (c-name "g_output_stream_flush_finish")
5655 (return-type "gboolean")
5657 '("GAsyncResult*" "result")
5658 '("GError**" "error")
5663 ;; wrapped in goutputstream.override
5665 (define-method close_async
5666 (of-object "GOutputStream")
5667 (c-name "g_output_stream_close_async")
5668 (return-type "none")
5670 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5671 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5672 '("GAsyncReadyCallback" "callback")
5673 '("gpointer" "user_data")
5677 (define-method close_finish
5678 (of-object "GOutputStream")
5679 (c-name "g_output_stream_close_finish")
5680 (return-type "gboolean")
5682 '("GAsyncResult*" "result")
5683 '("GError**" "error")
5687 (define-method is_closed
5688 (of-object "GOutputStream")
5689 (c-name "g_output_stream_is_closed")
5690 (return-type "gboolean")
5693 (define-method has_pending
5694 (of-object "GOutputStream")
5695 (c-name "g_output_stream_has_pending")
5696 (return-type "gboolean")
5699 (define-method set_pending
5700 (of-object "GOutputStream")
5701 (c-name "g_output_stream_set_pending")
5702 (return-type "gboolean")
5704 '("GError**" "error")
5708 (define-method clear_pending
5709 (of-object "GOutputStream")
5710 (c-name "g_output_stream_clear_pending")
5711 (return-type "none")
5718 (define-function g_resolver_get_type
5719 (c-name "g_resolver_get_type")
5720 (return-type "GType")
5723 (define-function g_resolver_get_default
5724 (c-name "g_resolver_get_default")
5725 (return-type "GResolver*")
5728 (define-method set_default
5729 (of-object "GResolver")
5730 (c-name "g_resolver_set_default")
5731 (return-type "none")
5734 (define-method lookup_by_name
5735 (of-object "GResolver")
5736 (c-name "g_resolver_lookup_by_name")
5737 (return-type "GList*")
5739 '("const-gchar*" "hostname")
5740 '("GCancellable*" "cancellable")
5741 '("GError**" "error")
5745 (define-method lookup_by_name_async
5746 (of-object "GResolver")
5747 (c-name "g_resolver_lookup_by_name_async")
5748 (return-type "none")
5750 '("const-gchar*" "hostname")
5751 '("GCancellable*" "cancellable")
5752 '("GAsyncReadyCallback" "callback")
5753 '("gpointer" "user_data")
5757 (define-method lookup_by_name_finish
5758 (of-object "GResolver")
5759 (c-name "g_resolver_lookup_by_name_finish")
5760 (return-type "GList*")
5762 '("GAsyncResult*" "result")
5763 '("GError**" "error")
5767 (define-function g_resolver_free_addresses
5768 (c-name "g_resolver_free_addresses")
5769 (return-type "none")
5771 '("GList*" "addresses")
5775 (define-method lookup_by_address
5776 (of-object "GResolver")
5777 (c-name "g_resolver_lookup_by_address")
5778 (return-type "gchar*")
5780 '("GInetAddress*" "address")
5781 '("GCancellable*" "cancellable")
5782 '("GError**" "error")
5786 (define-method lookup_by_address_async
5787 (of-object "GResolver")
5788 (c-name "g_resolver_lookup_by_address_async")
5789 (return-type "none")
5791 '("GInetAddress*" "address")
5792 '("GCancellable*" "cancellable")
5793 '("GAsyncReadyCallback" "callback")
5794 '("gpointer" "user_data")
5798 (define-method lookup_by_address_finish
5799 (of-object "GResolver")
5800 (c-name "g_resolver_lookup_by_address_finish")
5801 (return-type "gchar*")
5803 '("GAsyncResult*" "result")
5804 '("GError**" "error")
5808 (define-method lookup_service
5809 (of-object "GResolver")
5810 (c-name "g_resolver_lookup_service")
5811 (return-type "GList*")
5813 '("const-gchar*" "service")
5814 '("const-gchar*" "protocol")
5815 '("const-gchar*" "domain")
5816 '("GCancellable*" "cancellable")
5817 '("GError**" "error")
5821 (define-method lookup_service_async
5822 (of-object "GResolver")
5823 (c-name "g_resolver_lookup_service_async")
5824 (return-type "none")
5826 '("const-gchar*" "service")
5827 '("const-gchar*" "protocol")
5828 '("const-gchar*" "domain")
5829 '("GCancellable*" "cancellable")
5830 '("GAsyncReadyCallback" "callback")
5831 '("gpointer" "user_data")
5835 (define-method lookup_service_finish
5836 (of-object "GResolver")
5837 (c-name "g_resolver_lookup_service_finish")
5838 (return-type "GList*")
5840 '("GAsyncResult*" "result")
5841 '("GError**" "error")
5845 (define-function g_resolver_free_targets
5846 (c-name "g_resolver_free_targets")
5847 (return-type "none")
5849 '("GList*" "targets")
5853 (define-function g_resolver_error_quark
5854 (c-name "g_resolver_error_quark")
5855 (return-type "GQuark")
5862 (define-function seekable_get_type
5863 (c-name "g_seekable_get_type")
5864 (return-type "GType")
5868 (of-object "GSeekable")
5869 (c-name "g_seekable_tell")
5870 (return-type "goffset")
5873 (define-method can_seek
5874 (of-object "GSeekable")
5875 (c-name "g_seekable_can_seek")
5876 (return-type "gboolean")
5880 (of-object "GSeekable")
5881 (c-name "g_seekable_seek")
5882 (return-type "gboolean")
5884 '("goffset" "offset")
5885 '("GSeekType" "type" (default "G_SEEK_SET"))
5886 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5887 '("GError**" "error")
5891 (define-method can_truncate
5892 (of-object "GSeekable")
5893 (c-name "g_seekable_can_truncate")
5894 (return-type "gboolean")
5897 (define-method truncate
5898 (of-object "GSeekable")
5899 (c-name "g_seekable_truncate")
5900 (return-type "gboolean")
5902 '("goffset" "offset")
5903 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5904 '("GError**" "error")
5910 ;; From gsimpleasyncresult.h
5912 (define-function simple_async_result_get_type
5913 (c-name "g_simple_async_result_get_type")
5914 (return-type "GType")
5917 (define-function simple_async_result_new
5918 (c-name "g_simple_async_result_new")
5919 (is-constructor-of "GSimpleAsyncResult")
5920 (return-type "GSimpleAsyncResult*")
5922 '("GObject*" "source_object")
5923 '("GAsyncReadyCallback" "callback")
5924 '("gpointer" "user_data")
5925 '("gpointer" "source_tag")
5929 (define-function simple_async_result_new_error
5930 (c-name "g_simple_async_result_new_error")
5931 (return-type "GSimpleAsyncResult*")
5933 '("GObject*" "source_object")
5934 '("GAsyncReadyCallback" "callback")
5935 '("gpointer" "user_data")
5936 '("GQuark" "domain")
5938 '("const-char*" "format")
5943 (define-function simple_async_result_new_from_error
5944 (c-name "g_simple_async_result_new_from_error")
5945 (return-type "GSimpleAsyncResult*")
5947 '("GObject*" "source_object")
5948 '("GAsyncReadyCallback" "callback")
5949 '("gpointer" "user_data")
5950 '("GError*" "error")
5954 (define-method set_op_res_gpointer
5955 (of-object "GSimpleAsyncResult")
5956 (c-name "g_simple_async_result_set_op_res_gpointer")
5957 (return-type "none")
5959 '("gpointer" "op_res")
5960 '("GDestroyNotify" "destroy_op_res")
5964 (define-method get_op_res_gpointer
5965 (of-object "GSimpleAsyncResult")
5966 (c-name "g_simple_async_result_get_op_res_gpointer")
5967 (return-type "gpointer")
5970 (define-method set_op_res_gssize
5971 (of-object "GSimpleAsyncResult")
5972 (c-name "g_simple_async_result_set_op_res_gssize")
5973 (return-type "none")
5975 '("gssize" "op_res")
5979 (define-method get_op_res_gssize
5980 (of-object "GSimpleAsyncResult")
5981 (c-name "g_simple_async_result_get_op_res_gssize")
5982 (return-type "gssize")
5985 (define-method set_op_res_gboolean
5986 (of-object "GSimpleAsyncResult")
5987 (c-name "g_simple_async_result_set_op_res_gboolean")
5988 (return-type "none")
5990 '("gboolean" "op_res")
5994 (define-method get_op_res_gboolean
5995 (of-object "GSimpleAsyncResult")
5996 (c-name "g_simple_async_result_get_op_res_gboolean")
5997 (return-type "gboolean")
6000 (define-method get_source_tag
6001 (of-object "GSimpleAsyncResult")
6002 (c-name "g_simple_async_result_get_source_tag")
6003 (return-type "gpointer")
6006 (define-method set_handle_cancellation
6007 (of-object "GSimpleAsyncResult")
6008 (c-name "g_simple_async_result_set_handle_cancellation")
6009 (return-type "none")
6011 '("gboolean" "handle_cancellation")
6015 (define-method complete
6016 (of-object "GSimpleAsyncResult")
6017 (c-name "g_simple_async_result_complete")
6018 (return-type "none")
6021 (define-method complete_in_idle
6022 (of-object "GSimpleAsyncResult")
6023 (c-name "g_simple_async_result_complete_in_idle")
6024 (return-type "none")
6027 (define-method run_in_thread
6028 (of-object "GSimpleAsyncResult")
6029 (c-name "g_simple_async_result_run_in_thread")
6030 (return-type "none")
6032 '("GSimpleAsyncThreadFunc" "func")
6033 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
6034 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6038 (define-method set_from_error
6039 (of-object "GSimpleAsyncResult")
6040 (c-name "g_simple_async_result_set_from_error")
6041 (return-type "none")
6043 '("GError*" "error")
6047 (define-method propagate_error
6048 (of-object "GSimpleAsyncResult")
6049 (c-name "g_simple_async_result_propagate_error")
6050 (return-type "gboolean")
6052 '("GError**" "dest")
6056 (define-method set_error
6057 (of-object "GSimpleAsyncResult")
6058 (c-name "g_simple_async_result_set_error")
6059 (return-type "none")
6061 '("GQuark" "domain")
6063 '("const-char*" "format")
6068 (define-method set_error_va
6069 (of-object "GSimpleAsyncResult")
6070 (c-name "g_simple_async_result_set_error_va")
6071 (return-type "none")
6073 '("GQuark" "domain")
6075 '("const-char*" "format")
6080 (define-function simple_async_report_error_in_idle
6081 (c-name "g_simple_async_report_error_in_idle")
6082 (return-type "none")
6084 '("GObject*" "object")
6085 '("GAsyncReadyCallback" "callback")
6086 '("gpointer" "user_data")
6087 '("GQuark" "domain")
6089 '("const-char*" "format")
6094 (define-function simple_async_report_gerror_in_idle
6095 (c-name "g_simple_async_report_gerror_in_idle")
6096 (return-type "none")
6098 '("GObject*" "object")
6099 '("GAsyncReadyCallback" "callback")
6100 '("gpointer" "user_data")
6101 '("GError*" "error")
6107 ;; From gsocketaddressenumerator.h
6109 (define-function g_socket_address_enumerator_get_type
6110 (c-name "g_socket_address_enumerator_get_type")
6111 (return-type "GType")
6115 (of-object "GSocketAddressEnumerator")
6116 (c-name "g_socket_address_enumerator_next")
6117 (return-type "GSocketAddress*")
6119 '("GCancellable*" "cancellable")
6120 '("GError**" "error")
6124 (define-method next_async
6125 (of-object "GSocketAddressEnumerator")
6126 (c-name "g_socket_address_enumerator_next_async")
6127 (return-type "none")
6129 '("GCancellable*" "cancellable")
6130 '("GAsyncReadyCallback" "callback")
6131 '("gpointer" "user_data")
6135 (define-method next_finish
6136 (of-object "GSocketAddressEnumerator")
6137 (c-name "g_socket_address_enumerator_next_finish")
6138 (return-type "GSocketAddress*")
6140 '("GAsyncResult*" "result")
6141 '("GError**" "error")
6147 ;; From gsocketaddress.h
6149 (define-function g_socket_address_get_type
6150 (c-name "g_socket_address_get_type")
6151 (return-type "GType")
6154 (define-method get_family
6155 (of-object "GSocketAddress")
6156 (c-name "g_socket_address_get_family")
6157 (return-type "GSocketFamily")
6160 (define-function g_socket_address_new_from_native
6161 (c-name "g_socket_address_new_from_native")
6162 (return-type "GSocketAddress*")
6164 '("gpointer" "native")
6169 (define-method to_native
6170 (of-object "GSocketAddress")
6171 (c-name "g_socket_address_to_native")
6172 (return-type "gboolean")
6174 '("gpointer" "dest")
6175 '("gsize" "destlen")
6176 '("GError**" "error")
6180 (define-method get_native_size
6181 (of-object "GSocketAddress")
6182 (c-name "g_socket_address_get_native_size")
6183 (return-type "gssize")
6188 ;; From gsocketclient.h
6190 (define-function g_socket_client_get_type
6191 (c-name "g_socket_client_get_type")
6192 (return-type "GType")
6195 (define-function g_socket_client_new
6196 (c-name "g_socket_client_new")
6197 (is-constructor-of "GSocketClient")
6198 (return-type "GSocketClient*")
6201 (define-method get_family
6202 (of-object "GSocketClient")
6203 (c-name "g_socket_client_get_family")
6204 (return-type "GSocketFamily")
6207 (define-method set_family
6208 (of-object "GSocketClient")
6209 (c-name "g_socket_client_set_family")
6210 (return-type "none")
6212 '("GSocketFamily" "family")
6216 (define-method get_socket_type
6217 (of-object "GSocketClient")
6218 (c-name "g_socket_client_get_socket_type")
6219 (return-type "GSocketType")
6222 (define-method set_socket_type
6223 (of-object "GSocketClient")
6224 (c-name "g_socket_client_set_socket_type")
6225 (return-type "none")
6227 '("GSocketType" "type")
6231 (define-method get_protocol
6232 (of-object "GSocketClient")
6233 (c-name "g_socket_client_get_protocol")
6234 (return-type "GSocketProtocol")
6237 (define-method set_protocol
6238 (of-object "GSocketClient")
6239 (c-name "g_socket_client_set_protocol")
6240 (return-type "none")
6242 '("GSocketProtocol" "protocol")
6246 (define-method get_local_address
6247 (of-object "GSocketClient")
6248 (c-name "g_socket_client_get_local_address")
6249 (return-type "GSocketAddress*")
6252 (define-method set_local_address
6253 (of-object "GSocketClient")
6254 (c-name "g_socket_client_set_local_address")
6255 (return-type "none")
6257 '("GSocketAddress*" "address")
6261 (define-method connect
6262 (of-object "GSocketClient")
6263 (c-name "g_socket_client_connect")
6264 (return-type "GSocketConnection*")
6266 '("GSocketConnectable*" "connectable")
6267 '("GCancellable*" "cancellable")
6268 '("GError**" "error")
6272 (define-method connect_to_host
6273 (of-object "GSocketClient")
6274 (c-name "g_socket_client_connect_to_host")
6275 (return-type "GSocketConnection*")
6277 '("const-gchar*" "host_and_port")
6278 '("guint16" "default_port")
6279 '("GCancellable*" "cancellable")
6280 '("GError**" "error")
6284 (define-method connect_to_service
6285 (of-object "GSocketClient")
6286 (c-name "g_socket_client_connect_to_service")
6287 (return-type "GSocketConnection*")
6289 '("const-gchar*" "domain")
6290 '("const-gchar*" "service")
6291 '("GCancellable*" "cancellable")
6292 '("GError**" "error")
6296 (define-method connect_async
6297 (of-object "GSocketClient")
6298 (c-name "g_socket_client_connect_async")
6299 (return-type "none")
6301 '("GSocketConnectable*" "connectable")
6302 '("GCancellable*" "cancellable")
6303 '("GAsyncReadyCallback" "callback")
6304 '("gpointer" "user_data")
6308 (define-method connect_finish
6309 (of-object "GSocketClient")
6310 (c-name "g_socket_client_connect_finish")
6311 (return-type "GSocketConnection*")
6313 '("GAsyncResult*" "result")
6314 '("GError**" "error")
6318 (define-method connect_to_host_async
6319 (of-object "GSocketClient")
6320 (c-name "g_socket_client_connect_to_host_async")
6321 (return-type "none")
6323 '("const-gchar*" "host_and_port")
6324 '("guint16" "default_port")
6325 '("GCancellable*" "cancellable")
6326 '("GAsyncReadyCallback" "callback")
6327 '("gpointer" "user_data")
6331 (define-method connect_to_host_finish
6332 (of-object "GSocketClient")
6333 (c-name "g_socket_client_connect_to_host_finish")
6334 (return-type "GSocketConnection*")
6336 '("GAsyncResult*" "result")
6337 '("GError**" "error")
6341 (define-method connect_to_service_async
6342 (of-object "GSocketClient")
6343 (c-name "g_socket_client_connect_to_service_async")
6344 (return-type "none")
6346 '("const-gchar*" "domain")
6347 '("const-gchar*" "service")
6348 '("GCancellable*" "cancellable")
6349 '("GAsyncReadyCallback" "callback")
6350 '("gpointer" "user_data")
6354 (define-method connect_to_service_finish
6355 (of-object "GSocketClient")
6356 (c-name "g_socket_client_connect_to_service_finish")
6357 (return-type "GSocketConnection*")
6359 '("GAsyncResult*" "result")
6360 '("GError**" "error")
6366 ;; From gsocketconnectable.h
6368 (define-function g_socket_connectable_get_type
6369 (c-name "g_socket_connectable_get_type")
6370 (return-type "GType")
6373 (define-method enumerate
6374 (of-object "GSocketConnectable")
6375 (c-name "g_socket_connectable_enumerate")
6376 (return-type "GSocketAddressEnumerator*")
6381 ;; From gsocketconnection.h
6383 (define-function g_socket_connection_get_type
6384 (c-name "g_socket_connection_get_type")
6385 (return-type "GType")
6388 (define-method get_socket
6389 (of-object "GSocketConnection")
6390 (c-name "g_socket_connection_get_socket")
6391 (return-type "GSocket*")
6394 (define-method get_local_address
6395 (of-object "GSocketConnection")
6396 (c-name "g_socket_connection_get_local_address")
6397 (return-type "GSocketAddress*")
6399 '("GError**" "error")
6403 (define-method get_remote_address
6404 (of-object "GSocketConnection")
6405 (c-name "g_socket_connection_get_remote_address")
6406 (return-type "GSocketAddress*")
6408 '("GError**" "error")
6412 (define-function g_socket_connection_factory_register_type
6413 (c-name "g_socket_connection_factory_register_type")
6414 (return-type "none")
6417 '("GSocketFamily" "family")
6418 '("GSocketType" "type")
6419 '("gint" "protocol")
6423 (define-function g_socket_connection_factory_lookup_type
6424 (c-name "g_socket_connection_factory_lookup_type")
6425 (return-type "GType")
6427 '("GSocketFamily" "family")
6428 '("GSocketType" "type")
6429 '("gint" "protocol_id")
6433 (define-method connection_factory_create_connection
6434 (of-object "GSocket")
6435 (c-name "g_socket_connection_factory_create_connection")
6436 (return-type "GSocketConnection*")
6441 ;; From gsocketcontrolmessage.h
6443 (define-function g_socket_control_message_get_type
6444 (c-name "g_socket_control_message_get_type")
6445 (return-type "GType")
6448 (define-method get_size
6449 (of-object "GSocketControlMessage")
6450 (c-name "g_socket_control_message_get_size")
6451 (return-type "gsize")
6454 (define-method get_level
6455 (of-object "GSocketControlMessage")
6456 (c-name "g_socket_control_message_get_level")
6460 (define-method get_msg_type
6461 (of-object "GSocketControlMessage")
6462 (c-name "g_socket_control_message_get_msg_type")
6466 (define-method serialize
6467 (of-object "GSocketControlMessage")
6468 (c-name "g_socket_control_message_serialize")
6469 (return-type "none")
6471 '("gpointer" "data")
6475 (define-function g_socket_control_message_deserialize
6476 (c-name "g_socket_control_message_deserialize")
6477 (return-type "GSocketControlMessage*")
6482 '("gpointer" "data")
6490 (define-function g_socket_get_type
6491 (c-name "g_socket_get_type")
6492 (return-type "GType")
6495 (define-function g_socket_new
6496 (c-name "g_socket_new")
6497 (is-constructor-of "GSocket")
6498 (return-type "GSocket*")
6500 '("GSocketFamily" "family")
6501 '("GSocketType" "type")
6502 '("GSocketProtocol" "protocol")
6503 '("GError**" "error")
6507 (define-function g_socket_new_from_fd
6508 (c-name "g_socket_new_from_fd")
6509 (return-type "GSocket*")
6512 '("GError**" "error")
6516 (define-method get_fd
6517 (of-object "GSocket")
6518 (c-name "g_socket_get_fd")
6522 (define-method get_family
6523 (of-object "GSocket")
6524 (c-name "g_socket_get_family")
6525 (return-type "GSocketFamily")
6528 (define-method get_socket_type
6529 (of-object "GSocket")
6530 (c-name "g_socket_get_socket_type")
6531 (return-type "GSocketType")
6534 (define-method get_protocol
6535 (of-object "GSocket")
6536 (c-name "g_socket_get_protocol")
6537 (return-type "GSocketProtocol")
6540 (define-method get_local_address
6541 (of-object "GSocket")
6542 (c-name "g_socket_get_local_address")
6543 (return-type "GSocketAddress*")
6545 '("GError**" "error")
6549 (define-method get_remote_address
6550 (of-object "GSocket")
6551 (c-name "g_socket_get_remote_address")
6552 (return-type "GSocketAddress*")
6554 '("GError**" "error")
6558 (define-method set_blocking
6559 (of-object "GSocket")
6560 (c-name "g_socket_set_blocking")
6561 (return-type "none")
6563 '("gboolean" "blocking")
6567 (define-method get_blocking
6568 (of-object "GSocket")
6569 (c-name "g_socket_get_blocking")
6570 (return-type "gboolean")
6573 (define-method set_keepalive
6574 (of-object "GSocket")
6575 (c-name "g_socket_set_keepalive")
6576 (return-type "none")
6578 '("gboolean" "keepalive")
6582 (define-method get_keepalive
6583 (of-object "GSocket")
6584 (c-name "g_socket_get_keepalive")
6585 (return-type "gboolean")
6588 (define-method get_listen_backlog
6589 (of-object "GSocket")
6590 (c-name "g_socket_get_listen_backlog")
6591 (return-type "gint")
6594 (define-method set_listen_backlog
6595 (of-object "GSocket")
6596 (c-name "g_socket_set_listen_backlog")
6597 (return-type "none")
6603 (define-method is_connected
6604 (of-object "GSocket")
6605 (c-name "g_socket_is_connected")
6606 (return-type "gboolean")
6610 (of-object "GSocket")
6611 (c-name "g_socket_bind")
6612 (return-type "gboolean")
6614 '("GSocketAddress*" "address")
6615 '("gboolean" "allow_reuse")
6616 '("GError**" "error")
6620 (define-method connect
6621 (of-object "GSocket")
6622 (c-name "g_socket_connect")
6623 (return-type "gboolean")
6625 '("GSocketAddress*" "address")
6626 '("GCancellable*" "cancellable")
6627 '("GError**" "error")
6631 (define-method check_connect_result
6632 (of-object "GSocket")
6633 (c-name "g_socket_check_connect_result")
6634 (return-type "gboolean")
6636 '("GError**" "error")
6640 (define-method condition_check
6641 (of-object "GSocket")
6642 (c-name "g_socket_condition_check")
6643 (return-type "GIOCondition")
6645 '("GIOCondition" "condition")
6649 (define-method condition_wait
6650 (of-object "GSocket")
6651 (c-name "g_socket_condition_wait")
6652 (return-type "gboolean")
6654 '("GIOCondition" "condition")
6655 '("GCancellable*" "cancellable")
6656 '("GError**" "error")
6660 (define-method accept
6661 (of-object "GSocket")
6662 (c-name "g_socket_accept")
6663 (return-type "GSocket*")
6665 '("GCancellable*" "cancellable")
6666 '("GError**" "error")
6670 (define-method listen
6671 (of-object "GSocket")
6672 (c-name "g_socket_listen")
6673 (return-type "gboolean")
6675 '("GError**" "error")
6679 (define-method receive
6680 (of-object "GSocket")
6681 (c-name "g_socket_receive")
6682 (return-type "gssize")
6684 '("gchar*" "buffer")
6686 '("GCancellable*" "cancellable")
6687 '("GError**" "error")
6691 (define-method receive_from
6692 (of-object "GSocket")
6693 (c-name "g_socket_receive_from")
6694 (return-type "gssize")
6696 '("GSocketAddress**" "address")
6697 '("gchar*" "buffer")
6699 '("GCancellable*" "cancellable")
6700 '("GError**" "error")
6705 (of-object "GSocket")
6706 (c-name "g_socket_send")
6707 (return-type "gssize")
6709 '("const-gchar*" "buffer")
6711 '("GCancellable*" "cancellable")
6712 '("GError**" "error")
6716 (define-method send_to
6717 (of-object "GSocket")
6718 (c-name "g_socket_send_to")
6719 (return-type "gssize")
6721 '("GSocketAddress*" "address")
6722 '("const-gchar*" "buffer")
6724 '("GCancellable*" "cancellable")
6725 '("GError**" "error")
6729 (define-method receive_message
6730 (of-object "GSocket")
6731 (c-name "g_socket_receive_message")
6732 (return-type "gssize")
6734 '("GSocketAddress**" "address")
6735 '("GInputVector*" "vectors")
6736 '("gint" "num_vectors")
6737 '("GSocketControlMessage***" "messages")
6738 '("gint*" "num_messages")
6740 '("GCancellable*" "cancellable")
6741 '("GError**" "error")
6745 (define-method send_message
6746 (of-object "GSocket")
6747 (c-name "g_socket_send_message")
6748 (return-type "gssize")
6750 '("GSocketAddress*" "address")
6751 '("GOutputVector*" "vectors")
6752 '("gint" "num_vectors")
6753 '("GSocketControlMessage**" "messages")
6754 '("gint" "num_messages")
6756 '("GCancellable*" "cancellable")
6757 '("GError**" "error")
6761 (define-method close
6762 (of-object "GSocket")
6763 (c-name "g_socket_close")
6764 (return-type "gboolean")
6766 '("GError**" "error")
6770 (define-method shutdown
6771 (of-object "GSocket")
6772 (c-name "g_socket_shutdown")
6773 (return-type "gboolean")
6775 '("gboolean" "shutdown_read")
6776 '("gboolean" "shutdown_write")
6777 '("GError**" "error")
6781 (define-method is_closed
6782 (of-object "GSocket")
6783 (c-name "g_socket_is_closed")
6784 (return-type "gboolean")
6787 (define-method create_source
6788 (of-object "GSocket")
6789 (c-name "g_socket_create_source")
6790 (return-type "GSource*")
6792 '("GIOCondition" "condition")
6793 '("GCancellable*" "cancellable")
6797 (define-method speaks_ipv4
6798 (of-object "GSocket")
6799 (c-name "g_socket_speaks_ipv4")
6800 (return-type "gboolean")
6805 ;; From gsocketlistener.h
6807 (define-function g_socket_listener_get_type
6808 (c-name "g_socket_listener_get_type")
6809 (return-type "GType")
6812 (define-function g_socket_listener_new
6813 (c-name "g_socket_listener_new")
6814 (is-constructor-of "GSocketListener")
6815 (return-type "GSocketListener*")
6818 (define-method set_backlog
6819 (of-object "GSocketListener")
6820 (c-name "g_socket_listener_set_backlog")
6821 (return-type "none")
6823 '("int" "listen_backlog")
6827 (define-method add_socket
6828 (of-object "GSocketListener")
6829 (c-name "g_socket_listener_add_socket")
6830 (return-type "gboolean")
6832 '("GSocket*" "socket")
6833 '("GObject*" "source_object")
6834 '("GError**" "error")
6838 (define-method add_address
6839 (of-object "GSocketListener")
6840 (c-name "g_socket_listener_add_address")
6841 (return-type "gboolean")
6843 '("GSocketAddress*" "address")
6844 '("GSocketType" "type")
6845 '("GSocketProtocol" "protocol")
6846 '("GObject*" "source_object")
6847 '("GSocketAddress**" "effective_address")
6848 '("GError**" "error")
6852 (define-method add_inet_port
6853 (of-object "GSocketListener")
6854 (c-name "g_socket_listener_add_inet_port")
6855 (return-type "gboolean")
6858 '("GObject*" "source_object")
6859 '("GError**" "error")
6863 (define-method accept_socket
6864 (of-object "GSocketListener")
6865 (c-name "g_socket_listener_accept_socket")
6866 (return-type "GSocket*")
6868 '("GObject**" "source_object")
6869 '("GCancellable*" "cancellable")
6870 '("GError**" "error")
6874 (define-method accept_socket_async
6875 (of-object "GSocketListener")
6876 (c-name "g_socket_listener_accept_socket_async")
6877 (return-type "none")
6879 '("GCancellable*" "cancellable")
6880 '("GAsyncReadyCallback" "callback")
6881 '("gpointer" "user_data")
6885 (define-method accept_socket_finish
6886 (of-object "GSocketListener")
6887 (c-name "g_socket_listener_accept_socket_finish")
6888 (return-type "GSocket*")
6890 '("GAsyncResult*" "result")
6891 '("GObject**" "source_object")
6892 '("GError**" "error")
6896 (define-method accept
6897 (of-object "GSocketListener")
6898 (c-name "g_socket_listener_accept")
6899 (return-type "GSocketConnection*")
6901 '("GObject**" "source_object")
6902 '("GCancellable*" "cancellable")
6903 '("GError**" "error")
6907 (define-method accept_async
6908 (of-object "GSocketListener")
6909 (c-name "g_socket_listener_accept_async")
6910 (return-type "none")
6912 '("GCancellable*" "cancellable")
6913 '("GAsyncReadyCallback" "callback")
6914 '("gpointer" "user_data")
6918 (define-method accept_finish
6919 (of-object "GSocketListener")
6920 (c-name "g_socket_listener_accept_finish")
6921 (return-type "GSocketConnection*")
6923 '("GAsyncResult*" "result")
6924 '("GObject**" "source_object")
6925 '("GError**" "error")
6929 (define-method close
6930 (of-object "GSocketListener")
6931 (c-name "g_socket_listener_close")
6932 (return-type "none")
6937 ;; From gsocketservice.h
6939 (define-function g_socket_service_get_type
6940 (c-name "g_socket_service_get_type")
6941 (return-type "GType")
6944 (define-function g_socket_service_new
6945 (c-name "g_socket_service_new")
6946 (is-constructor-of "GSocketService")
6947 (return-type "GSocketService*")
6950 (define-method start
6951 (of-object "GSocketService")
6952 (c-name "g_socket_service_start")
6953 (return-type "none")
6957 (of-object "GSocketService")
6958 (c-name "g_socket_service_stop")
6959 (return-type "none")
6962 (define-method is_active
6963 (of-object "GSocketService")
6964 (c-name "g_socket_service_is_active")
6965 (return-type "gboolean")
6970 ;; From gsrvtarget.h
6972 (define-function g_srv_target_get_type
6973 (c-name "g_srv_target_get_type")
6974 (return-type "GType")
6977 (define-function g_srv_target_new
6978 (c-name "g_srv_target_new")
6979 (is-constructor-of "GSrvTarget")
6980 (return-type "GSrvTarget*")
6982 '("const-gchar*" "hostname")
6984 '("guint16" "priority")
6985 '("guint16" "weight")
6990 (of-object "GSrvTarget")
6991 (c-name "g_srv_target_copy")
6992 (return-type "GSrvTarget*")
6996 (of-object "GSrvTarget")
6997 (c-name "g_srv_target_free")
6998 (return-type "none")
7001 (define-method get_hostname
7002 (of-object "GSrvTarget")
7003 (c-name "g_srv_target_get_hostname")
7004 (return-type "const-gchar*")
7007 (define-method get_port
7008 (of-object "GSrvTarget")
7009 (c-name "g_srv_target_get_port")
7010 (return-type "guint16")
7013 (define-method get_priority
7014 (of-object "GSrvTarget")
7015 (c-name "g_srv_target_get_priority")
7016 (return-type "guint16")
7019 (define-method get_weight
7020 (of-object "GSrvTarget")
7021 (c-name "g_srv_target_get_weight")
7022 (return-type "guint16")
7025 (define-function g_srv_target_list_sort
7026 (c-name "g_srv_target_list_sort")
7027 (return-type "GList*")
7029 '("GList*" "targets")
7035 ;; From gthemedicon.h
7037 (define-function themed_icon_get_type
7038 (c-name "g_themed_icon_get_type")
7039 (return-type "GType")
7042 (define-function themed_icon_new
7043 (c-name "g_themed_icon_new")
7044 (is-constructor-of "GThemedIcon")
7045 (return-type "GIcon*")
7047 '("name" (argname "iconname"))
7051 (define-function themed_icon_new_with_default_fallbacks
7052 (c-name "g_themed_icon_new_with_default_fallbacks")
7053 (return-type "GIcon*")
7055 '("const-char*" "iconname")
7059 (define-function themed_icon_new_from_names
7060 (c-name "g_themed_icon_new_from_names")
7061 (return-type "GIcon*")
7063 '("char**" "iconnames")
7068 (define-method prepend_name
7069 (of-object "GThemedIcon")
7070 (c-name "g_themed_icon_prepend_name")
7071 (return-type "none")
7073 '("const-char*" "iconname")
7078 ;; wrapped in gicon.override
7080 (define-method get_names
7081 (c-name "g_themed_icon_get_names")
7082 (of-object "GThemedIcon")
7083 (return-type "const-gchar*-const*")
7086 (define-method append_name
7087 (c-name "g_themed_icon_append_name")
7088 (of-object "GThemedIcon")
7089 (return-type "none")
7091 '("char*" "iconname")
7097 ;; From gthreadedsocketservice.h
7099 (define-function g_threaded_socket_service_get_type
7100 (c-name "g_threaded_socket_service_get_type")
7101 (return-type "GType")
7104 (define-function g_threaded_socket_service_new
7105 (c-name "g_threaded_socket_service_new")
7106 (is-constructor-of "GThreadedSocketService")
7107 (return-type "GSocketService*")
7109 '("int" "max_threads")
7115 ;; From gunixinputstream.h
7117 (define-function unix_input_stream_get_type
7118 (c-name "g_unix_input_stream_get_type")
7119 (return-type "GType")
7122 (define-function unix_input_stream_new
7123 (c-name "g_unix_input_stream_new")
7124 (is-constructor-of "GUnixInputStream")
7125 (return-type "GInputStream*")
7128 '("gboolean" "close_fd_at_close")
7136 (define-function vfs_get_type
7137 (c-name "g_vfs_get_type")
7138 (return-type "GType")
7141 (define-method is_active
7143 (c-name "g_vfs_is_active")
7144 (return-type "gboolean")
7147 (define-method get_file_for_path
7149 (c-name "g_vfs_get_file_for_path")
7150 (return-type "GFile*")
7151 (caller-owns-return #t)
7153 '("const-char*" "path")
7157 (define-method get_file_for_uri
7159 (c-name "g_vfs_get_file_for_uri")
7160 (return-type "GFile*")
7161 (caller-owns-return #t)
7163 '("const-char*" "uri")
7167 (define-method parse_name
7169 (c-name "g_vfs_parse_name")
7170 (return-type "GFile*")
7171 (caller-owns-return #t)
7173 '("const-char*" "parse_name")
7177 (define-function vfs_get_default
7178 (c-name "g_vfs_get_default")
7179 (return-type "GVfs*")
7182 (define-function vfs_get_local
7183 (c-name "g_vfs_get_local")
7184 (return-type "GVfs*")
7188 ;; wrapped in gio.override
7190 (define-method get_supported_uri_schemes
7192 "VFS.get_supported_uri_schemes() -> [uri, ..]\n"
7193 "Gets a list of URI schemes supported by vfs.")
7195 (c-name "g_vfs_get_supported_uri_schemes")
7196 (return-type "const-char*-const*")
7201 ;; From gwin32appinfo.h
7203 (define-function win32_app_info_get_type
7204 (c-name "g_win32_app_info_get_type")
7205 (return-type "GType")
7212 (define-function volume_get_type
7213 (c-name "g_volume_get_type")
7214 (return-type "GType")
7217 (define-method get_name
7218 (of-object "GVolume")
7219 (c-name "g_volume_get_name")
7220 (return-type "char*")
7223 (define-method get_icon
7224 (of-object "GVolume")
7225 (c-name "g_volume_get_icon")
7226 (return-type "GIcon*")
7227 (caller-owns-return #t)
7230 (define-method get_uuid
7231 (of-object "GVolume")
7232 (c-name "g_volume_get_uuid")
7233 (return-type "char*")
7236 (define-method get_drive
7237 (of-object "GVolume")
7238 (c-name "g_volume_get_drive")
7239 (return-type "GDrive*")
7240 (caller-owns-return #t)
7243 (define-method get_mount
7244 (of-object "GVolume")
7245 (c-name "g_volume_get_mount")
7246 (return-type "GMount*")
7247 (caller-owns-return #t)
7250 (define-method can_mount
7251 (of-object "GVolume")
7252 (c-name "g_volume_can_mount")
7253 (return-type "gboolean")
7256 (define-method can_eject
7257 (of-object "GVolume")
7258 (c-name "g_volume_can_eject")
7259 (return-type "gboolean")
7262 (define-method should_automount
7263 (of-object "GVolume")
7264 (c-name "g_volume_should_automount")
7265 (return-type "gboolean")
7269 ;; wrapped in gvolume.override
7271 (define-method mount
7272 (of-object "GVolume")
7273 (c-name "g_volume_mount")
7274 (return-type "none")
7276 '("GMountOperation*" "mount_operation")
7277 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7278 '("GAsyncReadyCallback" "callback")
7279 '("gpointer" "user_data")
7283 (define-method mount_finish
7284 (of-object "GVolume")
7285 (c-name "g_volume_mount_finish")
7286 (return-type "gboolean")
7288 '("GAsyncResult*" "result")
7289 '("GError**" "error")
7294 ;; wrapped in gvolume.override
7296 (define-method eject
7297 (of-object "GVolume")
7298 (c-name "g_volume_eject")
7299 (return-type "none")
7301 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
7302 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7303 '("GAsyncReadyCallback" "callback")
7304 '("gpointer" "user_data")
7308 (define-method eject_finish
7309 (of-object "GVolume")
7310 (c-name "g_volume_eject_finish")
7311 (return-type "gboolean")
7313 '("GAsyncResult*" "result")
7314 '("GError**" "error")
7318 (define-method get_identifier
7319 (of-object "GVolume")
7320 (c-name "g_volume_get_identifier")
7321 (return-type "char*")
7323 '("const-char*" "kind")
7328 ;; wrapped in gvolume.override
7330 (define-method enumerate_identifiers
7331 (of-object "GVolume")
7332 (c-name "g_volume_enumerate_identifiers")
7333 (return-type "char**")
7336 (define-method get_activation_root
7337 (of-object "GVolume")
7338 (c-name "g_volume_get_activation_root")
7339 (return-type "GFile*")
7342 (define-method eject_with_operation
7343 (of-object "GVolume")
7344 (c-name "g_volume_eject_with_operation")
7345 (return-type "none")
7347 '("GMountUnmountFlags" "flags")
7348 '("GMountOperation*" "mount_operation")
7349 '("GCancellable*" "cancellable")
7350 '("GAsyncReadyCallback" "callback")
7351 '("gpointer" "user_data")
7355 (define-method eject_with_operation_finish
7356 (of-object "GVolume")
7357 (c-name "g_volume_eject_with_operation_finish")
7358 (return-type "gboolean")
7360 '("GAsyncResult*" "result")
7361 '("GError**" "error")
7367 ;; From gvolumemonitor.h
7369 (define-function volume_monitor_get_type
7370 (c-name "g_volume_monitor_get_type")
7371 (return-type "GType")
7374 (define-function volume_monitor_get
7375 (c-name "g_volume_monitor_get")
7376 (return-type "GVolumeMonitor*")
7380 ;; wrapped in gvolumemonitor.override
7382 (define-method get_connected_drives
7383 (of-object "GVolumeMonitor")
7384 (c-name "g_volume_monitor_get_connected_drives")
7385 (return-type "GList*")
7389 ;; wrapped in gvolumemonitor.override
7391 (define-method get_volumes
7392 (of-object "GVolumeMonitor")
7393 (c-name "g_volume_monitor_get_volumes")
7394 (return-type "GList*")
7398 ;; wrapped in gvolumemonitor.override
7400 (define-method get_mounts
7401 (of-object "GVolumeMonitor")
7402 (c-name "g_volume_monitor_get_mounts")
7403 (return-type "GList*")
7406 (define-method get_volume_for_uuid
7407 (of-object "GVolumeMonitor")
7408 (c-name "g_volume_monitor_get_volume_for_uuid")
7409 (return-type "GVolume*")
7410 (caller-owns-return #t)
7412 '("const-char*" "uuid")
7416 (define-method get_mount_for_uuid
7417 (of-object "GVolumeMonitor")
7418 (c-name "g_volume_monitor_get_mount_for_uuid")
7419 (return-type "GMount*")
7420 (caller-owns-return #t)
7422 '("const-char*" "uuid")
7426 (define-function volume_monitor_adopt_orphan_mount
7427 (c-name "g_volume_monitor_adopt_orphan_mount")
7428 (return-type "GVolume*")
7430 '("GMount*" "mount")