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 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" (null-ok) (default "NULL"))
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 async_initable_new_async
328 (c-name "g_async_initable_new_async")
331 '("GType" "object_type")
332 '("int" "io_priority")
333 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
334 '("GAsyncReadyCallback" "callback")
335 '("gpointer" "user_data")
336 '("const-gchar*" "first_property_name")
341 (define-function 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" (null-ok) (default "NULL"))
350 '("GAsyncReadyCallback" "callback")
351 '("gpointer" "user_data")
355 (define-function 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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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 emblemed_icon_get_type
1338 (c-name "g_emblemed_icon_get_type")
1339 (return-type "GType")
1342 (define-function 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 emblem_get_type
1378 (c-name "g_emblem_get_type")
1379 (return-type "GType")
1382 (define-function 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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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" (null-ok) (default "NULL"))
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 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" (null-ok) (default "NULL"))
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 ginetsocketaddress.h
4161 (define-function inet_socket_address_get_type
4162 (c-name "g_inet_socket_address_get_type")
4163 (return-type "GType")
4166 (define-function inet_socket_address_new
4167 (c-name "g_inet_socket_address_new")
4168 (is-constructor-of "GInetSocketAddress")
4169 (return-type "GSocketAddress*")
4171 '("GInetAddress*" "address")
4176 (define-method get_address
4177 (of-object "GInetSocketAddress")
4178 (c-name "g_inet_socket_address_get_address")
4179 (return-type "GInetAddress*")
4182 (define-method get_port
4183 (of-object "GInetSocketAddress")
4184 (c-name "g_inet_socket_address_get_port")
4185 (return-type "guint16")
4190 ;; From ginputstream.h
4192 (define-function input_stream_get_type
4193 (c-name "g_input_stream_get_type")
4194 (return-type "GType")
4198 ;; wrapped in ginputstream.override
4200 ;; Note: the following two methods are renamed for consistency with
4201 ;; Python file objects' read(). I.e. g_input_stream_read_all() is
4202 ;; more like Python file.read(), so it is renamed read(). Since now
4203 ;; there is a name clash, g_input_stream_read() is renamed
4205 (define-method read_part
4206 (of-object "GInputStream")
4208 "STREAM.read_part([count, [cancellable]]) -> string\n"
4210 "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4211 "omitted, read until the end of the stream. This method is allowed to\n"
4212 "stop at any time after reading at least 1 byte from the stream. E.g.\n"
4213 "when reading over a (relatively slow) HTTP connection, it will often\n"
4214 "stop after receiving one packet. Therefore, to reliably read requested\n"
4215 "number of bytes, you need to use a loop. See also gio.InputStream.read\n"
4216 "for easier to use (though less efficient) method.\n"
4218 "Note: this method roughly corresponds to C GIO g_input_stream_read."
4220 (c-name "g_input_stream_read")
4221 (return-type "gssize")
4225 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4226 '("GError**" "error")
4231 ;; wrapped in ginputstream.override
4233 ;; See comments before the previous method definition.
4235 (of-object "GInputStream")
4237 "STREAM.read([count, [cancellable]]) -> string\n"
4239 "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4240 "omitted, read until the end of the stream. This method will stop only\n"
4241 "after reading requested number of bytes, reaching end of stream or\n"
4242 "triggering an I/O error. See also gio.InputStream.read_part for more\n"
4243 "efficient, but more cumbersome to use method.\n"
4245 "Note: this method roughly corresponds to C GIO g_input_stream_read_all.\n"
4246 "It was renamed for consistency with Python standard file.read."
4248 (c-name "g_input_stream_read_all")
4249 (return-type "gboolean")
4253 '("gsize*" "bytes_read")
4254 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4255 '("GError**" "error")
4260 (of-object "GInputStream")
4261 (c-name "g_input_stream_skip")
4262 (return-type "gssize")
4265 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4266 '("GError**" "error")
4270 (define-method close
4271 (of-object "GInputStream")
4272 (c-name "g_input_stream_close")
4273 (return-type "gboolean")
4275 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4276 '("GError**" "error")
4281 ;; wrapped in ginputstream.override
4283 (define-method read_async
4284 (of-object "GInputStream")
4285 (c-name "g_input_stream_read_async")
4286 (return-type "none")
4290 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4291 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4292 '("GAsyncReadyCallback" "callback")
4293 '("gpointer" "user_data")
4298 ;; wrapped in ginputstream.override
4300 (define-method read_finish
4301 (of-object "GInputStream")
4302 (c-name "g_input_stream_read_finish")
4303 (return-type "gssize")
4305 '("GAsyncResult*" "result")
4306 '("GError**" "error")
4310 (define-method skip_async
4311 (of-object "GInputStream")
4312 (c-name "g_input_stream_skip_async")
4313 (return-type "none")
4316 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4317 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4318 '("GAsyncReadyCallback" "callback")
4319 '("gpointer" "user_data")
4323 (define-method skip_finish
4324 (of-object "GInputStream")
4325 (c-name "g_input_stream_skip_finish")
4326 (return-type "gssize")
4328 '("GAsyncResult*" "result")
4329 '("GError**" "error")
4334 ;; wrapped in ginputstream.override
4336 (define-method close_async
4337 (of-object "GInputStream")
4338 (c-name "g_input_stream_close_async")
4339 (return-type "none")
4341 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4342 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4343 '("GAsyncReadyCallback" "callback")
4344 '("gpointer" "user_data")
4348 (define-method close_finish
4349 (of-object "GInputStream")
4350 (c-name "g_input_stream_close_finish")
4351 (return-type "gboolean")
4353 '("GAsyncResult*" "result")
4354 '("GError**" "error")
4358 (define-method is_closed
4359 (of-object "GInputStream")
4360 (c-name "g_input_stream_is_closed")
4361 (return-type "gboolean")
4364 (define-method has_pending
4365 (of-object "GInputStream")
4366 (c-name "g_input_stream_has_pending")
4367 (return-type "gboolean")
4370 (define-method set_pending
4371 (of-object "GInputStream")
4372 (c-name "g_input_stream_set_pending")
4373 (return-type "gboolean")
4375 '("GError**" "error")
4379 (define-method clear_pending
4380 (of-object "GInputStream")
4381 (c-name "g_input_stream_clear_pending")
4382 (return-type "none")
4391 ;; From gioenumtypes.h
4393 (define-function app_info_create_flags_get_type
4394 (c-name "g_app_info_create_flags_get_type")
4395 (return-type "GType")
4398 (define-function data_stream_byte_order_get_type
4399 (c-name "g_data_stream_byte_order_get_type")
4400 (return-type "GType")
4403 (define-function data_stream_newline_type_get_type
4404 (c-name "g_data_stream_newline_type_get_type")
4405 (return-type "GType")
4408 (define-function file_query_info_flags_get_type
4409 (c-name "g_file_query_info_flags_get_type")
4410 (return-type "GType")
4413 (define-function file_create_flags_get_type
4414 (c-name "g_file_create_flags_get_type")
4415 (return-type "GType")
4418 (define-function file_copy_flags_get_type
4419 (c-name "g_file_copy_flags_get_type")
4420 (return-type "GType")
4423 (define-function file_monitor_flags_get_type
4424 (c-name "g_file_monitor_flags_get_type")
4425 (return-type "GType")
4428 (define-function file_attribute_type_get_type
4429 (c-name "g_file_attribute_type_get_type")
4430 (return-type "GType")
4433 (define-function file_attribute_info_flags_get_type
4434 (c-name "g_file_attribute_info_flags_get_type")
4435 (return-type "GType")
4438 (define-function file_attribute_status_get_type
4439 (c-name "g_file_attribute_status_get_type")
4440 (return-type "GType")
4443 (define-function file_type_get_type
4444 (c-name "g_file_type_get_type")
4445 (return-type "GType")
4448 (define-function file_monitor_event_get_type
4449 (c-name "g_file_monitor_event_get_type")
4450 (return-type "GType")
4453 (define-function io_error_enum_get_type
4454 (c-name "g_io_error_enum_get_type")
4455 (return-type "GType")
4458 (define-function ask_password_flags_get_type
4459 (c-name "g_ask_password_flags_get_type")
4460 (return-type "GType")
4463 (define-function password_save_get_type
4464 (c-name "g_password_save_get_type")
4465 (return-type "GType")
4468 (define-function output_stream_splice_flags_get_type
4469 (c-name "g_output_stream_splice_flags_get_type")
4470 (return-type "GType")
4477 (define-function io_error_quark
4478 (c-name "g_io_error_quark")
4479 (return-type "GQuark")
4482 (define-function io_error_from_errno
4483 (c-name "g_io_error_from_errno")
4484 (return-type "GIOErrorEnum")
4496 ;; From gio-marshal.h
4502 (define-function io_module_get_type
4503 (c-name "g_io_module_get_type")
4504 (return-type "GType")
4507 (define-function io_module_new
4508 (c-name "g_io_module_new")
4509 (is-constructor-of "GIoModule")
4510 (return-type "GIOModule*")
4512 '("const-gchar*" "filename")
4516 (define-function io_modules_load_all_in_directory
4517 (c-name "g_io_modules_load_all_in_directory")
4518 (return-type "GList*")
4520 '("const-char*" "dirname")
4525 (of-object "GIOModule")
4526 (c-name "g_io_module_load")
4527 (return-type "none")
4530 (define-method unload
4531 (of-object "GIOModule")
4532 (c-name "g_io_module_unload")
4533 (return-type "none")
4538 ;; From gioscheduler.h
4540 (define-function io_scheduler_push_job
4541 (c-name "g_io_scheduler_push_job")
4542 (return-type "none")
4544 '("GIOSchedulerJobFunc" "job_func")
4545 '("gpointer" "user_data")
4546 '("GDestroyNotify" "notify")
4547 '("gint" "io_priority" (default "G_PRIORITY_DEFAULT"))
4548 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4552 (define-function io_scheduler_cancel_all_jobs
4553 (c-name "g_io_scheduler_cancel_all_jobs")
4554 (return-type "none")
4557 (define-method send_to_mainloop
4558 (of-object "GIOSchedulerJob")
4559 (c-name "g_io_scheduler_job_send_to_mainloop")
4560 (return-type "gboolean")
4562 '("GSourceFunc" "func")
4563 '("gpointer" "user_data")
4564 '("GDestroyNotify" "notify")
4568 (define-method send_to_mainloop_async
4569 (of-object "GIOSchedulerJob")
4570 (c-name "g_io_scheduler_job_send_to_mainloop_async")
4571 (return-type "none")
4573 '("GSourceFunc" "func")
4574 '("gpointer" "user_data")
4575 '("GDestroyNotify" "notify")
4581 ;; From gloadableicon.h
4583 (define-function loadable_icon_get_type
4584 (c-name "g_loadable_icon_get_type")
4585 (return-type "GType")
4589 ;; wrapped in gicon.override
4592 (of-object "GLoadableIcon")
4594 "ICON.load([size, [cancellable]]) -> input stream, type\n"
4596 "Opens a stream of icon data for reading. The result is a tuple of\n"
4597 "gio.InputStream and type (either a string or None). The stream can\n"
4598 "be read to retrieve icon data.\n"
4600 ;; Note: this is just a guess, GIO docs say nothing at the moment.
4601 "Optional size is a hint at desired icon size. Not all implementations\n"
4602 "support it and the hint will be just ignored in such cases.\n"
4603 "If cancellable is specified, then the operation can be cancelled\n"
4604 "by triggering the cancellable object from another thread. See\n"
4605 "gio.File.read for details."
4607 (c-name "g_loadable_icon_load")
4608 (return-type "GInputStream*")
4612 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4613 '("GError**" "error")
4618 ;; wrapped in gicon.override
4620 (define-method load_async
4621 (of-object "GLoadableIcon")
4623 "ICON.load_async(callback, [size, [cancellable, [user_data]]])\n"
4624 "-> start loading\n"
4626 "For more information, see gio.LoadableIcon.load() which is the\n"
4627 "synchronous version of this call. Asynchronously opens icon data for\n"
4628 "reading. When the operation is finished, callback will be called.\n"
4629 "You can then call gio.LoadableIcon.load_finish() to get the result of\n"
4632 (c-name "g_loadable_icon_load_async")
4633 (return-type "none")
4636 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4637 '("GAsyncReadyCallback" "callback")
4638 '("gpointer" "user_data")
4643 ;; wrapped in gicon.override
4645 (define-method load_finish
4647 "F.load_finish(res) -> start loading\n"
4649 "Finish asynchronous icon loading operation. Must be called from callback\n"
4650 "as specified to gio.LoadableIcon.load_async. Returns a tuple of\n"
4651 "gio.InputStream and type, just as gio.LoadableIcon.load."
4653 (of-object "GLoadableIcon")
4654 (c-name "g_loadable_icon_load_finish")
4655 (return-type "GInputStream*")
4657 '("GAsyncResult*" "res")
4659 '("GError**" "error")
4665 ;; From ginetaddress.h
4667 (define-function inet_address_get_type
4668 (c-name "g_inet_address_get_type")
4669 (return-type "GType")
4672 (define-function inet_address_new_from_string
4673 (c-name "g_inet_address_new_from_string")
4674 (return-type "GInetAddress*")
4676 '("const-gchar*" "string")
4680 (define-function inet_address_new_from_bytes
4681 (c-name "g_inet_address_new_from_bytes")
4682 (return-type "GInetAddress*")
4684 '("const-guint8*" "bytes")
4685 '("GSocketFamily" "family")
4689 (define-function inet_address_new_loopback
4690 (c-name "g_inet_address_new_loopback")
4691 (return-type "GInetAddress*")
4693 '("GSocketFamily" "family")
4697 (define-function inet_address_new_any
4698 (c-name "g_inet_address_new_any")
4699 (return-type "GInetAddress*")
4701 '("GSocketFamily" "family")
4705 (define-method to_string
4706 (of-object "GInetAddress")
4707 (c-name "g_inet_address_to_string")
4708 (return-type "gchar*")
4712 ;; FIXME codegen barfs on this one
4714 ;;(define-method to_bytes
4715 ;; (of-object "GInetAddress")
4716 ;; (c-name "g_inet_address_to_bytes")
4717 ;; (return-type "const-guint8*")
4720 (define-method get_native_size
4721 (of-object "GInetAddress")
4722 (c-name "g_inet_address_get_native_size")
4723 (return-type "gsize")
4726 (define-method get_family
4727 (of-object "GInetAddress")
4728 (c-name "g_inet_address_get_family")
4729 (return-type "GSocketFamily")
4732 (define-method get_is_any
4733 (of-object "GInetAddress")
4734 (c-name "g_inet_address_get_is_any")
4735 (return-type "gboolean")
4738 (define-method get_is_loopback
4739 (of-object "GInetAddress")
4740 (c-name "g_inet_address_get_is_loopback")
4741 (return-type "gboolean")
4744 (define-method get_is_link_local
4745 (of-object "GInetAddress")
4746 (c-name "g_inet_address_get_is_link_local")
4747 (return-type "gboolean")
4750 (define-method get_is_site_local
4751 (of-object "GInetAddress")
4752 (c-name "g_inet_address_get_is_site_local")
4753 (return-type "gboolean")
4756 (define-method get_is_multicast
4757 (of-object "GInetAddress")
4758 (c-name "g_inet_address_get_is_multicast")
4759 (return-type "gboolean")
4762 (define-method get_is_mc_global
4763 (of-object "GInetAddress")
4764 (c-name "g_inet_address_get_is_mc_global")
4765 (return-type "gboolean")
4768 (define-method get_is_mc_link_local
4769 (of-object "GInetAddress")
4770 (c-name "g_inet_address_get_is_mc_link_local")
4771 (return-type "gboolean")
4774 (define-method get_is_mc_node_local
4775 (of-object "GInetAddress")
4776 (c-name "g_inet_address_get_is_mc_node_local")
4777 (return-type "gboolean")
4780 (define-method get_is_mc_org_local
4781 (of-object "GInetAddress")
4782 (c-name "g_inet_address_get_is_mc_org_local")
4783 (return-type "gboolean")
4786 (define-method get_is_mc_site_local
4787 (of-object "GInetAddress")
4788 (c-name "g_inet_address_get_is_mc_site_local")
4789 (return-type "gboolean")
4796 (define-function initable_get_type
4797 (c-name "g_initable_get_type")
4798 (return-type "GType")
4802 (of-object "GInitable")
4803 (c-name "g_initable_init")
4804 (return-type "gboolean")
4806 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4807 '("GError**" "error")
4811 (define-function initable_new
4812 (c-name "g_initable_new")
4813 (return-type "gpointer")
4815 '("GType" "object_type")
4816 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4817 '("GError**" "error")
4818 '("const-gchar*" "first_property_name")
4823 (define-function initable_newv
4824 (c-name "g_initable_newv")
4825 (return-type "gpointer")
4827 '("GType" "object_type")
4828 '("guint" "n_parameters")
4829 '("GParameter*" "parameters")
4830 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4831 '("GError**" "error")
4835 (define-function initable_new_valist
4836 (c-name "g_initable_new_valist")
4837 (return-type "GObject*")
4839 '("GType" "object_type")
4840 '("const-gchar*" "first_property_name")
4841 '("va_list" "var_args")
4842 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4843 '("GError**" "error")
4851 (define-function io_stream_get_type
4852 (c-name "g_io_stream_get_type")
4853 (return-type "GType")
4856 (define-method get_input_stream
4857 (of-object "GIOStream")
4858 (c-name "g_io_stream_get_input_stream")
4859 (return-type "GInputStream*")
4862 (define-method get_output_stream
4863 (of-object "GIOStream")
4864 (c-name "g_io_stream_get_output_stream")
4865 (return-type "GOutputStream*")
4868 (define-method close
4869 (of-object "GIOStream")
4870 (c-name "g_io_stream_close")
4871 (return-type "gboolean")
4873 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4874 '("GError**" "error")
4878 (define-method close_async
4879 (of-object "GIOStream")
4880 (c-name "g_io_stream_close_async")
4881 (return-type "none")
4883 '("int" "io_priority")
4884 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4885 '("GAsyncReadyCallback" "callback")
4886 '("gpointer" "user_data")
4890 (define-method close_finish
4891 (of-object "GIOStream")
4892 (c-name "g_io_stream_close_finish")
4893 (return-type "gboolean")
4895 '("GAsyncResult*" "result")
4896 '("GError**" "error")
4900 (define-method is_closed
4901 (of-object "GIOStream")
4902 (c-name "g_io_stream_is_closed")
4903 (return-type "gboolean")
4906 (define-method has_pending
4907 (of-object "GIOStream")
4908 (c-name "g_io_stream_has_pending")
4909 (return-type "gboolean")
4912 (define-method set_pending
4913 (of-object "GIOStream")
4914 (c-name "g_io_stream_set_pending")
4915 (return-type "gboolean")
4917 '("GError**" "error")
4921 (define-method clear_pending
4922 (of-object "GIOStream")
4923 (c-name "g_io_stream_clear_pending")
4924 (return-type "none")
4929 ;; From glocaldirectorymonitor.h
4931 (define-function local_directory_monitor_get_type
4932 (c-name "g_local_directory_monitor_get_type")
4933 (return-type "GType")
4938 ;; From glocalfileenumerator.h
4942 ;; From glocalfile.h
4946 ;; From glocalfileinfo.h
4950 ;; From glocalfileinputstream.h
4954 ;; From glocalfilemonitor.h
4956 (define-function local_file_monitor_get_type
4957 (c-name "g_local_file_monitor_get_type")
4958 (return-type "GType")
4963 ;; From glocalfileoutputstream.h
4971 ;; From gmemoryinputstream.h
4973 (define-function memory_input_stream_get_type
4974 (c-name "g_memory_input_stream_get_type")
4975 (return-type "GType")
4978 (define-function memory_input_stream_new
4979 (c-name "g_memory_input_stream_new")
4980 (is-constructor-of "GMemoryInputStream")
4981 (return-type "GInputStream*")
4984 (define-function memory_input_stream_new_from_data
4985 (c-name "g_memory_input_stream_new_from_data")
4986 (return-type "GInputStream*")
4988 '("const-void*" "data")
4990 '("GDestroyNotify" "destroy")
4995 ;; wrapped in ginputstream.override
4997 (define-method add_data
4998 (of-object "GMemoryInputStream")
4999 (c-name "g_memory_input_stream_add_data")
5000 (return-type "none")
5002 '("const-void*" "data")
5004 '("GDestroyNotify" "destroy")
5010 ;; From gmemoryoutputstream.h
5012 (define-function memory_output_stream_get_type
5013 (c-name "g_memory_output_stream_get_type")
5014 (return-type "GType")
5018 ;; wrapped in goutputstream.override
5020 (define-function memory_output_stream_new
5021 (c-name "g_memory_output_stream_new")
5022 (is-constructor-of "GMemoryOutputStream")
5023 (return-type "GOutputStream*")
5025 '("gpointer" "data")
5027 '("GReallocFunc" "realloc_fn")
5028 '("GDestroyNotify" "destroy")
5033 ;; wrapped in goutputstream.override
5035 ;; Note: name clash with gobject.GObject.get_data; renamed.
5036 (define-method get_contents
5037 (of-object "GMemoryOutputStream")
5038 (c-name "g_memory_output_stream_get_data")
5039 (return-type "gpointer")
5042 (define-method get_size
5043 (of-object "GMemoryOutputStream")
5044 (c-name "g_memory_output_stream_get_size")
5045 (return-type "gsize")
5048 (define-method get_data_size
5049 (of-object "GMemoryOutputStream")
5050 (c-name "g_memory_output_stream_get_data_size")
5051 (return-type "gsize")
5058 (define-function mount_get_type
5059 (c-name "g_mount_get_type")
5060 (return-type "GType")
5063 (define-method get_root
5064 (of-object "GMount")
5065 (c-name "g_mount_get_root")
5066 (return-type "GFile*")
5067 (caller-owns-return #t)
5070 (define-method get_name
5071 (of-object "GMount")
5072 (c-name "g_mount_get_name")
5073 (return-type "char*")
5076 (define-method get_icon
5077 (of-object "GMount")
5078 (c-name "g_mount_get_icon")
5079 (return-type "GIcon*")
5080 (caller-owns-return #t)
5083 (define-method get_uuid
5084 (of-object "GMount")
5085 (c-name "g_mount_get_uuid")
5086 (return-type "char*")
5089 (define-method get_volume
5090 (of-object "GMount")
5091 (c-name "g_mount_get_volume")
5092 (return-type "GVolume*")
5093 (caller-owns-return #t)
5096 (define-method get_drive
5097 (of-object "GMount")
5098 (c-name "g_mount_get_drive")
5099 (return-type "GDrive*")
5100 (caller-owns-return #t)
5103 (define-method can_unmount
5104 (of-object "GMount")
5105 (c-name "g_mount_can_unmount")
5106 (return-type "gboolean")
5109 (define-method can_eject
5110 (of-object "GMount")
5111 (c-name "g_mount_can_eject")
5112 (return-type "gboolean")
5116 ;; wrapped in gio.override
5118 (define-method unmount
5120 "M.unmount(callback, [flags, cancellable, user_data])\n"
5121 "Unmounts a mount. This is an asynchronous operation, and is finished\n"
5122 "by calling gio.Mount.unmount_finish() with the mount and gio.AsyncResults\n"
5123 "data returned in the callback."
5125 (of-object "GMount")
5126 (c-name "g_mount_unmount")
5127 (return-type "none")
5129 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5130 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5131 '("GAsyncReadyCallback" "callback")
5132 '("gpointer" "user_data")
5136 (define-method unmount_finish
5137 (of-object "GMount")
5138 (c-name "g_mount_unmount_finish")
5139 (return-type "gboolean")
5141 '("GAsyncResult*" "result")
5142 '("GError**" "error")
5147 ;; wrapped in gio.override
5149 (define-method eject
5151 "F.eject(callback, [flags, cancellable, user_data])\n"
5152 "Ejects a volume.\n"
5154 "If cancellable is not None, then the operation can be cancelled by\n"
5155 "triggering the cancellable object from another thread. If the\n"
5156 "operation was cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
5158 "When the operation is finished, callback will be called. You can\n"
5159 "then call gio.Volume.eject_finish() to get the result of the operation.\n")
5160 (of-object "GMount")
5161 (c-name "g_mount_eject")
5162 (return-type "none")
5164 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5165 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5166 '("GAsyncReadyCallback" "callback")
5167 '("gpointer" "user_data")
5171 (define-method eject_finish
5172 (of-object "GMount")
5173 (c-name "g_mount_eject_finish")
5174 (return-type "gboolean")
5176 '("GAsyncResult*" "result")
5177 '("GError**" "error")
5182 ;; wrapped in gio.override
5184 (define-method remount
5185 (of-object "GMount")
5187 "M.remount(callback, [flags, [mount_operation, [cancellable, [user_data]]]])\n"
5188 "Remounts a mount. This is an asynchronous operation, and is finished by\n"
5189 "calling gio.Mount.remount_finish with the mount and gio.AsyncResults data\n"
5190 "returned in the callback.")
5191 (c-name "g_mount_remount")
5192 (return-type "none")
5194 '("GMountOperation*" "mount_operation")
5195 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5196 '("GAsyncReadyCallback" "callback")
5197 '("gpointer" "user_data")
5201 (define-method remount_finish
5202 (of-object "GMount")
5203 (c-name "g_mount_remount_finish")
5204 (return-type "gboolean")
5206 '("GAsyncResult*" "result")
5207 '("GError**" "error")
5211 (define-method guess_content_type
5212 (of-object "GMount")
5213 (c-name "g_mount_guess_content_type")
5214 (return-type "none")
5216 '("gboolean" "force_rescan")
5217 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5218 '("GAsyncReadyCallback" "callback")
5219 '("gpointer" "user_data")
5223 (define-method guess_content_type_finish
5224 (of-object "GMount")
5225 (c-name "g_mount_guess_content_type_finish")
5226 (return-type "gchar**")
5228 '("GAsyncResult*" "result")
5229 '("GError**" "error")
5233 (define-method guess_content_type_sync
5234 (of-object "GMount")
5235 (c-name "g_mount_guess_content_type_sync")
5236 (return-type "gchar**")
5238 '("gboolean" "force_rescan")
5239 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5240 '("GError**" "error")
5244 (define-method is_shadowed
5245 (of-object "GMount")
5246 (c-name "g_mount_is_shadowed")
5247 (return-type "gboolean")
5250 (define-method shadow
5251 (of-object "GMount")
5252 (c-name "g_mount_shadow")
5253 (return-type "none")
5256 (define-method unshadow
5257 (of-object "GMount")
5258 (c-name "g_mount_unshadow")
5259 (return-type "none")
5262 (define-method unmount_with_operation
5263 (of-object "GMount")
5264 (c-name "g_mount_unmount_with_operation")
5265 (return-type "none")
5267 '("GMountUnmountFlags" "flags")
5268 '("GMountOperation*" "mount_operation")
5269 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5270 '("GAsyncReadyCallback" "callback")
5271 '("gpointer" "user_data")
5275 (define-method unmount_with_operation_finish
5276 (of-object "GMount")
5277 (c-name "g_mount_unmount_with_operation_finish")
5278 (return-type "gboolean")
5280 '("GAsyncResult*" "result")
5281 '("GError**" "error")
5285 (define-method eject_with_operation
5286 (of-object "GMount")
5287 (c-name "g_mount_eject_with_operation")
5288 (return-type "none")
5290 '("GMountUnmountFlags" "flags")
5291 '("GMountOperation*" "mount_operation")
5292 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5293 '("GAsyncReadyCallback" "callback")
5294 '("gpointer" "user_data")
5298 (define-method eject_with_operation_finish
5299 (of-object "GMount")
5300 (c-name "g_mount_eject_with_operation_finish")
5301 (return-type "gboolean")
5303 '("GAsyncResult*" "result")
5304 '("GError**" "error")
5310 ;; From gmountoperation.h
5312 (define-function mount_operation_get_type
5313 (c-name "g_mount_operation_get_type")
5314 (return-type "GType")
5317 (define-function mount_operation_new
5318 (c-name "g_mount_operation_new")
5319 (is-constructor-of "GMountOperation")
5320 (return-type "GMountOperation*")
5323 (define-method get_username
5324 (of-object "GMountOperation")
5325 (c-name "g_mount_operation_get_username")
5326 (return-type "const-char*")
5329 (define-method set_username
5330 (of-object "GMountOperation")
5331 (c-name "g_mount_operation_set_username")
5332 (return-type "none")
5334 '("const-char*" "username")
5338 (define-method get_password
5339 (of-object "GMountOperation")
5340 (c-name "g_mount_operation_get_password")
5341 (return-type "const-char*")
5344 (define-method set_password
5345 (of-object "GMountOperation")
5346 (c-name "g_mount_operation_set_password")
5347 (return-type "none")
5349 '("const-char*" "password")
5353 (define-method get_anonymous
5354 (of-object "GMountOperation")
5355 (c-name "g_mount_operation_get_anonymous")
5356 (return-type "gboolean")
5359 (define-method set_anonymous
5360 (of-object "GMountOperation")
5361 (c-name "g_mount_operation_set_anonymous")
5362 (return-type "none")
5364 '("gboolean" "anonymous")
5368 (define-method get_domain
5369 (of-object "GMountOperation")
5370 (c-name "g_mount_operation_get_domain")
5371 (return-type "const-char*")
5374 (define-method set_domain
5375 (of-object "GMountOperation")
5376 (c-name "g_mount_operation_set_domain")
5377 (return-type "none")
5379 '("const-char*" "domain")
5383 (define-method get_password_save
5384 (of-object "GMountOperation")
5385 (c-name "g_mount_operation_get_password_save")
5386 (return-type "GPasswordSave")
5389 (define-method set_password_save
5390 (of-object "GMountOperation")
5391 (c-name "g_mount_operation_set_password_save")
5392 (return-type "none")
5394 '("GPasswordSave" "save")
5398 (define-method get_choice
5399 (of-object "GMountOperation")
5400 (c-name "g_mount_operation_get_choice")
5404 (define-method set_choice
5405 (of-object "GMountOperation")
5406 (c-name "g_mount_operation_set_choice")
5407 (return-type "none")
5413 (define-method reply
5414 (of-object "GMountOperation")
5415 (c-name "g_mount_operation_reply")
5416 (return-type "none")
5418 '("GMountOperationResult" "result")
5424 ;; From gnativevolumemonitor.h
5426 (define-function native_volume_monitor_get_type
5427 (c-name "g_native_volume_monitor_get_type")
5428 (return-type "GType")
5433 ;; From gnetworkaddress.h
5435 (define-function network_address_get_type
5436 (c-name "g_network_address_get_type")
5437 (return-type "GType")
5440 (define-function network_address_new
5441 (c-name "g_network_address_new")
5442 (is-constructor-of "GNetworkAddress")
5443 (return-type "GSocketConnectable*")
5445 '("const-gchar*" "hostname")
5450 (define-function network_address_parse
5451 (c-name "g_network_address_parse")
5452 (return-type "GSocketConnectable*")
5454 '("const-gchar*" "host_and_port")
5455 '("guint16" "default_port")
5456 '("GError**" "error")
5460 (define-method get_hostname
5461 (of-object "GNetworkAddress")
5462 (c-name "g_network_address_get_hostname")
5463 (return-type "const-gchar*")
5466 (define-method get_port
5467 (of-object "GNetworkAddress")
5468 (c-name "g_network_address_get_port")
5469 (return-type "guint16")
5474 ;; From gnetworkservice.h
5476 (define-function network_service_get_type
5477 (c-name "g_network_service_get_type")
5478 (return-type "GType")
5481 (define-function network_service_new
5482 (c-name "g_network_service_new")
5483 (is-constructor-of "GNetworkService")
5484 (return-type "GSocketConnectable*")
5486 '("const-gchar*" "service")
5487 '("const-gchar*" "protocol")
5488 '("const-gchar*" "domain")
5492 (define-method get_service
5493 (of-object "GNetworkService")
5494 (c-name "g_network_service_get_service")
5495 (return-type "const-gchar*")
5498 (define-method get_protocol
5499 (of-object "GNetworkService")
5500 (c-name "g_network_service_get_protocol")
5501 (return-type "const-gchar*")
5504 (define-method get_domain
5505 (of-object "GNetworkService")
5506 (c-name "g_network_service_get_domain")
5507 (return-type "const-gchar*")
5512 ;; From goutputstream.h
5514 (define-function output_stream_get_type
5515 (c-name "g_output_stream_get_type")
5516 (return-type "GType")
5520 ;; wrapped in goutputstream.override
5522 ;; Note: the following two methods are renamed for consistency with
5523 ;; Python file objects' write(). I.e. g_output_stream_write_all() is
5524 ;; more like Python file.write(), so it is renamed write(). Since now
5525 ;; there is a name clash, g_output_stream_write() is renamed
5527 (define-method write_part
5528 (of-object "GOutputStream")
5530 "STREAM.write_part(buffer, [cancellable]) -> int\n"
5532 "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5533 "successfully written. This method is allowed to stop at any time after\n"
5534 "writing at least 1 byte. Therefore, to reliably write the whole buffer,\n"
5535 "you need to use a loop. See also gio.OutputStream.write for easier to\n"
5536 "use (though less efficient) method.\n"
5538 "Note: this method roughly corresponds to C GIO g_output_stream_write."
5540 (c-name "g_output_stream_write")
5541 (return-type "gssize")
5543 '("const-void*" "buffer")
5545 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5546 '("GError**" "error")
5551 ;; wrapped in goutputstream.override
5553 ;; See comments before the previous method definition.
5554 (define-method write
5555 (of-object "GOutputStream")
5556 "STREAM.write(buffer, [cancellable]) -> int\n"
5558 "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5559 "successfully written. This method will stop only after writing the whole\n"
5560 "buffer or triggering an I/O error. See also gio.OutputStream.write_part\n"
5561 "for more efficient, but more cumbersome to use method.\n"
5563 "Note: this method roughly corresponds to C GIO g_output_stream_write_all.\n"
5564 "It was renamed for consistency with Python standard file.write."
5565 (c-name "g_output_stream_write_all")
5566 (return-type "gboolean")
5568 '("const-void*" "buffer")
5570 '("gsize*" "bytes_written")
5571 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5572 '("GError**" "error")
5576 (define-method splice
5577 (of-object "GOutputStream")
5578 (c-name "g_output_stream_splice")
5579 (return-type "gssize")
5581 '("GInputStream*" "source")
5582 '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5583 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5584 '("GError**" "error")
5588 (define-method flush
5589 (of-object "GOutputStream")
5590 (c-name "g_output_stream_flush")
5591 (return-type "gboolean")
5593 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5594 '("GError**" "error")
5598 (define-method close
5599 (of-object "GOutputStream")
5600 (c-name "g_output_stream_close")
5601 (return-type "gboolean")
5603 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5604 '("GError**" "error")
5609 ;; wrapped in goutputstream.override
5611 (define-method write_async
5612 (of-object "GOutputStream")
5614 "S.write_async(buffer, callback [,io_priority] [,cancellable] [,user_data])\n"
5616 "Request an asynchronous write of count bytes from buffer into the stream.\n"
5617 "When the operation is finished callback will be called. You can then call\n"
5618 "gio.OutputStream.write_finish() to get the result of the operation.\n"
5619 "On success, the number of bytes written will be passed to the callback.\n"
5620 "It is not an error if this is not the same as the requested size, as it can\n"
5621 "happen e.g. on a partial I/O error, but generally tries to write as many \n"
5622 "bytes as requested.\n"
5623 "For the synchronous, blocking version of this function, see\n"
5624 "gio.OutputStream.write().\n")
5625 (c-name "g_output_stream_write_async")
5626 (return-type "none")
5628 '("const-void*" "buffer")
5630 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5631 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5632 '("GAsyncReadyCallback" "callback")
5633 '("gpointer" "user_data")
5637 (define-method write_finish
5638 (of-object "GOutputStream")
5639 (c-name "g_output_stream_write_finish")
5640 (return-type "gssize")
5642 '("GAsyncResult*" "result")
5643 '("GError**" "error")
5647 (define-method splice_async
5648 (of-object "GOutputStream")
5649 (c-name "g_output_stream_splice_async")
5650 (return-type "none")
5652 '("GInputStream*" "source")
5653 '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5654 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5655 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5656 '("GAsyncReadyCallback" "callback")
5657 '("gpointer" "user_data")
5661 (define-method splice_finish
5662 (of-object "GOutputStream")
5663 (c-name "g_output_stream_splice_finish")
5664 (return-type "gssize")
5666 '("GAsyncResult*" "result")
5667 '("GError**" "error")
5671 (define-method flush_async
5672 (of-object "GOutputStream")
5673 (c-name "g_output_stream_flush_async")
5674 (return-type "none")
5676 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5677 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5678 '("GAsyncReadyCallback" "callback")
5679 '("gpointer" "user_data")
5683 (define-method flush_finish
5684 (of-object "GOutputStream")
5685 (c-name "g_output_stream_flush_finish")
5686 (return-type "gboolean")
5688 '("GAsyncResult*" "result")
5689 '("GError**" "error")
5694 ;; wrapped in goutputstream.override
5696 (define-method close_async
5697 (of-object "GOutputStream")
5698 (c-name "g_output_stream_close_async")
5699 (return-type "none")
5701 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5702 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5703 '("GAsyncReadyCallback" "callback")
5704 '("gpointer" "user_data")
5708 (define-method close_finish
5709 (of-object "GOutputStream")
5710 (c-name "g_output_stream_close_finish")
5711 (return-type "gboolean")
5713 '("GAsyncResult*" "result")
5714 '("GError**" "error")
5718 (define-method is_closed
5719 (of-object "GOutputStream")
5720 (c-name "g_output_stream_is_closed")
5721 (return-type "gboolean")
5724 (define-method has_pending
5725 (of-object "GOutputStream")
5726 (c-name "g_output_stream_has_pending")
5727 (return-type "gboolean")
5730 (define-method set_pending
5731 (of-object "GOutputStream")
5732 (c-name "g_output_stream_set_pending")
5733 (return-type "gboolean")
5735 '("GError**" "error")
5739 (define-method clear_pending
5740 (of-object "GOutputStream")
5741 (c-name "g_output_stream_clear_pending")
5742 (return-type "none")
5749 (define-function resolver_get_type
5750 (c-name "g_resolver_get_type")
5751 (return-type "GType")
5754 (define-function resolver_get_default
5755 (c-name "g_resolver_get_default")
5756 (return-type "GResolver*")
5759 (define-method set_default
5760 (of-object "GResolver")
5761 (c-name "g_resolver_set_default")
5762 (return-type "none")
5765 (define-method lookup_by_name
5766 (of-object "GResolver")
5767 (c-name "g_resolver_lookup_by_name")
5768 (return-type "GList*")
5770 '("const-gchar*" "hostname")
5771 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5772 '("GError**" "error")
5776 (define-method lookup_by_name_async
5777 (of-object "GResolver")
5778 (c-name "g_resolver_lookup_by_name_async")
5779 (return-type "none")
5781 '("const-gchar*" "hostname")
5782 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5783 '("GAsyncReadyCallback" "callback")
5784 '("gpointer" "user_data")
5788 (define-method lookup_by_name_finish
5789 (of-object "GResolver")
5790 (c-name "g_resolver_lookup_by_name_finish")
5791 (return-type "GList*")
5793 '("GAsyncResult*" "result")
5794 '("GError**" "error")
5798 (define-function resolver_free_addresses
5799 (c-name "g_resolver_free_addresses")
5800 (return-type "none")
5802 '("GList*" "addresses")
5806 (define-method lookup_by_address
5807 (of-object "GResolver")
5808 (c-name "g_resolver_lookup_by_address")
5809 (return-type "gchar*")
5811 '("GInetAddress*" "address")
5812 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5813 '("GError**" "error")
5817 (define-method lookup_by_address_async
5818 (of-object "GResolver")
5819 (c-name "g_resolver_lookup_by_address_async")
5820 (return-type "none")
5822 '("GInetAddress*" "address")
5823 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5824 '("GAsyncReadyCallback" "callback")
5825 '("gpointer" "user_data")
5829 (define-method lookup_by_address_finish
5830 (of-object "GResolver")
5831 (c-name "g_resolver_lookup_by_address_finish")
5832 (return-type "gchar*")
5834 '("GAsyncResult*" "result")
5835 '("GError**" "error")
5839 (define-method lookup_service
5840 (of-object "GResolver")
5841 (c-name "g_resolver_lookup_service")
5842 (return-type "GList*")
5844 '("const-gchar*" "service")
5845 '("const-gchar*" "protocol")
5846 '("const-gchar*" "domain")
5847 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5848 '("GError**" "error")
5852 (define-method lookup_service_async
5853 (of-object "GResolver")
5854 (c-name "g_resolver_lookup_service_async")
5855 (return-type "none")
5857 '("const-gchar*" "service")
5858 '("const-gchar*" "protocol")
5859 '("const-gchar*" "domain")
5860 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5861 '("GAsyncReadyCallback" "callback")
5862 '("gpointer" "user_data")
5866 (define-method lookup_service_finish
5867 (of-object "GResolver")
5868 (c-name "g_resolver_lookup_service_finish")
5869 (return-type "GList*")
5871 '("GAsyncResult*" "result")
5872 '("GError**" "error")
5876 (define-function resolver_free_targets
5877 (c-name "g_resolver_free_targets")
5878 (return-type "none")
5880 '("GList*" "targets")
5884 (define-function resolver_error_quark
5885 (c-name "g_resolver_error_quark")
5886 (return-type "GQuark")
5893 (define-function seekable_get_type
5894 (c-name "g_seekable_get_type")
5895 (return-type "GType")
5899 (of-object "GSeekable")
5900 (c-name "g_seekable_tell")
5901 (return-type "goffset")
5904 (define-method can_seek
5905 (of-object "GSeekable")
5906 (c-name "g_seekable_can_seek")
5907 (return-type "gboolean")
5911 (of-object "GSeekable")
5912 (c-name "g_seekable_seek")
5913 (return-type "gboolean")
5915 '("goffset" "offset")
5916 '("GSeekType" "type" (default "G_SEEK_SET"))
5917 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5918 '("GError**" "error")
5922 (define-method can_truncate
5923 (of-object "GSeekable")
5924 (c-name "g_seekable_can_truncate")
5925 (return-type "gboolean")
5928 (define-method truncate
5929 (of-object "GSeekable")
5930 (c-name "g_seekable_truncate")
5931 (return-type "gboolean")
5933 '("goffset" "offset")
5934 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5935 '("GError**" "error")
5941 ;; From gsimpleasyncresult.h
5943 (define-function simple_async_result_get_type
5944 (c-name "g_simple_async_result_get_type")
5945 (return-type "GType")
5948 (define-function simple_async_result_new
5949 (c-name "g_simple_async_result_new")
5950 (is-constructor-of "GSimpleAsyncResult")
5951 (return-type "GSimpleAsyncResult*")
5953 '("GObject*" "source_object")
5954 '("GAsyncReadyCallback" "callback")
5955 '("gpointer" "user_data")
5956 '("gpointer" "source_tag")
5960 (define-function simple_async_result_new_error
5961 (c-name "g_simple_async_result_new_error")
5962 (return-type "GSimpleAsyncResult*")
5964 '("GObject*" "source_object")
5965 '("GAsyncReadyCallback" "callback")
5966 '("gpointer" "user_data")
5967 '("GQuark" "domain")
5969 '("const-char*" "format")
5974 (define-function simple_async_result_new_from_error
5975 (c-name "g_simple_async_result_new_from_error")
5976 (return-type "GSimpleAsyncResult*")
5978 '("GObject*" "source_object")
5979 '("GAsyncReadyCallback" "callback")
5980 '("gpointer" "user_data")
5981 '("GError*" "error")
5985 (define-method set_op_res_gpointer
5986 (of-object "GSimpleAsyncResult")
5987 (c-name "g_simple_async_result_set_op_res_gpointer")
5988 (return-type "none")
5990 '("gpointer" "op_res")
5991 '("GDestroyNotify" "destroy_op_res")
5995 (define-method get_op_res_gpointer
5996 (of-object "GSimpleAsyncResult")
5997 (c-name "g_simple_async_result_get_op_res_gpointer")
5998 (return-type "gpointer")
6001 (define-method set_op_res_gssize
6002 (of-object "GSimpleAsyncResult")
6003 (c-name "g_simple_async_result_set_op_res_gssize")
6004 (return-type "none")
6006 '("gssize" "op_res")
6010 (define-method get_op_res_gssize
6011 (of-object "GSimpleAsyncResult")
6012 (c-name "g_simple_async_result_get_op_res_gssize")
6013 (return-type "gssize")
6016 (define-method set_op_res_gboolean
6017 (of-object "GSimpleAsyncResult")
6018 (c-name "g_simple_async_result_set_op_res_gboolean")
6019 (return-type "none")
6021 '("gboolean" "op_res")
6025 (define-method get_op_res_gboolean
6026 (of-object "GSimpleAsyncResult")
6027 (c-name "g_simple_async_result_get_op_res_gboolean")
6028 (return-type "gboolean")
6031 (define-method get_source_tag
6032 (of-object "GSimpleAsyncResult")
6033 (c-name "g_simple_async_result_get_source_tag")
6034 (return-type "gpointer")
6037 (define-method set_handle_cancellation
6038 (of-object "GSimpleAsyncResult")
6039 (c-name "g_simple_async_result_set_handle_cancellation")
6040 (return-type "none")
6042 '("gboolean" "handle_cancellation")
6046 (define-method complete
6047 (of-object "GSimpleAsyncResult")
6048 (c-name "g_simple_async_result_complete")
6049 (return-type "none")
6052 (define-method complete_in_idle
6053 (of-object "GSimpleAsyncResult")
6054 (c-name "g_simple_async_result_complete_in_idle")
6055 (return-type "none")
6058 (define-method run_in_thread
6059 (of-object "GSimpleAsyncResult")
6060 (c-name "g_simple_async_result_run_in_thread")
6061 (return-type "none")
6063 '("GSimpleAsyncThreadFunc" "func")
6064 '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
6065 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6069 (define-method set_from_error
6070 (of-object "GSimpleAsyncResult")
6071 (c-name "g_simple_async_result_set_from_error")
6072 (return-type "none")
6074 '("GError*" "error")
6078 (define-method propagate_error
6079 (of-object "GSimpleAsyncResult")
6080 (c-name "g_simple_async_result_propagate_error")
6081 (return-type "gboolean")
6083 '("GError**" "dest")
6087 (define-method set_error
6088 (of-object "GSimpleAsyncResult")
6089 (c-name "g_simple_async_result_set_error")
6090 (return-type "none")
6092 '("GQuark" "domain")
6094 '("const-char*" "format")
6099 (define-method set_error_va
6100 (of-object "GSimpleAsyncResult")
6101 (c-name "g_simple_async_result_set_error_va")
6102 (return-type "none")
6104 '("GQuark" "domain")
6106 '("const-char*" "format")
6111 (define-function simple_async_report_error_in_idle
6112 (c-name "g_simple_async_report_error_in_idle")
6113 (return-type "none")
6115 '("GObject*" "object")
6116 '("GAsyncReadyCallback" "callback")
6117 '("gpointer" "user_data")
6118 '("GQuark" "domain")
6120 '("const-char*" "format")
6125 (define-function simple_async_report_gerror_in_idle
6126 (c-name "g_simple_async_report_gerror_in_idle")
6127 (return-type "none")
6129 '("GObject*" "object")
6130 '("GAsyncReadyCallback" "callback")
6131 '("gpointer" "user_data")
6132 '("GError*" "error")
6138 ;; From gsocketaddressenumerator.h
6140 (define-function socket_address_enumerator_get_type
6141 (c-name "g_socket_address_enumerator_get_type")
6142 (return-type "GType")
6146 (of-object "GSocketAddressEnumerator")
6147 (c-name "g_socket_address_enumerator_next")
6148 (return-type "GSocketAddress*")
6150 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6151 '("GError**" "error")
6155 (define-method next_async
6156 (of-object "GSocketAddressEnumerator")
6157 (c-name "g_socket_address_enumerator_next_async")
6158 (return-type "none")
6160 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6161 '("GAsyncReadyCallback" "callback")
6162 '("gpointer" "user_data")
6166 (define-method next_finish
6167 (of-object "GSocketAddressEnumerator")
6168 (c-name "g_socket_address_enumerator_next_finish")
6169 (return-type "GSocketAddress*")
6171 '("GAsyncResult*" "result")
6172 '("GError**" "error")
6178 ;; From gsocketaddress.h
6180 (define-function socket_address_get_type
6181 (c-name "g_socket_address_get_type")
6182 (return-type "GType")
6185 (define-method get_family
6186 (of-object "GSocketAddress")
6187 (c-name "g_socket_address_get_family")
6188 (return-type "GSocketFamily")
6191 (define-function socket_address_new_from_native
6192 (c-name "g_socket_address_new_from_native")
6193 (return-type "GSocketAddress*")
6195 '("gpointer" "native")
6200 (define-method to_native
6201 (of-object "GSocketAddress")
6202 (c-name "g_socket_address_to_native")
6203 (return-type "gboolean")
6205 '("gpointer" "dest")
6206 '("gsize" "destlen")
6207 '("GError**" "error")
6211 (define-method get_native_size
6212 (of-object "GSocketAddress")
6213 (c-name "g_socket_address_get_native_size")
6214 (return-type "gssize")
6219 ;; From gsocketclient.h
6221 (define-function socket_client_get_type
6222 (c-name "g_socket_client_get_type")
6223 (return-type "GType")
6226 (define-function socket_client_new
6227 (c-name "g_socket_client_new")
6228 (is-constructor-of "GSocketClient")
6229 (return-type "GSocketClient*")
6232 (define-method get_family
6233 (of-object "GSocketClient")
6234 (c-name "g_socket_client_get_family")
6235 (return-type "GSocketFamily")
6238 (define-method set_family
6239 (of-object "GSocketClient")
6240 (c-name "g_socket_client_set_family")
6241 (return-type "none")
6243 '("GSocketFamily" "family")
6247 (define-method get_socket_type
6248 (of-object "GSocketClient")
6249 (c-name "g_socket_client_get_socket_type")
6250 (return-type "GSocketType")
6253 (define-method set_socket_type
6254 (of-object "GSocketClient")
6255 (c-name "g_socket_client_set_socket_type")
6256 (return-type "none")
6258 '("GSocketType" "type")
6262 (define-method get_protocol
6263 (of-object "GSocketClient")
6264 (c-name "g_socket_client_get_protocol")
6265 (return-type "GSocketProtocol")
6268 (define-method set_protocol
6269 (of-object "GSocketClient")
6270 (c-name "g_socket_client_set_protocol")
6271 (return-type "none")
6273 '("GSocketProtocol" "protocol")
6277 (define-method get_local_address
6278 (of-object "GSocketClient")
6279 (c-name "g_socket_client_get_local_address")
6280 (return-type "GSocketAddress*")
6283 (define-method set_local_address
6284 (of-object "GSocketClient")
6285 (c-name "g_socket_client_set_local_address")
6286 (return-type "none")
6288 '("GSocketAddress*" "address")
6292 (define-method connect
6293 (of-object "GSocketClient")
6294 (c-name "g_socket_client_connect")
6295 (return-type "GSocketConnection*")
6297 '("GSocketConnectable*" "connectable")
6298 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6299 '("GError**" "error")
6303 (define-method connect_to_host
6304 (of-object "GSocketClient")
6305 (c-name "g_socket_client_connect_to_host")
6306 (return-type "GSocketConnection*")
6308 '("const-gchar*" "host_and_port")
6309 '("guint16" "default_port")
6310 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6311 '("GError**" "error")
6315 (define-method connect_to_service
6316 (of-object "GSocketClient")
6317 (c-name "g_socket_client_connect_to_service")
6318 (return-type "GSocketConnection*")
6320 '("const-gchar*" "domain")
6321 '("const-gchar*" "service")
6322 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6323 '("GError**" "error")
6327 (define-method connect_async
6328 (of-object "GSocketClient")
6329 (c-name "g_socket_client_connect_async")
6330 (return-type "none")
6332 '("GSocketConnectable*" "connectable")
6333 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6334 '("GAsyncReadyCallback" "callback")
6335 '("gpointer" "user_data")
6339 (define-method connect_finish
6340 (of-object "GSocketClient")
6341 (c-name "g_socket_client_connect_finish")
6342 (return-type "GSocketConnection*")
6344 '("GAsyncResult*" "result")
6345 '("GError**" "error")
6349 (define-method connect_to_host_async
6350 (of-object "GSocketClient")
6351 (c-name "g_socket_client_connect_to_host_async")
6352 (return-type "none")
6354 '("const-gchar*" "host_and_port")
6355 '("guint16" "default_port")
6356 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6357 '("GAsyncReadyCallback" "callback")
6358 '("gpointer" "user_data")
6362 (define-method connect_to_host_finish
6363 (of-object "GSocketClient")
6364 (c-name "g_socket_client_connect_to_host_finish")
6365 (return-type "GSocketConnection*")
6367 '("GAsyncResult*" "result")
6368 '("GError**" "error")
6372 (define-method connect_to_service_async
6373 (of-object "GSocketClient")
6374 (c-name "g_socket_client_connect_to_service_async")
6375 (return-type "none")
6377 '("const-gchar*" "domain")
6378 '("const-gchar*" "service")
6379 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6380 '("GAsyncReadyCallback" "callback")
6381 '("gpointer" "user_data")
6385 (define-method connect_to_service_finish
6386 (of-object "GSocketClient")
6387 (c-name "g_socket_client_connect_to_service_finish")
6388 (return-type "GSocketConnection*")
6390 '("GAsyncResult*" "result")
6391 '("GError**" "error")
6397 ;; From gsocketconnectable.h
6399 (define-function socket_connectable_get_type
6400 (c-name "g_socket_connectable_get_type")
6401 (return-type "GType")
6404 (define-method enumerate
6405 (of-object "GSocketConnectable")
6406 (c-name "g_socket_connectable_enumerate")
6407 (return-type "GSocketAddressEnumerator*")
6412 ;; From gsocketconnection.h
6414 (define-function socket_connection_get_type
6415 (c-name "g_socket_connection_get_type")
6416 (return-type "GType")
6419 (define-method get_socket
6420 (of-object "GSocketConnection")
6421 (c-name "g_socket_connection_get_socket")
6422 (return-type "GSocket*")
6425 (define-method get_local_address
6426 (of-object "GSocketConnection")
6427 (c-name "g_socket_connection_get_local_address")
6428 (return-type "GSocketAddress*")
6430 '("GError**" "error")
6434 (define-method get_remote_address
6435 (of-object "GSocketConnection")
6436 (c-name "g_socket_connection_get_remote_address")
6437 (return-type "GSocketAddress*")
6439 '("GError**" "error")
6443 (define-function socket_connection_factory_register_type
6444 (c-name "g_socket_connection_factory_register_type")
6445 (return-type "none")
6448 '("GSocketFamily" "family")
6449 '("GSocketType" "type")
6450 '("gint" "protocol")
6454 (define-function socket_connection_factory_lookup_type
6455 (c-name "g_socket_connection_factory_lookup_type")
6456 (return-type "GType")
6458 '("GSocketFamily" "family")
6459 '("GSocketType" "type")
6460 '("gint" "protocol_id")
6464 (define-method connection_factory_create_connection
6465 (of-object "GSocket")
6466 (c-name "g_socket_connection_factory_create_connection")
6467 (return-type "GSocketConnection*")
6472 ;; From gsocketcontrolmessage.h
6474 (define-function socket_control_message_get_type
6475 (c-name "g_socket_control_message_get_type")
6476 (return-type "GType")
6479 (define-method get_size
6480 (of-object "GSocketControlMessage")
6481 (c-name "g_socket_control_message_get_size")
6482 (return-type "gsize")
6485 (define-method get_level
6486 (of-object "GSocketControlMessage")
6487 (c-name "g_socket_control_message_get_level")
6491 (define-method get_msg_type
6492 (of-object "GSocketControlMessage")
6493 (c-name "g_socket_control_message_get_msg_type")
6497 (define-method serialize
6498 (of-object "GSocketControlMessage")
6499 (c-name "g_socket_control_message_serialize")
6500 (return-type "none")
6502 '("gpointer" "data")
6506 (define-function socket_control_message_deserialize
6507 (c-name "g_socket_control_message_deserialize")
6508 (return-type "GSocketControlMessage*")
6513 '("gpointer" "data")
6521 (define-function socket_get_type
6522 (c-name "g_socket_get_type")
6523 (return-type "GType")
6526 (define-function socket_new
6527 (c-name "g_socket_new")
6528 (is-constructor-of "GSocket")
6529 (return-type "GSocket*")
6531 '("GSocketFamily" "family")
6532 '("GSocketType" "type")
6533 '("GSocketProtocol" "protocol")
6534 '("GError**" "error")
6538 (define-function socket_new_from_fd
6539 (c-name "g_socket_new_from_fd")
6540 (return-type "GSocket*")
6543 '("GError**" "error")
6547 (define-method get_fd
6548 (of-object "GSocket")
6549 (c-name "g_socket_get_fd")
6553 (define-method get_family
6554 (of-object "GSocket")
6555 (c-name "g_socket_get_family")
6556 (return-type "GSocketFamily")
6559 (define-method get_socket_type
6560 (of-object "GSocket")
6561 (c-name "g_socket_get_socket_type")
6562 (return-type "GSocketType")
6565 (define-method get_protocol
6566 (of-object "GSocket")
6567 (c-name "g_socket_get_protocol")
6568 (return-type "GSocketProtocol")
6571 (define-method get_local_address
6572 (of-object "GSocket")
6573 (c-name "g_socket_get_local_address")
6574 (return-type "GSocketAddress*")
6576 '("GError**" "error")
6580 (define-method get_remote_address
6581 (of-object "GSocket")
6582 (c-name "g_socket_get_remote_address")
6583 (return-type "GSocketAddress*")
6585 '("GError**" "error")
6589 (define-method set_blocking
6590 (of-object "GSocket")
6591 (c-name "g_socket_set_blocking")
6592 (return-type "none")
6594 '("gboolean" "blocking")
6598 (define-method get_blocking
6599 (of-object "GSocket")
6600 (c-name "g_socket_get_blocking")
6601 (return-type "gboolean")
6604 (define-method set_keepalive
6605 (of-object "GSocket")
6606 (c-name "g_socket_set_keepalive")
6607 (return-type "none")
6609 '("gboolean" "keepalive")
6613 (define-method get_keepalive
6614 (of-object "GSocket")
6615 (c-name "g_socket_get_keepalive")
6616 (return-type "gboolean")
6619 (define-method get_listen_backlog
6620 (of-object "GSocket")
6621 (c-name "g_socket_get_listen_backlog")
6622 (return-type "gint")
6625 (define-method set_listen_backlog
6626 (of-object "GSocket")
6627 (c-name "g_socket_set_listen_backlog")
6628 (return-type "none")
6634 (define-method is_connected
6635 (of-object "GSocket")
6636 (c-name "g_socket_is_connected")
6637 (return-type "gboolean")
6641 (of-object "GSocket")
6642 (c-name "g_socket_bind")
6643 (return-type "gboolean")
6645 '("GSocketAddress*" "address")
6646 '("gboolean" "allow_reuse")
6647 '("GError**" "error")
6651 (define-method connect
6652 (of-object "GSocket")
6653 (c-name "g_socket_connect")
6654 (return-type "gboolean")
6656 '("GSocketAddress*" "address")
6657 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6658 '("GError**" "error")
6662 (define-method check_connect_result
6663 (of-object "GSocket")
6664 (c-name "g_socket_check_connect_result")
6665 (return-type "gboolean")
6667 '("GError**" "error")
6671 (define-method condition_check
6672 (of-object "GSocket")
6673 (c-name "g_socket_condition_check")
6674 (return-type "GIOCondition")
6676 '("GIOCondition" "condition")
6680 (define-method condition_wait
6681 (of-object "GSocket")
6682 (c-name "g_socket_condition_wait")
6683 (return-type "gboolean")
6685 '("GIOCondition" "condition")
6686 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6687 '("GError**" "error")
6691 (define-method accept
6692 (of-object "GSocket")
6693 (c-name "g_socket_accept")
6694 (return-type "GSocket*")
6696 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6697 '("GError**" "error")
6701 (define-method listen
6702 (of-object "GSocket")
6703 (c-name "g_socket_listen")
6704 (return-type "gboolean")
6706 '("GError**" "error")
6710 (define-method receive
6711 (of-object "GSocket")
6712 (c-name "g_socket_receive")
6713 (return-type "gssize")
6715 '("gchar*" "buffer")
6717 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6718 '("GError**" "error")
6722 (define-method receive_from
6723 (of-object "GSocket")
6724 (c-name "g_socket_receive_from")
6725 (return-type "gssize")
6727 '("GSocketAddress**" "address")
6728 '("gchar*" "buffer")
6730 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6731 '("GError**" "error")
6736 (of-object "GSocket")
6737 (c-name "g_socket_send")
6738 (return-type "gssize")
6740 '("const-gchar*" "buffer")
6742 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6743 '("GError**" "error")
6747 (define-method send_to
6748 (of-object "GSocket")
6749 (c-name "g_socket_send_to")
6750 (return-type "gssize")
6752 '("GSocketAddress*" "address")
6753 '("const-gchar*" "buffer")
6755 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6756 '("GError**" "error")
6760 (define-method receive_message
6761 (of-object "GSocket")
6762 (c-name "g_socket_receive_message")
6763 (return-type "gssize")
6765 '("GSocketAddress**" "address")
6766 '("GInputVector*" "vectors")
6767 '("gint" "num_vectors")
6768 '("GSocketControlMessage***" "messages")
6769 '("gint*" "num_messages")
6771 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6772 '("GError**" "error")
6776 (define-method send_message
6777 (of-object "GSocket")
6778 (c-name "g_socket_send_message")
6779 (return-type "gssize")
6781 '("GSocketAddress*" "address")
6782 '("GOutputVector*" "vectors")
6783 '("gint" "num_vectors")
6784 '("GSocketControlMessage**" "messages")
6785 '("gint" "num_messages")
6787 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6788 '("GError**" "error")
6792 (define-method close
6793 (of-object "GSocket")
6794 (c-name "g_socket_close")
6795 (return-type "gboolean")
6797 '("GError**" "error")
6801 (define-method shutdown
6802 (of-object "GSocket")
6803 (c-name "g_socket_shutdown")
6804 (return-type "gboolean")
6806 '("gboolean" "shutdown_read")
6807 '("gboolean" "shutdown_write")
6808 '("GError**" "error")
6812 (define-method is_closed
6813 (of-object "GSocket")
6814 (c-name "g_socket_is_closed")
6815 (return-type "gboolean")
6818 (define-method create_source
6819 (of-object "GSocket")
6820 (c-name "g_socket_create_source")
6821 (return-type "GSource*")
6823 '("GIOCondition" "condition")
6824 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6828 (define-method speaks_ipv4
6829 (of-object "GSocket")
6830 (c-name "g_socket_speaks_ipv4")
6831 (return-type "gboolean")
6836 ;; From gsocketlistener.h
6838 (define-function socket_listener_get_type
6839 (c-name "g_socket_listener_get_type")
6840 (return-type "GType")
6843 (define-function socket_listener_new
6844 (c-name "g_socket_listener_new")
6845 (is-constructor-of "GSocketListener")
6846 (return-type "GSocketListener*")
6849 (define-method set_backlog
6850 (of-object "GSocketListener")
6851 (c-name "g_socket_listener_set_backlog")
6852 (return-type "none")
6854 '("int" "listen_backlog")
6858 (define-method add_socket
6859 (of-object "GSocketListener")
6860 (c-name "g_socket_listener_add_socket")
6861 (return-type "gboolean")
6863 '("GSocket*" "socket")
6864 '("GObject*" "source_object")
6865 '("GError**" "error")
6869 (define-method add_address
6870 (of-object "GSocketListener")
6871 (c-name "g_socket_listener_add_address")
6872 (return-type "gboolean")
6874 '("GSocketAddress*" "address")
6875 '("GSocketType" "type")
6876 '("GSocketProtocol" "protocol")
6877 '("GObject*" "source_object")
6878 '("GSocketAddress**" "effective_address")
6879 '("GError**" "error")
6883 (define-method add_inet_port
6884 (of-object "GSocketListener")
6885 (c-name "g_socket_listener_add_inet_port")
6886 (return-type "gboolean")
6889 '("GObject*" "source_object")
6890 '("GError**" "error")
6894 (define-method accept_socket
6895 (of-object "GSocketListener")
6896 (c-name "g_socket_listener_accept_socket")
6897 (return-type "GSocket*")
6899 '("GObject**" "source_object")
6900 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6901 '("GError**" "error")
6905 (define-method accept_socket_async
6906 (of-object "GSocketListener")
6907 (c-name "g_socket_listener_accept_socket_async")
6908 (return-type "none")
6910 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6911 '("GAsyncReadyCallback" "callback")
6912 '("gpointer" "user_data")
6916 (define-method accept_socket_finish
6917 (of-object "GSocketListener")
6918 (c-name "g_socket_listener_accept_socket_finish")
6919 (return-type "GSocket*")
6921 '("GAsyncResult*" "result")
6922 '("GObject**" "source_object")
6923 '("GError**" "error")
6927 (define-method accept
6928 (of-object "GSocketListener")
6929 (c-name "g_socket_listener_accept")
6930 (return-type "GSocketConnection*")
6932 '("GObject**" "source_object")
6933 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6934 '("GError**" "error")
6938 (define-method accept_async
6939 (of-object "GSocketListener")
6940 (c-name "g_socket_listener_accept_async")
6941 (return-type "none")
6943 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6944 '("GAsyncReadyCallback" "callback")
6945 '("gpointer" "user_data")
6949 (define-method accept_finish
6950 (of-object "GSocketListener")
6951 (c-name "g_socket_listener_accept_finish")
6952 (return-type "GSocketConnection*")
6954 '("GAsyncResult*" "result")
6955 '("GObject**" "source_object")
6956 '("GError**" "error")
6960 (define-method close
6961 (of-object "GSocketListener")
6962 (c-name "g_socket_listener_close")
6963 (return-type "none")
6968 ;; From gsocketservice.h
6970 (define-function socket_service_get_type
6971 (c-name "g_socket_service_get_type")
6972 (return-type "GType")
6975 (define-function socket_service_new
6976 (c-name "g_socket_service_new")
6977 (is-constructor-of "GSocketService")
6978 (return-type "GSocketService*")
6981 (define-method start
6982 (of-object "GSocketService")
6983 (c-name "g_socket_service_start")
6984 (return-type "none")
6988 (of-object "GSocketService")
6989 (c-name "g_socket_service_stop")
6990 (return-type "none")
6993 (define-method is_active
6994 (of-object "GSocketService")
6995 (c-name "g_socket_service_is_active")
6996 (return-type "gboolean")
7001 ;; From gsrvtarget.h
7003 (define-function srv_target_get_type
7004 (c-name "g_srv_target_get_type")
7005 (return-type "GType")
7008 (define-function srv_target_new
7009 (c-name "g_srv_target_new")
7010 (is-constructor-of "GSrvTarget")
7011 (return-type "GSrvTarget*")
7013 '("const-gchar*" "hostname")
7015 '("guint16" "priority")
7016 '("guint16" "weight")
7021 (of-object "GSrvTarget")
7022 (c-name "g_srv_target_copy")
7023 (return-type "GSrvTarget*")
7027 (of-object "GSrvTarget")
7028 (c-name "g_srv_target_free")
7029 (return-type "none")
7032 (define-method get_hostname
7033 (of-object "GSrvTarget")
7034 (c-name "g_srv_target_get_hostname")
7035 (return-type "const-gchar*")
7038 (define-method get_port
7039 (of-object "GSrvTarget")
7040 (c-name "g_srv_target_get_port")
7041 (return-type "guint16")
7044 (define-method get_priority
7045 (of-object "GSrvTarget")
7046 (c-name "g_srv_target_get_priority")
7047 (return-type "guint16")
7050 (define-method get_weight
7051 (of-object "GSrvTarget")
7052 (c-name "g_srv_target_get_weight")
7053 (return-type "guint16")
7056 (define-function srv_target_list_sort
7057 (c-name "g_srv_target_list_sort")
7058 (return-type "GList*")
7060 '("GList*" "targets")
7066 ;; From gthemedicon.h
7068 (define-function themed_icon_get_type
7069 (c-name "g_themed_icon_get_type")
7070 (return-type "GType")
7073 (define-function themed_icon_new
7074 (c-name "g_themed_icon_new")
7075 (is-constructor-of "GThemedIcon")
7076 (return-type "GIcon*")
7078 '("name" (argname "iconname"))
7082 (define-function themed_icon_new_with_default_fallbacks
7083 (c-name "g_themed_icon_new_with_default_fallbacks")
7084 (return-type "GIcon*")
7086 '("const-char*" "iconname")
7090 (define-function themed_icon_new_from_names
7091 (c-name "g_themed_icon_new_from_names")
7092 (return-type "GIcon*")
7094 '("char**" "iconnames")
7099 (define-method prepend_name
7100 (of-object "GThemedIcon")
7101 (c-name "g_themed_icon_prepend_name")
7102 (return-type "none")
7104 '("const-char*" "iconname")
7109 ;; wrapped in gicon.override
7111 (define-method get_names
7112 (c-name "g_themed_icon_get_names")
7113 (of-object "GThemedIcon")
7114 (return-type "const-gchar*-const*")
7117 (define-method append_name
7118 (c-name "g_themed_icon_append_name")
7119 (of-object "GThemedIcon")
7120 (return-type "none")
7122 '("char*" "iconname")
7128 ;; From gthreadedsocketservice.h
7130 (define-function threaded_socket_service_get_type
7131 (c-name "g_threaded_socket_service_get_type")
7132 (return-type "GType")
7135 (define-function threaded_socket_service_new
7136 (c-name "g_threaded_socket_service_new")
7137 (is-constructor-of "GThreadedSocketService")
7138 (return-type "GSocketService*")
7140 '("int" "max_threads")
7146 ;; From gunixinputstream.h
7148 (define-function unix_input_stream_get_type
7149 (c-name "g_unix_input_stream_get_type")
7150 (return-type "GType")
7153 (define-function unix_input_stream_new
7154 (c-name "g_unix_input_stream_new")
7155 (is-constructor-of "GUnixInputStream")
7156 (return-type "GInputStream*")
7159 '("gboolean" "close_fd_at_close")
7167 (define-function vfs_get_type
7168 (c-name "g_vfs_get_type")
7169 (return-type "GType")
7172 (define-method is_active
7174 (c-name "g_vfs_is_active")
7175 (return-type "gboolean")
7178 (define-method get_file_for_path
7180 (c-name "g_vfs_get_file_for_path")
7181 (return-type "GFile*")
7182 (caller-owns-return #t)
7184 '("const-char*" "path")
7188 (define-method get_file_for_uri
7190 (c-name "g_vfs_get_file_for_uri")
7191 (return-type "GFile*")
7192 (caller-owns-return #t)
7194 '("const-char*" "uri")
7198 (define-method parse_name
7200 (c-name "g_vfs_parse_name")
7201 (return-type "GFile*")
7202 (caller-owns-return #t)
7204 '("const-char*" "parse_name")
7208 (define-function vfs_get_default
7209 (c-name "g_vfs_get_default")
7210 (return-type "GVfs*")
7213 (define-function vfs_get_local
7214 (c-name "g_vfs_get_local")
7215 (return-type "GVfs*")
7219 ;; wrapped in gio.override
7221 (define-method get_supported_uri_schemes
7223 "VFS.get_supported_uri_schemes() -> [uri, ..]\n"
7224 "Gets a list of URI schemes supported by vfs.")
7226 (c-name "g_vfs_get_supported_uri_schemes")
7227 (return-type "const-char*-const*")
7232 ;; From gwin32appinfo.h
7234 (define-function win32_app_info_get_type
7235 (c-name "g_win32_app_info_get_type")
7236 (return-type "GType")
7243 (define-function volume_get_type
7244 (c-name "g_volume_get_type")
7245 (return-type "GType")
7248 (define-method get_name
7249 (of-object "GVolume")
7250 (c-name "g_volume_get_name")
7251 (return-type "char*")
7254 (define-method get_icon
7255 (of-object "GVolume")
7256 (c-name "g_volume_get_icon")
7257 (return-type "GIcon*")
7258 (caller-owns-return #t)
7261 (define-method get_uuid
7262 (of-object "GVolume")
7263 (c-name "g_volume_get_uuid")
7264 (return-type "char*")
7267 (define-method get_drive
7268 (of-object "GVolume")
7269 (c-name "g_volume_get_drive")
7270 (return-type "GDrive*")
7271 (caller-owns-return #t)
7274 (define-method get_mount
7275 (of-object "GVolume")
7276 (c-name "g_volume_get_mount")
7277 (return-type "GMount*")
7278 (caller-owns-return #t)
7281 (define-method can_mount
7282 (of-object "GVolume")
7283 (c-name "g_volume_can_mount")
7284 (return-type "gboolean")
7287 (define-method can_eject
7288 (of-object "GVolume")
7289 (c-name "g_volume_can_eject")
7290 (return-type "gboolean")
7293 (define-method should_automount
7294 (of-object "GVolume")
7295 (c-name "g_volume_should_automount")
7296 (return-type "gboolean")
7300 ;; wrapped in gvolume.override
7302 (define-method mount
7303 (of-object "GVolume")
7304 (c-name "g_volume_mount")
7305 (return-type "none")
7307 '("GMountOperation*" "mount_operation")
7308 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7309 '("GAsyncReadyCallback" "callback")
7310 '("gpointer" "user_data")
7314 (define-method mount_finish
7315 (of-object "GVolume")
7316 (c-name "g_volume_mount_finish")
7317 (return-type "gboolean")
7319 '("GAsyncResult*" "result")
7320 '("GError**" "error")
7325 ;; wrapped in gvolume.override
7327 (define-method eject
7328 (of-object "GVolume")
7329 (c-name "g_volume_eject")
7330 (return-type "none")
7332 '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
7333 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7334 '("GAsyncReadyCallback" "callback")
7335 '("gpointer" "user_data")
7339 (define-method eject_finish
7340 (of-object "GVolume")
7341 (c-name "g_volume_eject_finish")
7342 (return-type "gboolean")
7344 '("GAsyncResult*" "result")
7345 '("GError**" "error")
7347 (deprecated "use gio.Drive.eject_with_operation_finish instead.")
7350 (define-method get_identifier
7351 (of-object "GVolume")
7352 (c-name "g_volume_get_identifier")
7353 (return-type "char*")
7355 '("const-char*" "kind")
7360 ;; wrapped in gvolume.override
7362 (define-method enumerate_identifiers
7363 (of-object "GVolume")
7364 (c-name "g_volume_enumerate_identifiers")
7365 (return-type "char**")
7368 (define-method get_activation_root
7369 (of-object "GVolume")
7370 (c-name "g_volume_get_activation_root")
7371 (return-type "GFile*")
7374 (define-method eject_with_operation
7375 (of-object "GVolume")
7376 (c-name "g_volume_eject_with_operation")
7377 (return-type "none")
7379 '("GMountUnmountFlags" "flags")
7380 '("GMountOperation*" "mount_operation")
7381 '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7382 '("GAsyncReadyCallback" "callback")
7383 '("gpointer" "user_data")
7387 (define-method eject_with_operation_finish
7388 (of-object "GVolume")
7389 (c-name "g_volume_eject_with_operation_finish")
7390 (return-type "gboolean")
7392 '("GAsyncResult*" "result")
7393 '("GError**" "error")
7399 ;; From gvolumemonitor.h
7401 (define-function volume_monitor_get_type
7402 (c-name "g_volume_monitor_get_type")
7403 (return-type "GType")
7406 (define-function volume_monitor_get
7407 (c-name "g_volume_monitor_get")
7408 (return-type "GVolumeMonitor*")
7412 ;; wrapped in gvolumemonitor.override
7414 (define-method get_connected_drives
7415 (of-object "GVolumeMonitor")
7416 (c-name "g_volume_monitor_get_connected_drives")
7417 (return-type "GList*")
7421 ;; wrapped in gvolumemonitor.override
7423 (define-method get_volumes
7424 (of-object "GVolumeMonitor")
7425 (c-name "g_volume_monitor_get_volumes")
7426 (return-type "GList*")
7430 ;; wrapped in gvolumemonitor.override
7432 (define-method get_mounts
7433 (of-object "GVolumeMonitor")
7434 (c-name "g_volume_monitor_get_mounts")
7435 (return-type "GList*")
7438 (define-method get_volume_for_uuid
7439 (of-object "GVolumeMonitor")
7440 (c-name "g_volume_monitor_get_volume_for_uuid")
7441 (return-type "GVolume*")
7442 (caller-owns-return #t)
7444 '("const-char*" "uuid")
7448 (define-method get_mount_for_uuid
7449 (of-object "GVolumeMonitor")
7450 (c-name "g_volume_monitor_get_mount_for_uuid")
7451 (return-type "GMount*")
7452 (caller-owns-return #t)
7454 '("const-char*" "uuid")
7458 (define-function volume_monitor_adopt_orphan_mount
7459 (c-name "g_volume_monitor_adopt_orphan_mount")
7460 (return-type "GVolume*")
7462 '("GMount*" "mount")