Remove a duplicate entry in gio.defs
[pygobject.git] / gio / gio.defs
blobac9309f8889c3911616ddb5e4cc79ceacc738751
1 ;; -*- scheme -*-
3 (include "gio-types.defs")
5 ;; From gappinfo.h
7 (define-function app_info_get_type
8   (c-name "g_app_info_get_type")
9   (return-type "GType")
12 (define-function app_launch_context_get_type
13   (c-name "g_app_launch_context_get_type")
14   (return-type "GType")
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*")
21   (parameters
22     '("const-char*" "commandline")
23     '("const-char*" "application_name" (null-ok) (default "NULL"))
24     '("GAppInfoCreateFlags" "flags" (default "G_APP_INFO_CREATE_NONE"))
25     '("GError**" "error")
26   )
29 (define-method dup
30   (of-object "GAppInfo")
31   (c-name "g_app_info_dup")
32   (return-type "GAppInfo*")
33   (caller-owns-return #t)
36 (define-method equal
37   (of-object "GAppInfo")
38   (c-name "g_app_info_equal")
39   (return-type "gboolean")
40   (parameters
41     '("GAppInfo*" "appinfo2")
42   )
45 (define-method get_id
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
78 (define-method launch
79   (docstring
80   "launch (files=None, launch_context=None) -> gboolean\n"
81   "\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."
93   )
94   (of-object "GAppInfo")
95   (c-name "g_app_info_launch")
96   (return-type "gboolean")
97   (parameters
98     '("GList*" "files")
99     '("GAppLaunchContext*" "launch_context")
100     '("GError**" "error")
101   )
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
120   (docstring
121   "launch_uris (files=None, launch_context=None) -> gboolean\n"
122   "\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"
130   )
131   (of-object "GAppInfo")
132   (c-name "g_app_info_launch_uris")
133   (return-type "gboolean")
134   (parameters
135     '("GList*" "uris")
136     '("GAppLaunchContext*" "launch_context")
137     '("GError**" "error")
138   )
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")
151   (parameters
152     '("const-char*" "content_type")
153     '("GError**" "error")
154   )
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")
161   (parameters
162     '("const-char*" "extension")
163     '("GError**" "error")
164   )
167 (define-method add_supports_type
168   (of-object "GAppInfo")
169   (c-name "g_app_info_add_supports_type")
170   (return-type "gboolean")
171   (parameters
172     '("const-char*" "content_type")
173     '("GError**" "error")
174   )
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")
187   (parameters
188     '("const-char*" "content_type")
189     '("GError**" "error")
190   )
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*")
207   (parameters
208     '("const-char*" "content_type")
209   )
212 (define-function app_info_get_default_for_type
213   (c-name "g_app_info_get_default_for_type")
214   (return-type "GAppInfo*")
215   (parameters
216     '("const-char*" "content_type")
217     '("gboolean" "must_support_uris")
218   )
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*")
224   (parameters
225     '("const-char*" "uri_scheme")
226   )
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*")
242   (parameters
243     '("GAppInfo*" "info")
244     '("GList*" "files")
245   )
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*")
255   (parameters
256     '("GAppInfo*" "info")
257     '("GList*" "files")
258   )
261 (define-method launch_failed
262   (of-object "GAppLaunchContext")
263   (c-name "g_app_launch_context_launch_failed")
264   (return-type "none")
265   (parameters
266     '("const-char*" "startup_notify_id")
267   )
270 (define-function app_info_reset_type_associations
271   (c-name "g_app_info_reset_type_associations")
272   (return-type "none")
273   (parameters
274     '("const-char*" "content_type")
275   )
278 (define-method can_delete
279   (of-object "GAppInfo")
280   (c-name "g_app_info_can_delete")
281   (return-type "gboolean")
284 (define-method delete
285   (of-object "GAppInfo")
286   (c-name "g_app_info_delete")
287   (return-type "gboolean")
290 (define-method get_commandline
291   (of-object "GAppInfo")
292   (c-name "g_app_info_get_commandline")
293   (return-type "const-char*")
298 ;; From gasyncinitable.h
300 (define-function g_async_initable_get_type
301   (c-name "g_async_initable_get_type")
302   (return-type "GType")
305 (define-method init_async
306   (of-object "GAsyncInitable")
307   (c-name "g_async_initable_init_async")
308   (return-type "none")
309   (parameters
310     '("int" "io_priority")
311     '("GCancellable*" "cancellable")
312     '("GAsyncReadyCallback" "callback")
313     '("gpointer" "user_data")
314   )
317 (define-method init_finish
318   (of-object "GAsyncInitable")
319   (c-name "g_async_initable_init_finish")
320   (return-type "gboolean")
321   (parameters
322     '("GAsyncResult*" "res")
323     '("GError**" "error")
324   )
327 (define-function g_async_initable_new_async
328   (c-name "g_async_initable_new_async")
329   (return-type "none")
330   (parameters
331     '("GType" "object_type")
332     '("int" "io_priority")
333     '("GCancellable*" "cancellable")
334     '("GAsyncReadyCallback" "callback")
335     '("gpointer" "user_data")
336     '("const-gchar*" "first_property_name")
337   )
338   (varargs #t)
341 (define-function g_async_initable_newv_async
342   (c-name "g_async_initable_newv_async")
343   (return-type "none")
344   (parameters
345     '("GType" "object_type")
346     '("guint" "n_parameters")
347     '("GParameter*" "parameters")
348     '("int" "io_priority")
349     '("GCancellable*" "cancellable")
350     '("GAsyncReadyCallback" "callback")
351     '("gpointer" "user_data")
352   )
355 (define-function g_async_initable_new_valist_async
356   (c-name "g_async_initable_new_valist_async")
357   (return-type "none")
358   (parameters
359     '("GType" "object_type")
360     '("const-gchar*" "first_property_name")
361     '("va_list" "var_args")
362     '("int" "io_priority")
363     '("GCancellable*" "cancellable")
364     '("GAsyncReadyCallback" "callback")
365     '("gpointer" "user_data")
366   )
369 (define-method new_finish
370   (of-object "GAsyncInitable")
371   (c-name "g_async_initable_new_finish")
372   (return-type "GObject*")
373   (parameters
374     '("GAsyncResult*" "res")
375     '("GError**" "error")
376   )
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*")
413   (properties
414     '("base_stream")
415   )
418 (define-function buffered_input_stream_new_sized
419   (c-name "g_buffered_input_stream_new_sized")
420   (return-type "GInputStream*")
421   (parameters
422     '("GInputStream*" "base_stream")
423     '("gsize" "size")
424   )
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")
436   (return-type "none")
437   (parameters
438     '("gsize" "size")
439   )
442 (define-method get_available
443   (of-object "GBufferedInputStream")
444   (c-name "g_buffered_input_stream_get_available")
445   (return-type "gsize")
448 (define-method peek
449   (of-object "GBufferedInputStream")
450   (c-name "g_buffered_input_stream_peek")
451   (return-type "gsize")
452   (parameters
453     '("void*" "buffer")
454     '("gsize" "offset")
455     '("gsize" "count")
456   )
459 (define-method peek_buffer
460   (of-object "GBufferedInputStream")
461   (c-name "g_buffered_input_stream_peek_buffer")
462   (return-type "const-void*")
463   (parameters
464     '("gsize*" "count")
465   )
468 (define-method fill
469   (of-object "GBufferedInputStream")
470   (c-name "g_buffered_input_stream_fill")
471   (return-type "gssize")
472   (unblock-threads #t)
473   (parameters
474     '("gssize" "count")
475     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
476     '("GError**" "error")
477   )
480 (define-method fill_async
481   (of-object "GBufferedInputStream")
482   (c-name "g_buffered_input_stream_fill_async")
483   (return-type "none")
484   (parameters
485     '("gssize" "count")
486     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
487     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
488     '("GAsyncReadyCallback" "callback")
489     '("gpointer" "user_data")
490   )
493 (define-method fill_finish
494   (of-object "GBufferedInputStream")
495   (c-name "g_buffered_input_stream_fill_finish")
496   (return-type "gssize")
497   (parameters
498     '("GAsyncResult*" "result")
499     '("GError**" "error")
500   )
503 (define-method read_byte
504   (of-object "GBufferedInputStream")
505   (c-name "g_buffered_input_stream_read_byte")
506   (return-type "int")
507   (parameters
508     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
509     '("GError**" "error")
510   )
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*")
526   (properties
527     '("base_stream")
528   )
531 (define-function buffered_output_stream_new_sized
532   (c-name "g_buffered_output_stream_new_sized")
533   (return-type "GOutputStream*")
534   (parameters
535     '("GOutputStream*" "base_stream")
536     '("guint" "size")
537   )
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")
549   (return-type "none")
550   (parameters
551     '("gsize" "size")
552   )
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")
564   (return-type "none")
565   (parameters
566     '("gboolean" "auto_grow")
567   )
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")
595   (parameters
596     '("GError**" "error")
597   )
600 (define-method get_fd
601   (of-object "GCancellable")
602   (c-name "g_cancellable_get_fd")
603   (return-type "int")
606 (define-method make_pollfd
607   (of-object "GCancellable")
608   (c-name "g_cancellable_make_pollfd")
609   (return-type "none")
610   (parameters
611     '("GPollFD*" "pollfd")
612   )
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")
623   (return-type "none")
626 (define-method pop_current
627   (of-object "GCancellable")
628   (c-name "g_cancellable_pop_current")
629   (return-type "none")
632 (define-method reset
633   (of-object "GCancellable")
634   (c-name "g_cancellable_reset")
635   (return-type "none")
638 (define-method cancel
639   (of-object "GCancellable")
640   (c-name "g_cancellable_cancel")
641   (return-type "none")
644 (define-method connect
645   (of-object "GCancellable")
646   (c-name "g_cancellable_connect")
647   (return-type "gulong")
648   (parameters
649     '("GCallback" "callback")
650     '("gpointer" "data")
651     '("GDestroyNotify" "data_destroy_func")
652   )
655 (define-method disconnect
656   (of-object "GCancellable")
657   (c-name "g_cancellable_disconnect")
658   (return-type "none")
659   (parameters
660     '("gulong" "handler_id")
661   )
664 (define-method release_fd
665   (of-object "GCancellable")
666   (c-name "g_cancellable_release_fd")
667   (return-type "none")
672 ;; From gcontenttype.h
674 (define-function content_type_equals
675   (c-name "g_content_type_equals")
676   (return-type "gboolean")
677   (parameters
678     '("const-char*" "type1")
679     '("const-char*" "type2")
680   )
683 (define-function content_type_is_a
684   (c-name "g_content_type_is_a")
685   (return-type "gboolean")
686   (parameters
687     '("const-char*" "type")
688     '("const-char*" "supertype")
689   )
692 (define-function content_type_is_unknown
693   (c-name "g_content_type_is_unknown")
694   (return-type "gboolean")
695   (parameters
696     '("const-char*" "type")
697   )
700 (define-function content_type_get_description
701   (c-name "g_content_type_get_description")
702   (return-type "char*")
703   (parameters
704     '("const-char*" "type")
705   )
708 (define-function content_type_get_mime_type
709   (c-name "g_content_type_get_mime_type")
710   (return-type "char*")
711   (parameters
712     '("const-char*" "type")
713   )
716 (define-function content_type_get_icon
717   (c-name "g_content_type_get_icon")
718   (return-type "GIcon*")
719   (caller-owns-return #t)
720   (parameters
721     '("const-char*" "type")
722   )
725 (define-function content_type_can_be_executable
726   (c-name "g_content_type_can_be_executable")
727   (return-type "gboolean")
728   (parameters
729     '("const-char*" "type")
730   )
733 (define-function content_type_from_mime_type
734   (c-name "g_content_type_from_mime_type")
735   (return-type "char*")
736   (parameters
737     '("const-char*" "mime_type")
738   )
742 ;; wrapped in gio.override
744 (define-function content_type_guess
745   (docstring
746 "content_type_guess([filename, data, want_uncertain]) -> mime type\n"
747 "\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*")
755   (parameters
756     '("const-char*" "filename")
757     '("const-guchar*" "data")
758     '("gsize" "data_size")
759     '("gboolean*" "result_uncertain")
760   )
763 (define-function content_type_guess_for_tree
764   (c-name "g_content_type_guess_for_tree")
765   (return-type "char**")
766   (parameters
767     '("GFile*" "root")
768   )
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*")
792   (properties
793     '("base_stream")
794   )
797 (define-method set_byte_order
798   (of-object "GDataInputStream")
799   (c-name "g_data_input_stream_set_byte_order")
800   (return-type "none")
801   (parameters
802     '("GDataStreamByteOrder" "order")
803   )
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")
815   (return-type "none")
816   (parameters
817     '("GDataStreamNewlineType" "type")
818   )
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")
831   (parameters
832     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
833     '("GError**" "error")
834   )
837 (define-method read_int16
838   (of-object "GDataInputStream")
839   (c-name "g_data_input_stream_read_int16")
840   (return-type "gint16")
841   (parameters
842     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
843     '("GError**" "error")
844   )
847 (define-method read_uint16
848   (of-object "GDataInputStream")
849   (c-name "g_data_input_stream_read_uint16")
850   (return-type "guint16")
851   (parameters
852     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
853     '("GError**" "error")
854   )
857 (define-method read_int32
858   (of-object "GDataInputStream")
859   (c-name "g_data_input_stream_read_int32")
860   (return-type "gint32")
861   (parameters
862     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
863     '("GError**" "error")
864   )
867 (define-method read_uint32
868   (of-object "GDataInputStream")
869   (c-name "g_data_input_stream_read_uint32")
870   (return-type "guint32")
871   (parameters
872     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
873     '("GError**" "error")
874   )
877 (define-method read_int64
878   (of-object "GDataInputStream")
879   (c-name "g_data_input_stream_read_int64")
880   (return-type "gint64")
881   (parameters
882     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
883     '("GError**" "error")
884   )
887 (define-method read_uint64
888   (of-object "GDataInputStream")
889   (c-name "g_data_input_stream_read_uint64")
890   (return-type "guint64")
891   (parameters
892     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
893     '("GError**" "error")
894   )
898 ;; wrapped in gdatainputstream.override
900 (define-method read_line
901   (of-object "GDataInputStream")
902   (docstring
903    "S.read_line([cancellable]) -> str\n"
904    "Read a line from the stream. Return value includes ending newline\n"
905    "character.")
906   (c-name "g_data_input_stream_read_line")
907   (return-type "char*")
908   (parameters
909     '("gsize*" "length")
910     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
911     '("GError**" "error")
912   )
916 ;; wrapped in gdatainputstream.override
918 (define-method read_until
919   (of-object "GDataInputStream")
920   (docstring
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"
924    "character.")
925   (c-name "g_data_input_stream_read_until")
926   (return-type "char*")
927   (parameters
928     '("const-gchar*" "stop_chars")
929     '("gsize*" "length")
930     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
931     '("GError**" "error")
932   )
935 (define-method read_until_async
936   (of-object "GDataInputStream")
937   (c-name "g_data_input_stream_read_until_async")
938   (return-type "none")
939   (parameters
940     '("const-gchar*" "stop_chars")
941     '("gint" "io_priority")
942     '("GCancellable*" "cancellable")
943     '("GAsyncReadyCallback" "callback")
944     '("gpointer" "user_data")
945   )
948 (define-method read_until_finish
949   (of-object "GDataInputStream")
950   (c-name "g_data_input_stream_read_until_finish")
951   (return-type "char*")
952   (parameters
953     '("GAsyncResult*" "result")
954     '("gsize*" "length")
955     '("GError**" "error")
956   )
959 (define-method read_line_async
960   (of-object "GDataInputStream")
961   (c-name "g_data_input_stream_read_line_async")
962   (return-type "none")
963   (parameters
964     '("gint" "io_priority")
965     '("GCancellable*" "cancellable")
966     '("GAsyncReadyCallback" "callback")
967     '("gpointer" "user_data")
968   )
971 (define-method read_line_finish
972   (of-object "GDataInputStream")
973   (c-name "g_data_input_stream_read_line_finish")
974   (return-type "char*")
975   (parameters
976     '("GAsyncResult*" "result")
977     '("gsize*" "length")
978     '("GError**" "error")
979   )
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*")
995   (properties
996     '("base_stream")
997   )
1000 (define-method set_byte_order
1001   (of-object "GDataOutputStream")
1002   (c-name "g_data_output_stream_set_byte_order")
1003   (return-type "none")
1004   (parameters
1005     '("GDataStreamByteOrder" "order")
1006   )
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")
1019   (parameters
1020     '("guchar" "data")
1021     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1022     '("GError**" "error")
1023   )
1026 (define-method put_int16
1027   (of-object "GDataOutputStream")
1028   (c-name "g_data_output_stream_put_int16")
1029   (return-type "gboolean")
1030   (parameters
1031     '("gint16" "data")
1032     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1033     '("GError**" "error")
1034   )
1037 (define-method put_uint16
1038   (of-object "GDataOutputStream")
1039   (c-name "g_data_output_stream_put_uint16")
1040   (return-type "gboolean")
1041   (parameters
1042     '("guint16" "data")
1043     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1044     '("GError**" "error")
1045   )
1048 (define-method put_int32
1049   (of-object "GDataOutputStream")
1050   (c-name "g_data_output_stream_put_int32")
1051   (return-type "gboolean")
1052   (parameters
1053     '("gint32" "data")
1054     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1055     '("GError**" "error")
1056   )
1059 (define-method put_uint32
1060   (of-object "GDataOutputStream")
1061   (c-name "g_data_output_stream_put_uint32")
1062   (return-type "gboolean")
1063   (parameters
1064     '("guint32" "data")
1065     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1066     '("GError**" "error")
1067   )
1070 (define-method put_int64
1071   (of-object "GDataOutputStream")
1072   (c-name "g_data_output_stream_put_int64")
1073   (return-type "gboolean")
1074   (parameters
1075     '("gint64" "data")
1076     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1077     '("GError**" "error")
1078   )
1081 (define-method put_uint64
1082   (of-object "GDataOutputStream")
1083   (c-name "g_data_output_stream_put_uint64")
1084   (return-type "gboolean")
1085   (parameters
1086     '("guint64" "data")
1087     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1088     '("GError**" "error")
1089   )
1092 (define-method put_string
1093   (of-object "GDataOutputStream")
1094   (c-name "g_data_output_stream_put_string")
1095   (return-type "gboolean")
1096   (parameters
1097     '("const-char*" "str")
1098     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1099     '("GError**" "error")
1100   )
1108 ;; From gdrive.h
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")
1180   (parameters
1181     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
1182     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1183     '("GAsyncReadyCallback" "callback")
1184     '("gpointer" "user_data")
1185   )
1188 (define-method eject_finish
1189   (of-object "GDrive")
1190   (c-name "g_drive_eject_finish")
1191   (return-type "gboolean")
1192   (parameters
1193     '("GAsyncResult*" "result")
1194     '("GError**" "error")
1195   )
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")
1205   (parameters
1206     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1207     '("GAsyncReadyCallback" "callback")
1208     '("gpointer" "user_data")
1209   )
1212 (define-method poll_for_media_finish
1213   (of-object "GDrive")
1214   (c-name "g_drive_poll_for_media_finish")
1215   (return-type "gboolean")
1216   (parameters
1217     '("GAsyncResult*" "result")
1218     '("GError**" "error")
1219   )
1222 (define-method get_identifier
1223   (of-object "GDrive")
1224   (c-name "g_drive_get_identifier")
1225   (return-type "char*")
1226   (parameters
1227     '("const-char*" "kind")
1228   )
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")
1262   (parameters
1263     '("GMountUnmountFlags" "flags")
1264     '("GMountOperation*" "mount_operation")
1265     '("GCancellable*" "cancellable")
1266     '("GAsyncReadyCallback" "callback")
1267     '("gpointer" "user_data")
1268   )
1271 (define-method eject_with_operation_finish
1272   (of-object "GDrive")
1273   (c-name "g_drive_eject_with_operation_finish")
1274   (return-type "gboolean")
1275   (parameters
1276     '("GAsyncResult*" "result")
1277     '("GError**" "error")
1278   )
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")
1291   (parameters
1292     '("GDriveStartFlags" "flags")
1293     '("GMountOperation*" "mount_operation")
1294     '("GCancellable*" "cancellable")
1295     '("GAsyncReadyCallback" "callback")
1296     '("gpointer" "user_data")
1297   )
1300 (define-method start_finish
1301   (of-object "GDrive")
1302   (c-name "g_drive_start_finish")
1303   (return-type "gboolean")
1304   (parameters
1305     '("GAsyncResult*" "result")
1306     '("GError**" "error")
1307   )
1310 (define-method stop
1311   (of-object "GDrive")
1312   (c-name "g_drive_stop")
1313   (return-type "none")
1314   (parameters
1315     '("GMountUnmountFlags" "flags")
1316     '("GMountOperation*" "mount_operation")
1317     '("GCancellable*" "cancellable")
1318     '("GAsyncReadyCallback" "callback")
1319     '("gpointer" "user_data")
1320   )
1323 (define-method stop_finish
1324   (of-object "GDrive")
1325   (c-name "g_drive_stop_finish")
1326   (return-type "gboolean")
1327   (parameters
1328     '("GAsyncResult*" "result")
1329     '("GError**" "error")
1330   )
1335 ;; From gemblemedicon.h
1337 (define-function g_emblemed_icon_get_type
1338   (c-name "g_emblemed_icon_get_type")
1339   (return-type "GType")
1342 (define-function g_emblemed_icon_new
1343   (c-name "g_emblemed_icon_new")
1344   (is-constructor-of "GEmblemedIcon")
1345   (return-type "GIcon*")
1346   (parameters
1347     '("GIcon*" "icon")
1348     '("GEmblem*" "emblem")
1349   )
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")
1368   (parameters
1369     '("GEmblem*" "emblem")
1370   )
1375 ;; From gemblem.h
1377 (define-function g_emblem_get_type
1378   (c-name "g_emblem_get_type")
1379   (return-type "GType")
1382 (define-function g_emblem_new
1383   (c-name "g_emblem_new")
1384   (is-constructor-of "GEmblem")
1385   (return-type "GEmblem*")
1386   (properties
1387     '("icon")
1388     '("origin" (optional))
1389   )
1392 (define-function emblem_new_with_origin
1393   (c-name "g_emblem_new_with_origin")
1394   (return-type "GEmblem*")
1395   (parameters
1396     '("GIcon*" "icon")
1397     '("GEmblemOrigin" "origin")
1398   )
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*")
1423 (define-method ref
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")
1435 (define-method dup
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*")
1445   (parameters
1446     '("const-char*" "name")
1447   )
1450 (define-method add
1451   (of-object "GFileAttributeInfoList")
1452   (c-name "g_file_attribute_info_list_add")
1453   (return-type "none")
1454   (parameters
1455     '("const-char*" "name")
1456     '("GFileAttributeType" "type")
1457     '("GFileAttributeInfoFlags" "flags" (default "G_FILE_ATTRIBUTE_INFO_NONE"))
1458   )
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)
1475   (parameters
1476     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1477     '("GError**" "error")
1478   )
1481 (define-method close
1482   (of-object "GFileEnumerator")
1483   (c-name "g_file_enumerator_close")
1484   (return-type "gboolean")
1485   (parameters
1486     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1487     '("GError**" "error")
1488   )
1492 ;; wrapped in gfileenumerator.override
1494 (define-method next_files_async
1495   (docstring
1496 "FE.next_files_async(num_files, callback, [io_priority, cancellable,\n"
1497 "                    user_data])\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"
1501 "\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"
1507 "\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"
1510 "\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")
1518   (parameters
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")
1524   )
1528 ;; wrapped in gfileenumerator.override
1530 (define-method next_files_finish
1531   (docstring
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*")
1538   (parameters
1539     '("GAsyncResult*" "result")
1540     '("GError**" "error")
1541   )
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")
1551   (parameters
1552     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1553     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1554     '("GAsyncReadyCallback" "callback")
1555     '("gpointer" "user_data")
1556   )
1559 (define-method close_finish
1560   (of-object "GFileEnumerator")
1561   (c-name "g_file_enumerator_close_finish")
1562   (return-type "gboolean")
1563   (parameters
1564     '("GAsyncResult*" "result")
1565     '("GError**" "error")
1566   )
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")
1585   (parameters
1586     '("gboolean" "pending")
1587   )
1590 (define-method get_container
1591   (of-object "GFileEnumerator")
1592   (c-name "g_file_enumerator_get_container")
1593   (return-type "GFile*")
1598 ;; From gfile.h
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*")
1609   (parameters
1610     '("const-char*" "path")
1611   )
1614 (define-function file_new_for_uri
1615   (c-name "g_file_new_for_uri")
1616   (is-constructor-of "GFile")
1617   (return-type "GFile*")
1618   (parameters
1619     '("const-char*" "uri")
1620   )
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*")
1627   (parameters
1628     '("const-char*" "arg")
1629   )
1632 (define-function file_parse_name
1633   (c-name "g_file_parse_name")
1634   (return-type "GFile*")
1635   (caller-owns-return #t)
1636   (parameters
1637     '("const-char*" "parse_name")
1638   )
1641 (define-method dup
1642   (of-object "GFile")
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")
1651   (parameters
1652     '("gconstpointer" "file")
1653   )
1656 (define-method equal
1657   (of-object "GFile")
1658   (c-name "g_file_equal")
1659   (return-type "gboolean")
1660   (parameters
1661     '("GFile*" "file2")
1662   )
1665 (define-method get_basename
1666   (of-object "GFile")
1667   (c-name "g_file_get_basename")
1668   (return-type "char*")
1671 (define-method get_path
1672   (of-object "GFile")
1673   (c-name "g_file_get_path")
1674   (return-type "char*")
1677 (define-method get_uri
1678   (of-object "GFile")
1679   (c-name "g_file_get_uri")
1680   (return-type "char*")
1683 (define-method get_parse_name
1684   (of-object "GFile")
1685   (c-name "g_file_get_parse_name")
1686   (return-type "char*")
1689 (define-method get_parent
1690   (of-object "GFile")
1691   (c-name "g_file_get_parent")
1692   (return-type "GFile*")
1693   (caller-owns-return #t)
1696 (define-method get_child
1697   (of-object "GFile")
1698   (c-name "g_file_get_child")
1699   (return-type "GFile*")
1700   (caller-owns-return #t)
1701   (parameters
1702     '("const-char*" "name")
1703   )
1706 (define-method get_child_for_display_name
1707   (of-object "GFile")
1708   (c-name "g_file_get_child_for_display_name")
1709   (return-type "GFile*")
1710   (caller-owns-return #t)
1711   (parameters
1712     '("const-char*" "display_name")
1713     '("GError**" "error")
1714   )
1717 (define-method has_prefix
1718   (of-object "GFile")
1719   (c-name "g_file_has_prefix")
1720   (return-type "gboolean")
1721   (parameters
1722     '("GFile*" "descendant")
1723   )
1726 (define-method get_relative_path
1727   (of-object "GFile")
1728   (c-name "g_file_get_relative_path")
1729   (return-type "char*")
1730   (parameters
1731     '("GFile*" "descendant")
1732   )
1735 (define-method resolve_relative_path
1736   (of-object "GFile")
1737   (c-name "g_file_resolve_relative_path")
1738   (return-type "GFile*")
1739   (caller-owns-return #t)
1740   (parameters
1741     '("const-char*" "relative_path")
1742   )
1745 (define-method is_native
1746   (of-object "GFile")
1747   (c-name "g_file_is_native")
1748   (return-type "gboolean")
1751 (define-method has_uri_scheme
1752   (of-object "GFile")
1753   (c-name "g_file_has_uri_scheme")
1754   (return-type "gboolean")
1755   (parameters
1756     '("const-char*" "uri_scheme")
1757   )
1760 (define-method get_uri_scheme
1761   (of-object "GFile")
1762   (c-name "g_file_get_uri_scheme")
1763   (return-type "char*")
1766 (define-method read
1767   (of-object "GFile")
1768   (docstring
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"
1772   "\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."
1780   )
1781   (c-name "g_file_read")
1782   (return-type "GFileInputStream*")
1783   (unblock-threads #t)
1784   (caller-owns-return #t)
1785   (parameters
1786     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1787     '("GError**" "error")
1788   )
1792 ;; wrapped in gfile.override
1794 (define-method read_async
1795   (of-object "GFile")
1796   (docstring
1797   "F.read_async(callback [,io_priority [,cancellable [,user_data]]])\n"
1798   "-> start read\n"
1799   "\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"
1804   "operation.\n"
1805   )
1806   (c-name "g_file_read_async")
1807   (return-type "none")
1808   (parameters
1809     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
1810     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1811     '("GAsyncReadyCallback" "callback")
1812     '("gpointer" "user_data")
1813   )
1816 (define-method read_finish
1817   (of-object "GFile")
1818   (c-name "g_file_read_finish")
1819   (return-type "GFileInputStream*")
1820   (caller-owns-return #t)
1821   (parameters
1822     '("GAsyncResult*" "res")
1823     '("GError**" "error")
1824   )
1827 (define-method append_to
1828   (of-object "GFile")
1829   (c-name "g_file_append_to")
1830   (return-type "GFileOutputStream*")
1831   (unblock-threads #t)
1832   (caller-owns-return #t)
1833   (parameters
1834     '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1835     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1836     '("GError**" "error")
1837   )
1840 (define-method create
1841   (of-object "GFile")
1842   (c-name "g_file_create")
1843   (return-type "GFileOutputStream*")
1844   (unblock-threads #t)
1845   (caller-owns-return #t)
1846   (parameters
1847     '("GFileCreateFlags" "flags" (default "G_FILE_CREATE_NONE"))
1848     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1849     '("GError**" "error")
1850   )
1853 (define-method replace
1854   (of-object "GFile")
1855   (c-name "g_file_replace")
1856   (return-type "GFileOutputStream*")
1857   (unblock-threads #t)
1858   (caller-owns-return #t)
1859   (parameters
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")
1865   )
1869 ;; wrapped in gfile.override
1871 (define-method append_to_async
1872   (docstring
1873   "F.append_to_async(callback [flags, [,io_priority [,cancellable\n"
1874   "                  [,user_data]]]]) -> open for append\n"
1875   "\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"
1880   "of the operation."
1881   )
1882   (of-object "GFile")
1883   (c-name "g_file_append_to_async")
1884   (return-type "none")
1885   (parameters
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")
1891   )
1894 (define-method append_to_finish
1895   (of-object "GFile")
1896   (c-name "g_file_append_to_finish")
1897   (return-type "GFileOutputStream*")
1898   (caller-owns-return #t)
1899   (parameters
1900     '("GAsyncResult*" "res")
1901     '("GError**" "error")
1902   )
1906 ;; wrapped in gfile.override
1908 (define-method create_async
1909   (docstring
1910   "F.create_async(callback [flags, [,io_priority [,cancellable\n"
1911   "               [,user_data]]]]) -> file created\n"
1912   "\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."
1919   )
1920   (of-object "GFile")
1921   (c-name "g_file_create_async")
1922   (return-type "none")
1923   (parameters
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")
1929   )
1932 (define-method create_finish
1933   (of-object "GFile")
1934   (c-name "g_file_create_finish")
1935   (return-type "GFileOutputStream*")
1936   (caller-owns-return #t)
1937   (parameters
1938     '("GAsyncResult*" "res")
1939     '("GError**" "error")
1940   )
1944 ;; wrapped in gfile.override
1946 (define-method replace_async
1947   (docstring
1948   "F.replace_async(callback [etag, [make_backup, [flags, [io_priority,\n"
1949   "                [cancellable, [user_data]]]]]]) -> file replace\n"
1950   "\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."
1957   )
1958   (of-object "GFile")
1959   (c-name "g_file_replace_async")
1960   (return-type "none")
1961   (parameters
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")
1969   )
1972 (define-method replace_finish
1973   (of-object "GFile")
1974   (c-name "g_file_replace_finish")
1975   (return-type "GFileOutputStream*")
1976   (caller-owns-return #t)
1977   (parameters
1978     '("GAsyncResult*" "res")
1979     '("GError**" "error")
1980   )
1983 (define-method query_exists
1984   (of-object "GFile")
1985   (c-name "g_file_query_exists")
1986   (return-type "gboolean")
1987   (parameters
1988     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
1989   )
1992 (define-method query_file_type
1993   (of-object "GFile")
1994   (c-name "g_file_query_file_type")
1995   (return-type "GFileType")
1996   (parameters
1997     '("GFileQueryInfoFlags" "flags")
1998     '("GCancellable*" "cancellable")
1999   )
2002 (define-method query_info
2003   (of-object "GFile")
2004   (c-name "g_file_query_info")
2005   (return-type "GFileInfo*")
2006   (unblock-threads #t)
2007   (caller-owns-return #t)
2008   (parameters
2009     '("const-char*" "attributes")
2010     '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2011     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2012     '("GError**" "error")
2013   )
2017 ;; wrapped in gfile.override
2019 (define-method query_info_async
2020   (docstring
2021   "F.query_info_async(attributes, callback, [flags, [io_priority,\n"
2022   "                   [cancellable, [user_data]]]]) -> query attributes\n"
2023   "\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"
2031   )
2032   (of-object "GFile")
2033   (c-name "g_file_query_info_async")
2034   (return-type "none")
2035   (parameters
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")
2042   )
2045 (define-method query_info_finish
2046   (of-object "GFile")
2047   (c-name "g_file_query_info_finish")
2048   (return-type "GFileInfo*")
2049   (caller-owns-return #t)
2050   (parameters
2051     '("GAsyncResult*" "res")
2052     '("GError**" "error")
2053   )
2056 (define-method query_filesystem_info
2057   (of-object "GFile")
2058   (c-name "g_file_query_filesystem_info")
2059   (return-type "GFileInfo*")
2060   (unblock-threads #t)
2061   (caller-owns-return #t)
2062   (parameters
2063     '("const-char*" "attributes")
2064     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2065     '("GError**" "error")
2066   )
2069 (define-method query_filesystem_info_async
2070   (of-object "GFile")
2071   (c-name "g_file_query_filesystem_info_async")
2072   (return-type "none")
2073   (parameters
2074     '("const-char*" "attributes")
2075     '("int" "io_priority")
2076     '("GCancellable*" "cancellable")
2077     '("GAsyncReadyCallback" "callback")
2078     '("gpointer" "user_data")
2079   )
2082 (define-method query_filesystem_info_finish
2083   (of-object "GFile")
2084   (c-name "g_file_query_filesystem_info_finish")
2085   (return-type "GFileInfo*")
2086   (parameters
2087     '("GAsyncResult*" "res")
2088     '("GError**" "error")
2089   )
2092 (define-method find_enclosing_mount
2093   (of-object "GFile")
2094   (c-name "g_file_find_enclosing_mount")
2095   (return-type "GMount*")
2096   (unblock-threads #t)
2097   (caller-owns-return #t)
2098   (parameters
2099     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2100     '("GError**" "error")
2101   )
2104 (define-method find_enclosing_mount_async
2105   (of-object "GFile")
2106   (c-name "g_file_find_enclosing_mount_async")
2107   (return-type "none")
2108   (parameters
2109     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
2110     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2111     '("GAsyncReadyCallback" "callback")
2112     '("gpointer" "user_data")
2113   )
2116 (define-method find_enclosing_mount_finish
2117   (of-object "GFile")
2118   (c-name "g_file_find_enclosing_mount_finish")
2119   (return-type "GMount*")
2120   (caller-owns-return #t)
2121   (parameters
2122     '("GAsyncResult*" "res")
2123     '("GError**" "error")
2124   )
2127 (define-method enumerate_children
2128   (docstring
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"
2141 "\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"
2145 "\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.")
2149   (of-object "GFile")
2150   (c-name "g_file_enumerate_children")
2151   (return-type "GFileEnumerator*")
2152   (unblock-threads #t)
2153   (caller-owns-return #t)
2154   (parameters
2155     '("const-char*" "attributes")
2156     '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2157     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2158     '("GError**" "error")
2159   )
2163 ;; wrapped in gfile.override
2165 (define-method enumerate_children_async
2166   (docstring
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"
2172 "\n"
2173 "For more details, see gio.File.enumerate_children() which is the synchronous\n"
2174 "version of this call.\n"
2175 "\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.")
2178   (of-object "GFile")
2179   (c-name "g_file_enumerate_children_async")
2180   (return-type "none")
2181   (parameters
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")
2188   )
2191 (define-method enumerate_children_finish
2192   (of-object "GFile")
2193   (c-name "g_file_enumerate_children_finish")
2194   (return-type "GFileEnumerator*")
2195   (caller-owns-return #t)
2196   (parameters
2197     '("GAsyncResult*" "res")
2198     '("GError**" "error")
2199   )
2202 (define-method set_display_name
2203   (of-object "GFile")
2204   (c-name "g_file_set_display_name")
2205   (return-type "GFile*")
2206   (unblock-threads #t)
2207   (caller-owns-return #t)
2208   (parameters
2209     '("const-char*" "display_name")
2210     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2211     '("GError**" "error")
2212   )
2215 (define-method set_display_name_async
2216   (of-object "GFile")
2217   (c-name "g_file_set_display_name_async")
2218   (return-type "none")
2219   (parameters
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")
2225   )
2228 (define-method set_display_name_finish
2229   (of-object "GFile")
2230   (c-name "g_file_set_display_name_finish")
2231   (return-type "GFile*")
2232   (caller-owns-return #t)
2233   (parameters
2234     '("GAsyncResult*" "res")
2235     '("GError**" "error")
2236   )
2239 (define-method delete
2240   (of-object "GFile")
2241   (c-name "g_file_delete")
2242   (return-type "gboolean")
2243   (unblock-threads #t)
2244   (parameters
2245     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2246     '("GError**" "error")
2247   )
2250 (define-method trash
2251   (of-object "GFile")
2252   (c-name "g_file_trash")
2253   (return-type "gboolean")
2254   (unblock-threads #t)
2255   (parameters
2256     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2257     '("GError**" "error")
2258   )
2262 ;; wrapped in gfile.override
2264 (define-method copy
2265   (docstring
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"
2269 "\n"
2270 "If the flag gio.FILE_COPY_OVERWRITE is specified an already existing\n"
2271 "destination file is overwritten.\n"
2272 "\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"
2275 "will be copied.\n"
2276 "\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"
2281 "\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"
2287 "\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"
2290 "\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"
2293 "\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"
2297 "\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"
2301 "\n"
2302 "If you are interested in copying the GFile object itself\n"
2303 "(not the on-disk file), see gio.File.dup().")
2304   (of-object "GFile")
2305   (c-name "g_file_copy")
2306   (unblock-threads #t)
2307   (return-type "gboolean")
2308   (parameters
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")
2315   )
2319 ;; wrapped in gfile.override
2321 (define-method copy_async
2322   (of-object "GFile")
2323   (docstring
2324   "F.copy_async(destination, callback, [flags, io_priority, user_data, cancellable, progress_callback])\n"
2325   "-> start copy\n"
2326   "\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"
2331   "operation.\n"
2332   )
2333   (c-name "g_file_copy_async")
2334   (return-type "none")
2335   (parameters
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")
2344   )
2347 (define-method copy_finish
2348   (of-object "GFile")
2349   (c-name "g_file_copy_finish")
2350   (return-type "gboolean")
2351   (parameters
2352     '("GAsyncResult*" "res")
2353     '("GError**" "error")
2354   )
2358 ;; wrapped in gfile.override
2360 (define-method move
2361   (docstring
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"
2369 "\n"
2370 "If the flag gio.FILE_COPY_OVERWRITE is specified an already existing\n"
2371 "destination file is overwritten.\n"
2372 "\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"
2375 "will be copied.\n"
2376 "\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"
2381 "\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"
2387 "\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"
2390 "\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"
2393 "\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"
2397 "\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.")
2401   (of-object "GFile")
2402   (c-name "g_file_move")
2403   (return-type "gboolean")
2404   (parameters
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")
2411   )
2414 (define-method make_directory
2415   (of-object "GFile")
2416   (c-name "g_file_make_directory")
2417   (return-type "gboolean")
2418   (unblock-threads #t)
2419   (parameters
2420     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2421     '("GError**" "error")
2422   )
2425 (define-method make_directory_with_parents
2426   (of-object "GFile")
2427   (c-name "g_file_make_directory_with_parents")
2428   (return-type "gboolean")
2429   (unblock-threads #t)
2430   (parameters
2431     '("GCancellable*" "cancellable")
2432     '("GError**" "error")
2433   )
2436 (define-method make_symbolic_link
2437   (of-object "GFile")
2438   (c-name "g_file_make_symbolic_link")
2439   (return-type "gboolean")
2440   (unblock-threads #t)
2441   (parameters
2442     '("const-char*" "symlink_value")
2443     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2444     '("GError**" "error")
2445   )
2449 ;; wrapped in gfile.override
2451 (define-method query_settable_attributes
2452   (docstring
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."
2462   )
2463   (of-object "GFile")
2464   (c-name "g_file_query_settable_attributes")
2465   (return-type "GFileAttributeInfoList*")
2466   (parameters
2467     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2468     '("GError**" "error")
2469   )
2473 ;; wrapped in gfile.override
2475 (define-method query_writable_namespaces
2476   (docstring
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"
2484   "will be returned."
2485   )
2486   (of-object "GFile")
2487   (c-name "g_file_query_writable_namespaces")
2488   (return-type "GFileAttributeInfoList*")
2489   (parameters
2490     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2491     '("GError**" "error")
2492   )
2496 ;; wrapped in gfile.override
2498 (define-method set_attribute
2499   (docstring
2500   "F.set_attribute(attribute, type, value_p [,flags [,cancellable ]])->bool\n"
2501   "\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."
2506   )
2507   (of-object "GFile")
2508   (c-name "g_file_set_attribute")
2509   (return-type "gboolean")
2510   (parameters
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")
2517   )
2520 (define-method set_attributes_from_info
2521   (of-object "GFile")
2522   (c-name "g_file_set_attributes_from_info")
2523   (return-type "gboolean")
2524   (parameters
2525     '("GFileInfo*" "info")
2526     '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2527     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2528     '("GError**" "error")
2529   )
2532 (define-method set_attributes_async
2533   (of-object "GFile")
2534   (c-name "g_file_set_attributes_async")
2535   (return-type "none")
2536   (parameters
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")
2543   )
2546 (define-method set_attributes_finish
2547   (of-object "GFile")
2548   (c-name "g_file_set_attributes_finish")
2549   (return-type "gboolean")
2550   (parameters
2551     '("GAsyncResult*" "result")
2552     '("GFileInfo**" "info")
2553     '("GError**" "error")
2554   )
2557 (define-method set_attribute_string
2558   (of-object "GFile")
2559   (c-name "g_file_set_attribute_string")
2560   (return-type "gboolean")
2561   (parameters
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")
2567   )
2570 (define-method set_attribute_byte_string
2571   (of-object "GFile")
2572   (c-name "g_file_set_attribute_byte_string")
2573   (return-type "gboolean")
2574   (parameters
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")
2580   )
2583 (define-method set_attribute_uint32
2584   (of-object "GFile")
2585   (c-name "g_file_set_attribute_uint32")
2586   (return-type "gboolean")
2587   (parameters
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")
2593   )
2596 (define-method set_attribute_int32
2597   (of-object "GFile")
2598   (c-name "g_file_set_attribute_int32")
2599   (return-type "gboolean")
2600   (parameters
2601     '("const-char*" "attribute")
2602     '("gint32" "value")
2603     '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2604     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2605     '("GError**" "error")
2606   )
2609 (define-method set_attribute_uint64
2610   (of-object "GFile")
2611   (c-name "g_file_set_attribute_uint64")
2612   (return-type "gboolean")
2613   (parameters
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")
2619   )
2622 (define-method set_attribute_int64
2623   (of-object "GFile")
2624   (c-name "g_file_set_attribute_int64")
2625   (return-type "gboolean")
2626   (parameters
2627     '("const-char*" "attribute")
2628     '("gint64" "value")
2629     '("GFileQueryInfoFlags" "flags" (default "G_FILE_QUERY_INFO_NONE"))
2630     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2631     '("GError**" "error")
2632   )
2636 ;; wrapped in gfile.override
2638 (define-method mount_enclosing_volume
2639   (docstring
2640 "F.mount_enclosing_volume(mount_operation, callback, [cancellable,\n"
2641 "                         user_data])\n"
2642 "Starts a mount_operation, mounting the volume that contains\n"
2643 "the file location.\n"
2644 "\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"
2648 "\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.")
2653   (of-object "GFile")
2654   (c-name "g_file_mount_enclosing_volume")
2655   (return-type "none")
2656   (parameters
2657     '("GMountOperation*" "mount_operation")
2658     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2659     '("GAsyncReadyCallback" "callback")
2660     '("gpointer" "user_data")
2661   )
2664 (define-method mount_enclosing_volume_finish
2665   (of-object "GFile")
2666   (c-name "g_file_mount_enclosing_volume_finish")
2667   (return-type "gboolean")
2668   (parameters
2669     '("GAsyncResult*" "result")
2670     '("GError**" "error")
2671   )
2675 ;; wrapped in gfile.override
2677 (define-method mount_mountable
2678   (docstring
2679 "F.mount_mountable(mount_operation, callback, [flags, cancellable,\n"
2680 "                  user_data])\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"
2684 "\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"
2688 "\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")
2691   (of-object "GFile")
2692   (c-name "g_file_mount_mountable")
2693   (return-type "none")
2694   (parameters
2695     '("GMountOperation*" "mount_operation")
2696     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2697     '("GAsyncReadyCallback" "callback")
2698     '("gpointer" "user_data")
2699   )
2702 (define-method mount_mountable_finish
2703   (of-object "GFile")
2704   (c-name "g_file_mount_mountable_finish")
2705   (return-type "GFile*")
2706   (caller-owns-return #t)
2707   (parameters
2708     '("GAsyncResult*" "result")
2709     '("GError**" "error")
2710   )
2714 ;; wrapped in gfile.override
2716 (define-method unmount_mountable
2717   (docstring
2718 "F.unmount_mountable(callback, [flags, cancellable, user_data])\n"
2719 "Unmounts a file of type gio.FILE_TYPE_MOUNTABLE.\n"
2720 "\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"
2724 "\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")
2728   (of-object "GFile")
2729   (c-name "g_file_unmount_mountable")
2730   (return-type "none")
2731   (parameters
2732     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
2733     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2734     '("GAsyncReadyCallback" "callback")
2735     '("gpointer" "user_data")
2736   )
2739 (define-method unmount_mountable_finish
2740   (of-object "GFile")
2741   (c-name "g_file_unmount_mountable_finish")
2742   (return-type "gboolean")
2743   (parameters
2744     '("GAsyncResult*" "result")
2745     '("GError**" "error")
2746   )
2749 (define-method eject_mountable
2750   (of-object "GFile")
2751   (c-name "g_file_eject_mountable")
2752   (return-type "none")
2753   (parameters
2754     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
2755     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2756     '("GAsyncReadyCallback" "callback")
2757     '("gpointer" "user_data")
2758   )
2761 (define-method eject_mountable_finish
2762   (of-object "GFile")
2763   (c-name "g_file_eject_mountable_finish")
2764   (return-type "gboolean")
2765   (parameters
2766     '("GAsyncResult*" "result")
2767     '("GError**" "error")
2768   )
2772 (define-method copy_attributes
2773   (of-object "GFile")
2774   (c-name "g_file_copy_attributes")
2775   (return-type "gboolean")
2776   (parameters
2777     '("GFile*" "destination")
2778     '("GFileCopyFlags" "flags" (default "G_FILE_COPY_NONE"))
2779     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2780     '("GError**" "error")
2781   )
2784 (define-method monitor_directory
2785   (of-object "GFile")
2786   (c-name "g_file_monitor_directory")
2787   (return-type "GFileMonitor*")
2788   (caller-owns-return #t)
2789   (parameters
2790     '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2791     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2792     '("GError**" "error")
2793   )
2796 (define-method monitor_file
2797   (of-object "GFile")
2798   (c-name "g_file_monitor_file")
2799   (return-type "GFileMonitor*")
2800   (caller-owns-return #t)
2801   (parameters
2802     '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2803     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2804     '("GError**" "error")
2805   )
2808 (define-method monitor
2809   (of-object "GFile")
2810   (c-name "g_file_monitor")
2811   (return-type "GFileMonitor*")
2812   (parameters
2813     '("GFileMonitorFlags" "flags" (default "G_FILE_MONITOR_NONE"))
2814     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2815     '("GError**" "error")
2816   )
2819 (define-method query_default_handler
2820   (of-object "GFile")
2821   (c-name "g_file_query_default_handler")
2822   (return-type "GAppInfo*")
2823   (caller-owns-return #t)
2824   (parameters
2825     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2826     '("GError**" "error")
2827   )
2831 ;; wrapped in gfile.override
2833 (define-method load_contents
2834   (docstring
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"
2842   )
2843   (of-object "GFile")
2844   (c-name "g_file_load_contents")
2845   (return-type "gboolean")
2846   (parameters
2847     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2848     '("char**" "contents")
2849     '("gsize*" "length")
2850     '("char**" "etag_out")
2851     '("GError**" "error")
2852   )
2856 ;; wrapped in gfile.override
2858 (define-method load_contents_async
2859   (docstring
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"
2870   )
2871   (of-object "GFile")
2872   (c-name "g_file_load_contents_async")
2873   (return-type "none")
2874   (parameters
2875     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2876     '("GAsyncReadyCallback" "callback")
2877     '("gpointer" "user_data")
2878   )
2882 ;; wrapped in gfile.override
2884 (define-method load_contents_finish
2885   (docstring
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"
2891   )
2892   (of-object "GFile")
2893   (c-name "g_file_load_contents_finish")
2894   (return-type "gboolean")
2895   (parameters
2896     '("GAsyncResult*" "res")
2897     '("char**" "contents")
2898     '("gsize*" "length")
2899     '("char**" "etag_out")
2900     '("GError**" "error")
2901   )
2904 (define-method load_partial_contents_async
2905   (of-object "GFile")
2906   (c-name "g_file_load_partial_contents_async")
2907   (return-type "none")
2908   (parameters
2909     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
2910     '("GFileReadMoreCallback" "read_more_callback")
2911     '("GAsyncReadyCallback" "callback")
2912     '("gpointer" "user_data")
2913   )
2916 (define-method load_partial_contents_finish
2917   (of-object "GFile")
2918   (c-name "g_file_load_partial_contents_finish")
2919   (return-type "gboolean")
2920   (parameters
2921     '("GAsyncResult*" "res")
2922     '("char**" "contents")
2923     '("gsize*" "length")
2924     '("char**" "etag_out")
2925     '("GError**" "error")
2926   )
2930 ;; wrapped in gfile.override
2932 (define-method replace_contents
2933   (docstring
2934   "F.replace_contents(contents, [etag, [make_backup, [flags, [cancellable]]]])\n"
2935   "-> etag_out\n"
2936   "\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"
2944   )
2945   (of-object "GFile")
2946   (c-name "g_file_replace_contents")
2947   (return-type "gboolean")
2948   (parameters
2949     '("const-char*" "contents")
2950     '("gsize" "length")
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")
2957   )
2961 ;; wrapped in gfile.override
2963 (define-method replace_contents_async
2964   (docstring
2965   "F.replace_contents_async(contents, callback, [etag, [make_backup, [flags,\n"
2966   "                         [cancellable]]]]) -> etag_out\n"
2967   "\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"
2977   )
2978   (of-object "GFile")
2979   (c-name "g_file_replace_contents_async")
2980   (return-type "none")
2981   (parameters
2982     '("const-char*" "contents")
2983     '("gsize" "length")
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")
2990   )
2994 ;; wrapped in gfile.override
2996 (define-method replace_contents_finish
2997   (docstring
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"
3001   )
3002   (of-object "GFile")
3003   (c-name "g_file_replace_contents_finish")
3004   (return-type "gboolean")
3005   (parameters
3006     '("GAsyncResult*" "res")
3007     '("char**" "new_etag")
3008     '("GError**" "error")
3009   )
3012 (define-method create_readwrite
3013   (of-object "GFile")
3014   (c-name "g_file_create_readwrite")
3015   (return-type "GFileIOStream*")
3016   (parameters
3017     '("GFileCreateFlags" "flags")
3018     '("GCancellable*" "cancellable")
3019     '("GError**" "error")
3020   )
3023 (define-method create_readwrite_async
3024   (of-object "GFile")
3025   (c-name "g_file_create_readwrite_async")
3026   (return-type "none")
3027   (parameters
3028     '("GFileCreateFlags" "flags")
3029     '("int" "io_priority")
3030     '("GCancellable*" "cancellable")
3031     '("GAsyncReadyCallback" "callback")
3032     '("gpointer" "user_data")
3033   )
3036 (define-method create_readwrite_finish
3037   (of-object "GFile")
3038   (c-name "g_file_create_readwrite_finish")
3039   (return-type "GFileIOStream*")
3040   (parameters
3041     '("GAsyncResult*" "res")
3042     '("GError**" "error")
3043   )
3046 (define-method eject_mountable_with_operation
3047   (of-object "GFile")
3048   (c-name "g_file_eject_mountable_with_operation")
3049   (return-type "none")
3050   (parameters
3051     '("GMountUnmountFlags" "flags")
3052     '("GMountOperation*" "mount_operation")
3053     '("GCancellable*" "cancellable")
3054     '("GAsyncReadyCallback" "callback")
3055     '("gpointer" "user_data")
3056   )
3059 (define-method eject_mountable_with_operation_finish
3060   (of-object "GFile")
3061   (c-name "g_file_eject_mountable_with_operation_finish")
3062   (return-type "gboolean")
3063   (parameters
3064     '("GAsyncResult*" "result")
3065     '("GError**" "error")
3066   )
3069 (define-method open_readwrite
3070   (of-object "GFile")
3071   (c-name "g_file_open_readwrite")
3072   (return-type "GFileIOStream*")
3073   (parameters
3074     '("GCancellable*" "cancellable")
3075     '("GError**" "error")
3076   )
3079 (define-method open_readwrite_async
3080   (of-object "GFile")
3081   (c-name "g_file_open_readwrite_async")
3082   (return-type "none")
3083   (parameters
3084     '("int" "io_priority")
3085     '("GCancellable*" "cancellable")
3086     '("GAsyncReadyCallback" "callback")
3087     '("gpointer" "user_data")
3088   )
3091 (define-method open_readwrite_finish
3092   (of-object "GFile")
3093   (c-name "g_file_open_readwrite_finish")
3094   (return-type "GFileIOStream*")
3095   (parameters
3096     '("GAsyncResult*" "res")
3097     '("GError**" "error")
3098   )
3101 (define-method poll_mountable
3102   (of-object "GFile")
3103   (c-name "g_file_poll_mountable")
3104   (return-type "none")
3105   (parameters
3106     '("GCancellable*" "cancellable")
3107     '("GAsyncReadyCallback" "callback")
3108     '("gpointer" "user_data")
3109   )
3112 (define-method poll_mountable_finish
3113   (of-object "GFile")
3114   (c-name "g_file_poll_mountable_finish")
3115   (return-type "gboolean")
3116   (parameters
3117     '("GAsyncResult*" "result")
3118     '("GError**" "error")
3119   )
3122 (define-method replace_readwrite
3123   (of-object "GFile")
3124   (c-name "g_file_replace_readwrite")
3125   (return-type "GFileIOStream*")
3126   (parameters
3127     '("const-char*" "etag")
3128     '("gboolean" "make_backup")
3129     '("GFileCreateFlags" "flags")
3130     '("GCancellable*" "cancellable")
3131     '("GError**" "error")
3132   )
3135 (define-method replace_readwrite_async
3136   (of-object "GFile")
3137   (c-name "g_file_replace_readwrite_async")
3138   (return-type "none")
3139   (parameters
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")
3147   )
3150 (define-method replace_readwrite_finish
3151   (of-object "GFile")
3152   (c-name "g_file_replace_readwrite_finish")
3153   (return-type "GFileIOStream*")
3154   (parameters
3155     '("GAsyncResult*" "res")
3156     '("GError**" "error")
3157   )
3160 (define-method start_mountable
3161   (of-object "GFile")
3162   (c-name "g_file_start_mountable")
3163   (return-type "none")
3164   (parameters
3165     '("GDriveStartFlags" "flags")
3166     '("GMountOperation*" "start_operation")
3167     '("GCancellable*" "cancellable")
3168     '("GAsyncReadyCallback" "callback")
3169     '("gpointer" "user_data")
3170   )
3173 (define-method start_mountable_finish
3174   (of-object "GFile")
3175   (c-name "g_file_start_mountable_finish")
3176   (return-type "gboolean")
3177   (parameters
3178     '("GAsyncResult*" "result")
3179     '("GError**" "error")
3180   )
3183 (define-method stop_mountable
3184   (of-object "GFile")
3185   (c-name "g_file_stop_mountable")
3186   (return-type "none")
3187   (parameters
3188     '("GMountUnmountFlags" "flags")
3189     '("GMountOperation*" "mount_operation")
3190     '("GCancellable*" "cancellable")
3191     '("GAsyncReadyCallback" "callback")
3192     '("gpointer" "user_data")
3193   )
3196 (define-method stop_mountable_finish
3197   (of-object "GFile")
3198   (c-name "g_file_stop_mountable_finish")
3199   (return-type "gboolean")
3200   (parameters
3201     '("GAsyncResult*" "result")
3202     '("GError**" "error")
3203   )
3206 (define-method supports_thread_contexts
3207   (of-object "GFile")
3208   (c-name "g_file_supports_thread_contexts")
3209   (return-type "gboolean")
3212 (define-method unmount_mountable_with_operation
3213   (of-object "GFile")
3214   (c-name "g_file_unmount_mountable_with_operation")
3215   (return-type "none")
3216   (parameters
3217     '("GMountUnmountFlags" "flags")
3218     '("GMountOperation*" "mount_operation")
3219     '("GCancellable*" "cancellable")
3220     '("GAsyncReadyCallback" "callback")
3221     '("gpointer" "user_data")
3222   )
3225 (define-method unmount_mountable_with_operation_finish
3226   (of-object "GFile")
3227   (c-name "g_file_unmount_mountable_with_operation_finish")
3228   (return-type "gboolean")
3229   (parameters
3230     '("GAsyncResult*" "result")
3231     '("GError**" "error")
3232   )
3237 ;; From gfileicon.h
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
3250   ;; in codegen.
3251   (parameters
3252     '("GFile*" "file")
3253   )
3256 (define-method get_file
3257   (of-object "GFileIcon")
3258   (c-name "g_file_icon_get_file")
3259   (return-type "GFile*")
3264 ;; From gfileinfo.h
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*")
3277 (define-method dup
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")
3288   (parameters
3289     '("GFileInfo*" "dest_info")
3290   )
3293 (define-method has_attribute
3294   (of-object "GFileInfo")
3295   (c-name "g_file_info_has_attribute")
3296   (return-type "gboolean")
3297   (parameters
3298     '("const-char*" "attribute")
3299   )
3302 (define-method has_namespace
3303   (of-object "GFileInfo")
3304   (c-name "g_file_info_has_namespace")
3305   (return-type "gboolean")
3306   (parameters
3307     '("const-char*" "name_space")
3308   )
3312 ;; wrapped in  gfileinfo.override
3313 (define-method list_attributes
3314   (docstring
3315   "INFO.list_attributes(name_space) -> Attribute list\n\n"
3316   "Lists the file info structure's attributes."
3317   )
3318   (of-object "GFileInfo")
3319   (c-name "g_file_info_list_attributes")
3320   (return-type "char**")
3321   (parameters
3322     '("const-char*" "name_space")
3323   )
3326 (define-method get_attribute_data
3327   (of-object "GFileInfo")
3328   (c-name "g_file_info_get_attribute_data")
3329   (return-type "gboolean")
3330   (parameters
3331     '("const-char*" "attribute")
3332     '("GFileAttributeType*" "type")
3333     '("gpointer*" "value_pp")
3334     '("GFileAttributeStatus*" "status")
3335   )
3338 (define-method get_attribute_type
3339   (of-object "GFileInfo")
3340   (c-name "g_file_info_get_attribute_type")
3341   (return-type "GFileAttributeType")
3342   (parameters
3343     '("const-char*" "attribute")
3344   )
3347 (define-method remove_attribute
3348   (of-object "GFileInfo")
3349   (c-name "g_file_info_remove_attribute")
3350   (return-type "none")
3351   (parameters
3352     '("const-char*" "attribute")
3353   )
3356 (define-method get_attribute_status
3357   (of-object "GFileInfo")
3358   (c-name "g_file_info_get_attribute_status")
3359   (return-type "GFileAttributeStatus")
3360   (parameters
3361     '("const-char*" "attribute")
3362   )
3365 (define-method set_attribute_status
3366   (of-object "GFileInfo")
3367   (c-name "g_file_info_set_attribute_status")
3368   (return-type "gboolean")
3369   (parameters
3370     '("const-char*" "attribute")
3371     '("GFileAttributeStatus" "status")
3372   )
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*")
3379   (parameters
3380     '("const-char*" "attribute")
3381   )
3384 (define-method get_attribute_string
3385   (of-object "GFileInfo")
3386   (c-name "g_file_info_get_attribute_string")
3387   (return-type "const-char*")
3388   (parameters
3389     '("const-char*" "attribute")
3390   )
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*")
3397   (parameters
3398     '("const-char*" "attribute")
3399   )
3402 (define-method get_attribute_boolean
3403   (of-object "GFileInfo")
3404   (c-name "g_file_info_get_attribute_boolean")
3405   (return-type "gboolean")
3406   (parameters
3407     '("const-char*" "attribute")
3408   )
3411 (define-method get_attribute_uint32
3412   (of-object "GFileInfo")
3413   (c-name "g_file_info_get_attribute_uint32")
3414   (return-type "guint32")
3415   (parameters
3416     '("const-char*" "attribute")
3417   )
3420 (define-method get_attribute_int32
3421   (of-object "GFileInfo")
3422   (c-name "g_file_info_get_attribute_int32")
3423   (return-type "gint32")
3424   (parameters
3425     '("const-char*" "attribute")
3426   )
3429 (define-method get_attribute_uint64
3430   (of-object "GFileInfo")
3431   (c-name "g_file_info_get_attribute_uint64")
3432   (return-type "guint64")
3433   (parameters
3434     '("const-char*" "attribute")
3435   )
3438 (define-method get_attribute_int64
3439   (of-object "GFileInfo")
3440   (c-name "g_file_info_get_attribute_int64")
3441   (return-type "gint64")
3442   (parameters
3443     '("const-char*" "attribute")
3444   )
3447 (define-method get_attribute_object
3448   (of-object "GFileInfo")
3449   (c-name "g_file_info_get_attribute_object")
3450   (return-type "GObject*")
3451   (parameters
3452     '("const-char*" "attribute")
3453   )
3456 (define-method get_attribute_stringv
3457   (of-object "GFileInfo")
3458   (c-name "g_file_info_get_attribute_stringv")
3459   (return-type "char**")
3460   (parameters
3461     '("const-char*" "attribute")
3462   )
3465 (define-method set_attribute
3466   (of-object "GFileInfo")
3467   (c-name "g_file_info_set_attribute")
3468   (return-type "none")
3469   (parameters
3470     '("const-char*" "attribute")
3471     '("GFileAttributeType" "type")
3472     '("gpointer" "value_p")
3473   )
3476 (define-method set_attribute_string
3477   (of-object "GFileInfo")
3478   (c-name "g_file_info_set_attribute_string")
3479   (return-type "none")
3480   (parameters
3481     '("const-char*" "attribute")
3482     '("const-char*" "attr_value")
3483   )
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")
3490   (parameters
3491     '("const-char*" "attribute")
3492     '("const-char*" "attr_value")
3493   )
3496 (define-method set_attribute_boolean
3497   (of-object "GFileInfo")
3498   (c-name "g_file_info_set_attribute_boolean")
3499   (return-type "none")
3500   (parameters
3501     '("const-char*" "attribute")
3502     '("gboolean" "attr_value")
3503   )
3506 (define-method set_attribute_uint32
3507   (of-object "GFileInfo")
3508   (c-name "g_file_info_set_attribute_uint32")
3509   (return-type "none")
3510   (parameters
3511     '("const-char*" "attribute")
3512     '("guint32" "attr_value")
3513   )
3516 (define-method set_attribute_int32
3517   (of-object "GFileInfo")
3518   (c-name "g_file_info_set_attribute_int32")
3519   (return-type "none")
3520   (parameters
3521     '("const-char*" "attribute")
3522     '("gint32" "attr_value")
3523   )
3526 (define-method set_attribute_uint64
3527   (of-object "GFileInfo")
3528   (c-name "g_file_info_set_attribute_uint64")
3529   (return-type "none")
3530   (parameters
3531     '("const-char*" "attribute")
3532     '("guint64" "attr_value")
3533   )
3536 (define-method set_attribute_int64
3537   (of-object "GFileInfo")
3538   (c-name "g_file_info_set_attribute_int64")
3539   (return-type "none")
3540   (parameters
3541     '("const-char*" "attribute")
3542     '("gint64" "attr_value")
3543   )
3546 (define-method set_attribute_object
3547   (of-object "GFileInfo")
3548   (c-name "g_file_info_set_attribute_object")
3549   (return-type "none")
3550   (parameters
3551     '("const-char*" "attribute")
3552     '("GObject*" "attr_value")
3553   )
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
3626   (docstring
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")
3632   (parameters
3633     '("GTimeVal*" "result")
3634   )
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")
3659   (parameters
3660     '("GFileAttributeMatcher*" "mask")
3661   )
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")
3674   (parameters
3675     '("GFileType" "type")
3676   )
3679 (define-method set_is_hidden
3680   (of-object "GFileInfo")
3681   (c-name "g_file_info_set_is_hidden")
3682   (return-type "none")
3683   (parameters
3684     '("gboolean" "is_hidden")
3685   )
3688 (define-method set_is_symlink
3689   (of-object "GFileInfo")
3690   (c-name "g_file_info_set_is_symlink")
3691   (return-type "none")
3692   (parameters
3693     '("gboolean" "is_symlink")
3694   )
3697 (define-method set_name
3698   (of-object "GFileInfo")
3699   (c-name "g_file_info_set_name")
3700   (return-type "none")
3701   (parameters
3702     '("const-char*" "name")
3703   )
3706 (define-method set_display_name
3707   (of-object "GFileInfo")
3708   (c-name "g_file_info_set_display_name")
3709   (return-type "none")
3710   (parameters
3711     '("const-char*" "display_name")
3712   )
3715 (define-method set_edit_name
3716   (of-object "GFileInfo")
3717   (c-name "g_file_info_set_edit_name")
3718   (return-type "none")
3719   (parameters
3720     '("const-char*" "edit_name")
3721   )
3724 (define-method set_icon
3725   (of-object "GFileInfo")
3726   (c-name "g_file_info_set_icon")
3727   (return-type "none")
3728   (parameters
3729     '("GIcon*" "icon")
3730   )
3733 (define-method set_content_type
3734   (of-object "GFileInfo")
3735   (c-name "g_file_info_set_content_type")
3736   (return-type "none")
3737   (parameters
3738     '("const-char*" "content_type")
3739   )
3742 (define-method set_size
3743   (of-object "GFileInfo")
3744   (c-name "g_file_info_set_size")
3745   (return-type "none")
3746   (parameters
3747     '("goffset" "size")
3748   )
3751 (define-method set_modification_time
3752   (of-object "GFileInfo")
3753   (c-name "g_file_info_set_modification_time")
3754   (return-type "none")
3755   (parameters
3756     '("GTimeVal*" "mtime")
3757   )
3760 (define-method set_symlink_target
3761   (of-object "GFileInfo")
3762   (c-name "g_file_info_set_symlink_target")
3763   (return-type "none")
3764   (parameters
3765     '("const-char*" "symlink_target")
3766   )
3769 (define-method set_sort_order
3770   (of-object "GFileInfo")
3771   (c-name "g_file_info_set_sort_order")
3772   (return-type "none")
3773   (parameters
3774     '("gint32" "sort_order")
3775   )
3778 (define-function file_attribute_matcher_new
3779   (c-name "g_file_attribute_matcher_new")
3780   (is-constructor-of "GFileAttributeMatcher")
3781   (return-type "GFileAttributeMatcher*")
3782   (parameters
3783     '("const-char*" "attributes")
3784   )
3787 (define-method ref
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")
3803   (parameters
3804     '("const-char*" "attribute")
3805   )
3808 (define-method matches_only
3809   (of-object "GFileAttributeMatcher")
3810   (c-name "g_file_attribute_matcher_matches_only")
3811   (return-type "gboolean")
3812   (parameters
3813     '("const-char*" "attribute")
3814   )
3817 (define-method enumerate_namespace
3818   (of-object "GFileAttributeMatcher")
3819   (c-name "g_file_attribute_matcher_enumerate_namespace")
3820   (return-type "gboolean")
3821   (parameters
3822     '("const-char*" "ns")
3823   )
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*")
3845   (parameters
3846     '("char*" "attributes")
3847     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
3848     '("GError**" "error")
3849   )
3852 (define-method query_info_async
3853   (of-object "GFileInputStream")
3854   (c-name "g_file_input_stream_query_info_async")
3855   (return-type "none")
3856   (parameters
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")
3862   )
3865 (define-method query_info_finish
3866   (of-object "GFileInputStream")
3867   (c-name "g_file_input_stream_query_info_finish")
3868   (return-type "GFileInfo*")
3869   (parameters
3870     '("GAsyncResult*" "result")
3871     '("GError**" "error")
3872   )
3877 ;; From gfileiostream.h
3879 (define-function g_file_io_stream_get_type
3880   (c-name "g_file_io_stream_get_type")
3881   (return-type "GType")
3884 (define-method query_info
3885   (of-object "GFileIOStream")
3886   (c-name "g_file_io_stream_query_info")
3887   (return-type "GFileInfo*")
3888   (parameters
3889     '("const-char*" "attributes")
3890     '("GCancellable*" "cancellable")
3891     '("GError**" "error")
3892   )
3895 (define-method query_info_async
3896   (of-object "GFileIOStream")
3897   (c-name "g_file_io_stream_query_info_async")
3898   (return-type "none")
3899   (parameters
3900     '("const-char*" "attributes")
3901     '("int" "io_priority")
3902     '("GCancellable*" "cancellable")
3903     '("GAsyncReadyCallback" "callback")
3904     '("gpointer" "user_data")
3905   )
3908 (define-method query_info_finish
3909   (of-object "GFileIOStream")
3910   (c-name "g_file_io_stream_query_info_finish")
3911   (return-type "GFileInfo*")
3912   (parameters
3913     '("GAsyncResult*" "result")
3914     '("GError**" "error")
3915   )
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")
3950   (parameters
3951     '("int" "limit_msecs")
3952   )
3955 (define-method emit_event
3956   (of-object "GFileMonitor")
3957   (c-name "g_file_monitor_emit_event")
3958   (return-type "none")
3959   (parameters
3960     '("GFile*" "file")
3961     '("GFile*" "other_file")
3962     '("GFileMonitorEvent" "event_type")
3963   )
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*")
3985   (parameters
3986     '("const-char*" "initial_text")
3987   )
3990 (define-method get_completions
3991   (of-object "GFilenameCompleter")
3992   (c-name "g_filename_completer_get_completions")
3993   (return-type "char**")
3994   (parameters
3995     '("const-char*" "initial_text")
3996   )
3999 (define-method set_dirs_only
4000   (of-object "GFilenameCompleter")
4001   (c-name "g_filename_completer_set_dirs_only")
4002   (return-type "none")
4003   (parameters
4004     '("gboolean" "dirs_only")
4005   )
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*")
4021   (parameters
4022     '("char*" "attributes")
4023     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4024     '("GError**" "error")
4025   )
4028 (define-method query_info_async
4029   (of-object "GFileOutputStream")
4030   (c-name "g_file_output_stream_query_info_async")
4031   (return-type "none")
4032   (parameters
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")
4038   )
4041 (define-method query_info_finish
4042   (of-object "GFileOutputStream")
4043   (c-name "g_file_output_stream_query_info_finish")
4044   (return-type "GFileInfo*")
4045   (parameters
4046     '("GAsyncResult*" "result")
4047     '("GError**" "error")
4048   )
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")
4081   (parameters
4082     '("gboolean" "close_base")
4083   )
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")
4111   (parameters
4112     '("gboolean" "close_base")
4113   )
4118 ;; From gicon.h
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")
4128   (parameters
4129     '("gconstpointer" "icon")
4130   )
4133 (define-method equal
4134   (of-object "GIcon")
4135   (c-name "g_icon_equal")
4136   (return-type "gboolean")
4137   (parameters
4138     '("GIcon*" "icon2")
4139   )
4142 (define-method to_string
4143   (of-object "GIcon")
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*")
4151   (parameters
4152     '("const-gchar*" "str")
4153     '("GError**" "error")
4154   )
4159 ;; From ginputstream.h
4161 (define-function input_stream_get_type
4162   (c-name "g_input_stream_get_type")
4163   (return-type "GType")
4167 ;; wrapped in ginputstream.override
4169 ;; Note: the following two methods are renamed for consistency with
4170 ;; Python file objects' read().  I.e. g_input_stream_read_all() is
4171 ;; more like Python file.read(), so it is renamed read().  Since now
4172 ;; there is a name clash, g_input_stream_read() is renamed
4173 ;; read_part().
4174 (define-method read_part
4175   (of-object "GInputStream")
4176   (docstring
4177    "STREAM.read_part([count, [cancellable]]) -> string\n"
4178    "\n"
4179    "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4180    "omitted, read until the end of the stream. This method is allowed to\n"
4181    "stop at any time after reading at least 1 byte from the stream. E.g.\n"
4182    "when reading over a (relatively slow) HTTP connection, it will often\n"
4183    "stop after receiving one packet. Therefore, to reliably read requested\n"
4184    "number of bytes, you need to use a loop. See also gio.InputStream.read\n"
4185    "for easier to use (though less efficient) method.\n"
4186    "\n"
4187    "Note: this method roughly corresponds to C GIO g_input_stream_read."
4188   )
4189   (c-name "g_input_stream_read")
4190   (return-type "gssize")
4191   (parameters
4192     '("void*" "buffer")
4193     '("gsize" "count")
4194     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4195     '("GError**" "error")
4196   )
4200 ;; wrapped in ginputstream.override
4202 ;; See comments before the previous method definition.
4203 (define-method read
4204   (of-object "GInputStream")
4205   (docstring
4206    "STREAM.read([count, [cancellable]]) -> string\n"
4207    "\n"
4208    "Read 'count' bytes from the stream. If 'count' is not specified or is\n"
4209    "omitted, read until the end of the stream. This method will stop only\n"
4210    "after reading requested number of bytes, reaching end of stream or\n"
4211    "triggering an I/O error. See also gio.InputStream.read_part for more\n"
4212    "efficient, but more cumbersome to use method.\n"
4213    "\n"
4214    "Note: this method roughly corresponds to C GIO g_input_stream_read_all.\n"
4215    "It was renamed for consistency with Python standard file.read."
4216   )
4217   (c-name "g_input_stream_read_all")
4218   (return-type "gboolean")
4219   (parameters
4220     '("void*" "buffer")
4221     '("gsize" "count")
4222     '("gsize*" "bytes_read")
4223     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4224     '("GError**" "error")
4225   )
4228 (define-method skip
4229   (of-object "GInputStream")
4230   (c-name "g_input_stream_skip")
4231   (return-type "gssize")
4232   (parameters
4233     '("gsize" "count")
4234     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4235     '("GError**" "error")
4236   )
4239 (define-method close
4240   (of-object "GInputStream")
4241   (c-name "g_input_stream_close")
4242   (return-type "gboolean")
4243   (parameters
4244     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4245     '("GError**" "error")
4246   )
4250 ;; wrapped in ginputstream.override
4252 (define-method read_async
4253   (of-object "GInputStream")
4254   (c-name "g_input_stream_read_async")
4255   (return-type "none")
4256   (parameters
4257     '("void*" "buffer")
4258     '("gsize" "count")
4259     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4260     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4261     '("GAsyncReadyCallback" "callback")
4262     '("gpointer" "user_data")
4263   )
4267 ;; wrapped in ginputstream.override
4269 (define-method read_finish
4270   (of-object "GInputStream")
4271   (c-name "g_input_stream_read_finish")
4272   (return-type "gssize")
4273   (parameters
4274     '("GAsyncResult*" "result")
4275     '("GError**" "error")
4276   )
4279 (define-method skip_async
4280   (of-object "GInputStream")
4281   (c-name "g_input_stream_skip_async")
4282   (return-type "none")
4283   (parameters
4284     '("gsize" "count")
4285     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4286     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4287     '("GAsyncReadyCallback" "callback")
4288     '("gpointer" "user_data")
4289   )
4292 (define-method skip_finish
4293   (of-object "GInputStream")
4294   (c-name "g_input_stream_skip_finish")
4295   (return-type "gssize")
4296   (parameters
4297     '("GAsyncResult*" "result")
4298     '("GError**" "error")
4299   )
4303 ;; wrapped in ginputstream.override
4305 (define-method close_async
4306   (of-object "GInputStream")
4307   (c-name "g_input_stream_close_async")
4308   (return-type "none")
4309   (parameters
4310     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
4311     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4312     '("GAsyncReadyCallback" "callback")
4313     '("gpointer" "user_data")
4314   )
4317 (define-method close_finish
4318   (of-object "GInputStream")
4319   (c-name "g_input_stream_close_finish")
4320   (return-type "gboolean")
4321   (parameters
4322     '("GAsyncResult*" "result")
4323     '("GError**" "error")
4324   )
4327 (define-method is_closed
4328   (of-object "GInputStream")
4329   (c-name "g_input_stream_is_closed")
4330   (return-type "gboolean")
4333 (define-method has_pending
4334   (of-object "GInputStream")
4335   (c-name "g_input_stream_has_pending")
4336   (return-type "gboolean")
4339 (define-method set_pending
4340   (of-object "GInputStream")
4341   (c-name "g_input_stream_set_pending")
4342   (return-type "gboolean")
4343   (parameters
4344     '("GError**" "error")
4345   )
4348 (define-method clear_pending
4349   (of-object "GInputStream")
4350   (c-name "g_input_stream_clear_pending")
4351   (return-type "none")
4356 ;; From gioalias.h
4360 ;; From gioenumtypes.h
4362 (define-function app_info_create_flags_get_type
4363   (c-name "g_app_info_create_flags_get_type")
4364   (return-type "GType")
4367 (define-function data_stream_byte_order_get_type
4368   (c-name "g_data_stream_byte_order_get_type")
4369   (return-type "GType")
4372 (define-function data_stream_newline_type_get_type
4373   (c-name "g_data_stream_newline_type_get_type")
4374   (return-type "GType")
4377 (define-function file_query_info_flags_get_type
4378   (c-name "g_file_query_info_flags_get_type")
4379   (return-type "GType")
4382 (define-function file_create_flags_get_type
4383   (c-name "g_file_create_flags_get_type")
4384   (return-type "GType")
4387 (define-function file_copy_flags_get_type
4388   (c-name "g_file_copy_flags_get_type")
4389   (return-type "GType")
4392 (define-function file_monitor_flags_get_type
4393   (c-name "g_file_monitor_flags_get_type")
4394   (return-type "GType")
4397 (define-function file_attribute_type_get_type
4398   (c-name "g_file_attribute_type_get_type")
4399   (return-type "GType")
4402 (define-function file_attribute_info_flags_get_type
4403   (c-name "g_file_attribute_info_flags_get_type")
4404   (return-type "GType")
4407 (define-function file_attribute_status_get_type
4408   (c-name "g_file_attribute_status_get_type")
4409   (return-type "GType")
4412 (define-function file_type_get_type
4413   (c-name "g_file_type_get_type")
4414   (return-type "GType")
4417 (define-function file_monitor_event_get_type
4418   (c-name "g_file_monitor_event_get_type")
4419   (return-type "GType")
4422 (define-function io_error_enum_get_type
4423   (c-name "g_io_error_enum_get_type")
4424   (return-type "GType")
4427 (define-function ask_password_flags_get_type
4428   (c-name "g_ask_password_flags_get_type")
4429   (return-type "GType")
4432 (define-function password_save_get_type
4433   (c-name "g_password_save_get_type")
4434   (return-type "GType")
4437 (define-function output_stream_splice_flags_get_type
4438   (c-name "g_output_stream_splice_flags_get_type")
4439   (return-type "GType")
4444 ;; From gioerror.h
4446 (define-function io_error_quark
4447   (c-name "g_io_error_quark")
4448   (return-type "GQuark")
4451 (define-function io_error_from_errno
4452   (c-name "g_io_error_from_errno")
4453   (return-type "GIOErrorEnum")
4454   (parameters
4455     '("gint" "err_no")
4456   )
4461 ;; From gio.h
4465 ;; From gio-marshal.h
4469 ;; From giomodule.h
4471 (define-function io_module_get_type
4472   (c-name "g_io_module_get_type")
4473   (return-type "GType")
4476 (define-function io_module_new
4477   (c-name "g_io_module_new")
4478   (is-constructor-of "GIoModule")
4479   (return-type "GIOModule*")
4480   (parameters
4481     '("const-gchar*" "filename")
4482   )
4485 (define-function io_modules_load_all_in_directory
4486   (c-name "g_io_modules_load_all_in_directory")
4487   (return-type "GList*")
4488   (parameters
4489     '("const-char*" "dirname")
4490   )
4493 (define-method load
4494   (of-object "GIOModule")
4495   (c-name "g_io_module_load")
4496   (return-type "none")
4499 (define-method unload
4500   (of-object "GIOModule")
4501   (c-name "g_io_module_unload")
4502   (return-type "none")
4507 ;; From gioscheduler.h
4509 (define-function io_scheduler_push_job
4510   (c-name "g_io_scheduler_push_job")
4511   (return-type "none")
4512   (parameters
4513     '("GIOSchedulerJobFunc" "job_func")
4514     '("gpointer" "user_data")
4515     '("GDestroyNotify" "notify")
4516     '("gint" "io_priority" (default "G_PRIORITY_DEFAULT"))
4517     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4518   )
4521 (define-function io_scheduler_cancel_all_jobs
4522   (c-name "g_io_scheduler_cancel_all_jobs")
4523   (return-type "none")
4526 (define-method send_to_mainloop
4527   (of-object "GIOSchedulerJob")
4528   (c-name "g_io_scheduler_job_send_to_mainloop")
4529   (return-type "gboolean")
4530   (parameters
4531     '("GSourceFunc" "func")
4532     '("gpointer" "user_data")
4533     '("GDestroyNotify" "notify")
4534   )
4537 (define-method send_to_mainloop_async
4538   (of-object "GIOSchedulerJob")
4539   (c-name "g_io_scheduler_job_send_to_mainloop_async")
4540   (return-type "none")
4541   (parameters
4542     '("GSourceFunc" "func")
4543     '("gpointer" "user_data")
4544     '("GDestroyNotify" "notify")
4545   )
4550 ;; From gloadableicon.h
4552 (define-function loadable_icon_get_type
4553   (c-name "g_loadable_icon_get_type")
4554   (return-type "GType")
4558 ;; wrapped in gicon.override
4560 (define-method load
4561   (of-object "GLoadableIcon")
4562   (docstring
4563   "ICON.load([size, [cancellable]]) -> input stream, type\n"
4564   "\n"
4565   "Opens a stream of icon data for reading. The result is a tuple of\n"
4566   "gio.InputStream and type (either a string or None). The stream can\n"
4567   "be read to retrieve icon data.\n"
4568   "\n"
4569   ;; Note: this is just a guess, GIO docs say nothing at the moment.
4570   "Optional size is a hint at desired icon size. Not all implementations\n"
4571   "support it and the hint will be just ignored in such cases.\n"
4572   "If cancellable is specified, then the operation can be cancelled\n"
4573   "by triggering the cancellable object from another thread. See\n"
4574   "gio.File.read for details."
4575   )
4576   (c-name "g_loadable_icon_load")
4577   (return-type "GInputStream*")
4578   (parameters
4579     '("int" "size")
4580     '("char**" "type")
4581     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4582     '("GError**" "error")
4583   )
4587 ;; wrapped in gicon.override
4589 (define-method load_async
4590   (of-object "GLoadableIcon")
4591   (docstring
4592   "ICON.load_async(callback, [size, [cancellable, [user_data]]])\n"
4593   "-> start loading\n"
4594   "\n"
4595   "For more information, see gio.LoadableIcon.load() which is the\n"
4596   "synchronous version of this call. Asynchronously opens icon data for\n"
4597   "reading. When the operation is finished, callback will be called.\n"
4598   "You can then call gio.LoadableIcon.load_finish() to get the result of\n"
4599   "the operation.\n"
4600   )
4601   (c-name "g_loadable_icon_load_async")
4602   (return-type "none")
4603   (parameters
4604     '("int" "size")
4605     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
4606     '("GAsyncReadyCallback" "callback")
4607     '("gpointer" "user_data")
4608   )
4612 ;; wrapped in gicon.override
4614 (define-method load_finish
4615   (docstring
4616   "F.load_finish(res) -> start loading\n"
4617   "\n"
4618   "Finish asynchronous icon loading operation. Must be called from callback\n"
4619   "as specified to gio.LoadableIcon.load_async. Returns a tuple of\n"
4620   "gio.InputStream and type, just as gio.LoadableIcon.load."
4621   )
4622   (of-object "GLoadableIcon")
4623   (c-name "g_loadable_icon_load_finish")
4624   (return-type "GInputStream*")
4625   (parameters
4626     '("GAsyncResult*" "res")
4627     '("char**" "type")
4628     '("GError**" "error")
4629   )
4634 ;; From ginetaddress.h
4636 (define-function g_inet_address_get_type
4637   (c-name "g_inet_address_get_type")
4638   (return-type "GType")
4641 (define-function g_inet_address_new_from_string
4642   (c-name "g_inet_address_new_from_string")
4643   (return-type "GInetAddress*")
4644   (parameters
4645     '("const-gchar*" "string")
4646   )
4649 (define-function g_inet_address_new_from_bytes
4650   (c-name "g_inet_address_new_from_bytes")
4651   (return-type "GInetAddress*")
4652   (parameters
4653     '("const-guint8*" "bytes")
4654     '("GSocketFamily" "family")
4655   )
4658 (define-function g_inet_address_new_loopback
4659   (c-name "g_inet_address_new_loopback")
4660   (return-type "GInetAddress*")
4661   (parameters
4662     '("GSocketFamily" "family")
4663   )
4666 (define-function g_inet_address_new_any
4667   (c-name "g_inet_address_new_any")
4668   (return-type "GInetAddress*")
4669   (parameters
4670     '("GSocketFamily" "family")
4671   )
4674 (define-method to_string
4675   (of-object "GInetAddress")
4676   (c-name "g_inet_address_to_string")
4677   (return-type "gchar*")
4681 ;; FIXME codegen barfs on this one
4683 ;;(define-method to_bytes
4684 ;;  (of-object "GInetAddress")
4685 ;;  (c-name "g_inet_address_to_bytes")
4686 ;;  (return-type "const-guint8*")
4689 (define-method get_native_size
4690   (of-object "GInetAddress")
4691   (c-name "g_inet_address_get_native_size")
4692   (return-type "gsize")
4695 (define-method get_family
4696   (of-object "GInetAddress")
4697   (c-name "g_inet_address_get_family")
4698   (return-type "GSocketFamily")
4701 (define-method get_is_any
4702   (of-object "GInetAddress")
4703   (c-name "g_inet_address_get_is_any")
4704   (return-type "gboolean")
4707 (define-method get_is_loopback
4708   (of-object "GInetAddress")
4709   (c-name "g_inet_address_get_is_loopback")
4710   (return-type "gboolean")
4713 (define-method get_is_link_local
4714   (of-object "GInetAddress")
4715   (c-name "g_inet_address_get_is_link_local")
4716   (return-type "gboolean")
4719 (define-method get_is_site_local
4720   (of-object "GInetAddress")
4721   (c-name "g_inet_address_get_is_site_local")
4722   (return-type "gboolean")
4725 (define-method get_is_multicast
4726   (of-object "GInetAddress")
4727   (c-name "g_inet_address_get_is_multicast")
4728   (return-type "gboolean")
4731 (define-method get_is_mc_global
4732   (of-object "GInetAddress")
4733   (c-name "g_inet_address_get_is_mc_global")
4734   (return-type "gboolean")
4737 (define-method get_is_mc_link_local
4738   (of-object "GInetAddress")
4739   (c-name "g_inet_address_get_is_mc_link_local")
4740   (return-type "gboolean")
4743 (define-method get_is_mc_node_local
4744   (of-object "GInetAddress")
4745   (c-name "g_inet_address_get_is_mc_node_local")
4746   (return-type "gboolean")
4749 (define-method get_is_mc_org_local
4750   (of-object "GInetAddress")
4751   (c-name "g_inet_address_get_is_mc_org_local")
4752   (return-type "gboolean")
4755 (define-method get_is_mc_site_local
4756   (of-object "GInetAddress")
4757   (c-name "g_inet_address_get_is_mc_site_local")
4758   (return-type "gboolean")
4763 ;; From ginitable.h
4765 (define-function g_initable_get_type
4766   (c-name "g_initable_get_type")
4767   (return-type "GType")
4770 (define-method init
4771   (of-object "GInitable")
4772   (c-name "g_initable_init")
4773   (return-type "gboolean")
4774   (parameters
4775     '("GCancellable*" "cancellable")
4776     '("GError**" "error")
4777   )
4780 (define-function g_initable_new
4781   (c-name "g_initable_new")
4782   (return-type "gpointer")
4783   (parameters
4784     '("GType" "object_type")
4785     '("GCancellable*" "cancellable")
4786     '("GError**" "error")
4787     '("const-gchar*" "first_property_name")
4788   )
4789   (varargs #t)
4792 (define-function g_initable_newv
4793   (c-name "g_initable_newv")
4794   (return-type "gpointer")
4795   (parameters
4796     '("GType" "object_type")
4797     '("guint" "n_parameters")
4798     '("GParameter*" "parameters")
4799     '("GCancellable*" "cancellable")
4800     '("GError**" "error")
4801   )
4804 (define-function g_initable_new_valist
4805   (c-name "g_initable_new_valist")
4806   (return-type "GObject*")
4807   (parameters
4808     '("GType" "object_type")
4809     '("const-gchar*" "first_property_name")
4810     '("va_list" "var_args")
4811     '("GCancellable*" "cancellable")
4812     '("GError**" "error")
4813   )
4818 ;; From giostream.h
4820 (define-function g_io_stream_get_type
4821   (c-name "g_io_stream_get_type")
4822   (return-type "GType")
4825 (define-method get_input_stream
4826   (of-object "GIOStream")
4827   (c-name "g_io_stream_get_input_stream")
4828   (return-type "GInputStream*")
4831 (define-method get_output_stream
4832   (of-object "GIOStream")
4833   (c-name "g_io_stream_get_output_stream")
4834   (return-type "GOutputStream*")
4837 (define-method close
4838   (of-object "GIOStream")
4839   (c-name "g_io_stream_close")
4840   (return-type "gboolean")
4841   (parameters
4842     '("GCancellable*" "cancellable")
4843     '("GError**" "error")
4844   )
4847 (define-method close_async
4848   (of-object "GIOStream")
4849   (c-name "g_io_stream_close_async")
4850   (return-type "none")
4851   (parameters
4852     '("int" "io_priority")
4853     '("GCancellable*" "cancellable")
4854     '("GAsyncReadyCallback" "callback")
4855     '("gpointer" "user_data")
4856   )
4859 (define-method close_finish
4860   (of-object "GIOStream")
4861   (c-name "g_io_stream_close_finish")
4862   (return-type "gboolean")
4863   (parameters
4864     '("GAsyncResult*" "result")
4865     '("GError**" "error")
4866   )
4869 (define-method is_closed
4870   (of-object "GIOStream")
4871   (c-name "g_io_stream_is_closed")
4872   (return-type "gboolean")
4875 (define-method has_pending
4876   (of-object "GIOStream")
4877   (c-name "g_io_stream_has_pending")
4878   (return-type "gboolean")
4881 (define-method set_pending
4882   (of-object "GIOStream")
4883   (c-name "g_io_stream_set_pending")
4884   (return-type "gboolean")
4885   (parameters
4886     '("GError**" "error")
4887   )
4890 (define-method clear_pending
4891   (of-object "GIOStream")
4892   (c-name "g_io_stream_clear_pending")
4893   (return-type "none")
4898 ;; From glocaldirectorymonitor.h
4900 (define-function local_directory_monitor_get_type
4901   (c-name "g_local_directory_monitor_get_type")
4902   (return-type "GType")
4907 ;; From glocalfileenumerator.h
4911 ;; From glocalfile.h
4915 ;; From glocalfileinfo.h
4919 ;; From glocalfileinputstream.h
4923 ;; From glocalfilemonitor.h
4925 (define-function local_file_monitor_get_type
4926   (c-name "g_local_file_monitor_get_type")
4927   (return-type "GType")
4932 ;; From glocalfileoutputstream.h
4936 ;; From glocalvfs.h
4940 ;; From gmemoryinputstream.h
4942 (define-function memory_input_stream_get_type
4943   (c-name "g_memory_input_stream_get_type")
4944   (return-type "GType")
4947 (define-function memory_input_stream_new
4948   (c-name "g_memory_input_stream_new")
4949   (is-constructor-of "GMemoryInputStream")
4950   (return-type "GInputStream*")
4953 (define-function memory_input_stream_new_from_data
4954   (c-name "g_memory_input_stream_new_from_data")
4955   (return-type "GInputStream*")
4956   (parameters
4957     '("const-void*" "data")
4958     '("gssize" "len")
4959     '("GDestroyNotify" "destroy")
4960   )
4964 ;; wrapped in ginputstream.override
4966 (define-method add_data
4967   (of-object "GMemoryInputStream")
4968   (c-name "g_memory_input_stream_add_data")
4969   (return-type "none")
4970   (parameters
4971     '("const-void*" "data")
4972     '("gssize" "len")
4973     '("GDestroyNotify" "destroy")
4974   )
4979 ;; From gmemoryoutputstream.h
4981 (define-function memory_output_stream_get_type
4982   (c-name "g_memory_output_stream_get_type")
4983   (return-type "GType")
4987 ;; wrapped in goutputstream.override
4989 (define-function memory_output_stream_new
4990   (c-name "g_memory_output_stream_new")
4991   (is-constructor-of "GMemoryOutputStream")
4992   (return-type "GOutputStream*")
4993   (parameters
4994     '("gpointer" "data")
4995     '("gsize" "len")
4996     '("GReallocFunc" "realloc_fn")
4997     '("GDestroyNotify" "destroy")
4998   )
5002 ;; wrapped in goutputstream.override
5004 ;; Note: name clash with gobject.GObject.get_data; renamed.
5005 (define-method get_contents
5006   (of-object "GMemoryOutputStream")
5007   (c-name "g_memory_output_stream_get_data")
5008   (return-type "gpointer")
5011 (define-method get_size
5012   (of-object "GMemoryOutputStream")
5013   (c-name "g_memory_output_stream_get_size")
5014   (return-type "gsize")
5017 (define-method get_data_size
5018   (of-object "GMemoryOutputStream")
5019   (c-name "g_memory_output_stream_get_data_size")
5020   (return-type "gsize")
5025 ;; From gmount.h
5027 (define-function mount_get_type
5028   (c-name "g_mount_get_type")
5029   (return-type "GType")
5032 (define-method get_root
5033   (of-object "GMount")
5034   (c-name "g_mount_get_root")
5035   (return-type "GFile*")
5036   (caller-owns-return #t)
5039 (define-method get_name
5040   (of-object "GMount")
5041   (c-name "g_mount_get_name")
5042   (return-type "char*")
5045 (define-method get_icon
5046   (of-object "GMount")
5047   (c-name "g_mount_get_icon")
5048   (return-type "GIcon*")
5049   (caller-owns-return #t)
5052 (define-method get_uuid
5053   (of-object "GMount")
5054   (c-name "g_mount_get_uuid")
5055   (return-type "char*")
5058 (define-method get_volume
5059   (of-object "GMount")
5060   (c-name "g_mount_get_volume")
5061   (return-type "GVolume*")
5062   (caller-owns-return #t)
5065 (define-method get_drive
5066   (of-object "GMount")
5067   (c-name "g_mount_get_drive")
5068   (return-type "GDrive*")
5069   (caller-owns-return #t)
5072 (define-method can_unmount
5073   (of-object "GMount")
5074   (c-name "g_mount_can_unmount")
5075   (return-type "gboolean")
5078 (define-method can_eject
5079   (of-object "GMount")
5080   (c-name "g_mount_can_eject")
5081   (return-type "gboolean")
5085 ;; wrapped in gio.override
5087 (define-method unmount
5088   (docstring
5089 "M.unmount(callback, [flags, cancellable, user_data])\n"
5090 "Unmounts a mount. This is an asynchronous operation, and is finished\n"
5091 "by calling gio.Mount.unmount_finish() with the mount and gio.AsyncResults\n"
5092 "data returned in the callback."
5094   (of-object "GMount")
5095   (c-name "g_mount_unmount")
5096   (return-type "none")
5097   (parameters
5098     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5099     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5100     '("GAsyncReadyCallback" "callback")
5101     '("gpointer" "user_data")
5102   )
5105 (define-method unmount_finish
5106   (of-object "GMount")
5107   (c-name "g_mount_unmount_finish")
5108   (return-type "gboolean")
5109   (parameters
5110     '("GAsyncResult*" "result")
5111     '("GError**" "error")
5112   )
5116 ;; wrapped in gio.override
5118 (define-method eject
5119   (docstring
5120 "F.eject(callback, [flags, cancellable, user_data])\n"
5121 "Ejects a volume.\n"
5122 "\n"
5123 "If cancellable is not None, then the operation can be cancelled by\n"
5124 "triggering the cancellable object from another thread. If the\n"
5125 "operation was cancelled, the error gio.ERROR_CANCELLED will be returned.\n"
5126 "\n"
5127 "When the operation is finished, callback will be called. You can\n"
5128 "then call gio.Volume.eject_finish() to get the result of the operation.\n")
5129   (of-object "GMount")
5130   (c-name "g_mount_eject")
5131   (return-type "none")
5132   (parameters
5133     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
5134     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5135     '("GAsyncReadyCallback" "callback")
5136     '("gpointer" "user_data")
5137   )
5140 (define-method eject_finish
5141   (of-object "GMount")
5142   (c-name "g_mount_eject_finish")
5143   (return-type "gboolean")
5144   (parameters
5145     '("GAsyncResult*" "result")
5146     '("GError**" "error")
5147   )
5151 ;; wrapped in gio.override
5153 (define-method remount
5154   (of-object "GMount")
5155   (docstring
5156    "M.remount(callback, [flags, [mount_operation, [cancellable, [user_data]]]])\n"
5157    "Remounts a mount. This is an asynchronous operation, and is finished by\n"
5158    "calling gio.Mount.remount_finish with the mount and gio.AsyncResults data\n"
5159    "returned in the callback.")
5160   (c-name "g_mount_remount")
5161   (return-type "none")
5162   (parameters
5163     '("GMountOperation*" "mount_operation")
5164     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5165     '("GAsyncReadyCallback" "callback")
5166     '("gpointer" "user_data")
5167   )
5170 (define-method remount_finish
5171   (of-object "GMount")
5172   (c-name "g_mount_remount_finish")
5173   (return-type "gboolean")
5174   (parameters
5175     '("GAsyncResult*" "result")
5176     '("GError**" "error")
5177   )
5180 (define-method guess_content_type
5181   (of-object "GMount")
5182   (c-name "g_mount_guess_content_type")
5183   (return-type "none")
5184   (parameters
5185     '("gboolean" "force_rescan")
5186     '("GCancellable*" "cancellable")
5187     '("GAsyncReadyCallback" "callback")
5188     '("gpointer" "user_data")
5189   )
5192 (define-method guess_content_type_finish
5193   (of-object "GMount")
5194   (c-name "g_mount_guess_content_type_finish")
5195   (return-type "gchar**")
5196   (parameters
5197     '("GAsyncResult*" "result")
5198     '("GError**" "error")
5199   )
5202 (define-method guess_content_type_sync
5203   (of-object "GMount")
5204   (c-name "g_mount_guess_content_type_sync")
5205   (return-type "gchar**")
5206   (parameters
5207     '("gboolean" "force_rescan")
5208     '("GCancellable*" "cancellable")
5209     '("GError**" "error")
5210   )
5213 (define-method is_shadowed
5214   (of-object "GMount")
5215   (c-name "g_mount_is_shadowed")
5216   (return-type "gboolean")
5219 (define-method shadow
5220   (of-object "GMount")
5221   (c-name "g_mount_shadow")
5222   (return-type "none")
5225 (define-method unshadow
5226   (of-object "GMount")
5227   (c-name "g_mount_unshadow")
5228   (return-type "none")
5231 (define-method unmount_with_operation
5232   (of-object "GMount")
5233   (c-name "g_mount_unmount_with_operation")
5234   (return-type "none")
5235   (parameters
5236     '("GMountUnmountFlags" "flags")
5237     '("GMountOperation*" "mount_operation")
5238     '("GCancellable*" "cancellable")
5239     '("GAsyncReadyCallback" "callback")
5240     '("gpointer" "user_data")
5241   )
5244 (define-method unmount_with_operation_finish
5245   (of-object "GMount")
5246   (c-name "g_mount_unmount_with_operation_finish")
5247   (return-type "gboolean")
5248   (parameters
5249     '("GAsyncResult*" "result")
5250     '("GError**" "error")
5251   )
5254 (define-method eject_with_operation
5255   (of-object "GMount")
5256   (c-name "g_mount_eject_with_operation")
5257   (return-type "none")
5258   (parameters
5259     '("GMountUnmountFlags" "flags")
5260     '("GMountOperation*" "mount_operation")
5261     '("GCancellable*" "cancellable")
5262     '("GAsyncReadyCallback" "callback")
5263     '("gpointer" "user_data")
5264   )
5267 (define-method eject_with_operation_finish
5268   (of-object "GMount")
5269   (c-name "g_mount_eject_with_operation_finish")
5270   (return-type "gboolean")
5271   (parameters
5272     '("GAsyncResult*" "result")
5273     '("GError**" "error")
5274   )
5279 ;; From gmountoperation.h
5281 (define-function mount_operation_get_type
5282   (c-name "g_mount_operation_get_type")
5283   (return-type "GType")
5286 (define-function mount_operation_new
5287   (c-name "g_mount_operation_new")
5288   (is-constructor-of "GMountOperation")
5289   (return-type "GMountOperation*")
5292 (define-method get_username
5293   (of-object "GMountOperation")
5294   (c-name "g_mount_operation_get_username")
5295   (return-type "const-char*")
5298 (define-method set_username
5299   (of-object "GMountOperation")
5300   (c-name "g_mount_operation_set_username")
5301   (return-type "none")
5302   (parameters
5303     '("const-char*" "username")
5304   )
5307 (define-method get_password
5308   (of-object "GMountOperation")
5309   (c-name "g_mount_operation_get_password")
5310   (return-type "const-char*")
5313 (define-method set_password
5314   (of-object "GMountOperation")
5315   (c-name "g_mount_operation_set_password")
5316   (return-type "none")
5317   (parameters
5318     '("const-char*" "password")
5319   )
5322 (define-method get_anonymous
5323   (of-object "GMountOperation")
5324   (c-name "g_mount_operation_get_anonymous")
5325   (return-type "gboolean")
5328 (define-method set_anonymous
5329   (of-object "GMountOperation")
5330   (c-name "g_mount_operation_set_anonymous")
5331   (return-type "none")
5332   (parameters
5333     '("gboolean" "anonymous")
5334   )
5337 (define-method get_domain
5338   (of-object "GMountOperation")
5339   (c-name "g_mount_operation_get_domain")
5340   (return-type "const-char*")
5343 (define-method set_domain
5344   (of-object "GMountOperation")
5345   (c-name "g_mount_operation_set_domain")
5346   (return-type "none")
5347   (parameters
5348     '("const-char*" "domain")
5349   )
5352 (define-method get_password_save
5353   (of-object "GMountOperation")
5354   (c-name "g_mount_operation_get_password_save")
5355   (return-type "GPasswordSave")
5358 (define-method set_password_save
5359   (of-object "GMountOperation")
5360   (c-name "g_mount_operation_set_password_save")
5361   (return-type "none")
5362   (parameters
5363     '("GPasswordSave" "save")
5364   )
5367 (define-method get_choice
5368   (of-object "GMountOperation")
5369   (c-name "g_mount_operation_get_choice")
5370   (return-type "int")
5373 (define-method set_choice
5374   (of-object "GMountOperation")
5375   (c-name "g_mount_operation_set_choice")
5376   (return-type "none")
5377   (parameters
5378     '("int" "choice")
5379   )
5382 (define-method reply
5383   (of-object "GMountOperation")
5384   (c-name "g_mount_operation_reply")
5385   (return-type "none")
5386   (parameters
5387     '("GMountOperationResult" "result")
5388   )
5393 ;; From gnativevolumemonitor.h
5395 (define-function native_volume_monitor_get_type
5396   (c-name "g_native_volume_monitor_get_type")
5397   (return-type "GType")
5402 ;; From gnetworkaddress.h
5404 (define-function g_network_address_get_type
5405   (c-name "g_network_address_get_type")
5406   (return-type "GType")
5409 (define-function g_network_address_new
5410   (c-name "g_network_address_new")
5411   (is-constructor-of "GNetworkAddress")
5412   (return-type "GSocketConnectable*")
5413   (parameters
5414     '("const-gchar*" "hostname")
5415     '("guint16" "port")
5416   )
5419 (define-function g_network_address_parse
5420   (c-name "g_network_address_parse")
5421   (return-type "GSocketConnectable*")
5422   (parameters
5423     '("const-gchar*" "host_and_port")
5424     '("guint16" "default_port")
5425     '("GError**" "error")
5426   )
5429 (define-method get_hostname
5430   (of-object "GNetworkAddress")
5431   (c-name "g_network_address_get_hostname")
5432   (return-type "const-gchar*")
5435 (define-method get_port
5436   (of-object "GNetworkAddress")
5437   (c-name "g_network_address_get_port")
5438   (return-type "guint16")
5443 ;; From gnetworkservice.h
5445 (define-function g_network_service_get_type
5446   (c-name "g_network_service_get_type")
5447   (return-type "GType")
5450 (define-function g_network_service_new
5451   (c-name "g_network_service_new")
5452   (is-constructor-of "GNetworkService")
5453   (return-type "GSocketConnectable*")
5454   (parameters
5455     '("const-gchar*" "service")
5456     '("const-gchar*" "protocol")
5457     '("const-gchar*" "domain")
5458   )
5461 (define-method get_service
5462   (of-object "GNetworkService")
5463   (c-name "g_network_service_get_service")
5464   (return-type "const-gchar*")
5467 (define-method get_protocol
5468   (of-object "GNetworkService")
5469   (c-name "g_network_service_get_protocol")
5470   (return-type "const-gchar*")
5473 (define-method get_domain
5474   (of-object "GNetworkService")
5475   (c-name "g_network_service_get_domain")
5476   (return-type "const-gchar*")
5481 ;; From goutputstream.h
5483 (define-function output_stream_get_type
5484   (c-name "g_output_stream_get_type")
5485   (return-type "GType")
5489 ;; wrapped in goutputstream.override
5491 ;; Note: the following two methods are renamed for consistency with
5492 ;; Python file objects' write().  I.e. g_output_stream_write_all() is
5493 ;; more like Python file.write(), so it is renamed write().  Since now
5494 ;; there is a name clash, g_output_stream_write() is renamed
5495 ;; write_part().
5496 (define-method write_part
5497   (of-object "GOutputStream")
5498   (docstring
5499    "STREAM.write_part(buffer, [cancellable]) -> int\n"
5500    "\n"
5501    "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5502    "successfully written. This method is allowed to stop at any time after\n"
5503    "writing at least 1 byte. Therefore, to reliably write the whole buffer,\n"
5504    "you need to use a loop. See also gio.OutputStream.write for easier to\n"
5505    "use (though less efficient) method.\n"
5506    "\n"
5507    "Note: this method roughly corresponds to C GIO g_output_stream_write."
5508   )
5509   (c-name "g_output_stream_write")
5510   (return-type "gssize")
5511   (parameters
5512     '("const-void*" "buffer")
5513     '("gsize" "count")
5514     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5515     '("GError**" "error")
5516   )
5520 ;; wrapped in goutputstream.override
5522 ;; See comments before the previous method definition.
5523 (define-method write
5524   (of-object "GOutputStream")
5525    "STREAM.write(buffer, [cancellable]) -> int\n"
5526    "\n"
5527    "Write the bytes in 'buffer' to the stream. Return the number of bytes\n"
5528    "successfully written. This method will stop only after writing the whole\n"
5529    "buffer or triggering an I/O error. See also gio.OutputStream.write_part\n"
5530    "for more efficient, but more cumbersome to use method.\n"
5531    "\n"
5532    "Note: this method roughly corresponds to C GIO g_output_stream_write_all.\n"
5533    "It was renamed for consistency with Python standard file.write."
5534   (c-name "g_output_stream_write_all")
5535   (return-type "gboolean")
5536   (parameters
5537     '("const-void*" "buffer")
5538     '("gsize" "count")
5539     '("gsize*" "bytes_written")
5540     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5541     '("GError**" "error")
5542   )
5545 (define-method splice
5546   (of-object "GOutputStream")
5547   (c-name "g_output_stream_splice")
5548   (return-type "gssize")
5549   (parameters
5550     '("GInputStream*" "source")
5551     '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5552     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5553     '("GError**" "error")
5554   )
5557 (define-method flush
5558   (of-object "GOutputStream")
5559   (c-name "g_output_stream_flush")
5560   (return-type "gboolean")
5561   (parameters
5562     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5563     '("GError**" "error")
5564   )
5567 (define-method close
5568   (of-object "GOutputStream")
5569   (c-name "g_output_stream_close")
5570   (return-type "gboolean")
5571   (parameters
5572     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5573     '("GError**" "error")
5574   )
5578 ;; wrapped in goutputstream.override
5580 (define-method write_async
5581   (of-object "GOutputStream")
5582   (docstring
5583 "S.write_async(buffer, callback [,io_priority] [,cancellable] [,user_data])\n"
5584 "\n"
5585 "Request an asynchronous write of count bytes from buffer into the stream.\n"
5586 "When the operation is finished callback will be called. You can then call\n"
5587 "gio.OutputStream.write_finish() to get the result of the operation.\n"
5588 "On success, the number of bytes written will be passed to the callback.\n"
5589 "It is not an error if this is not the same as the requested size, as it can\n"
5590 "happen e.g. on a partial I/O error, but generally tries to write as many \n"
5591 "bytes as requested.\n"
5592 "For the synchronous, blocking version of this function, see\n"
5593 "gio.OutputStream.write().\n")
5594   (c-name "g_output_stream_write_async")
5595   (return-type "none")
5596   (parameters
5597     '("const-void*" "buffer")
5598     '("gsize" "count")
5599     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5600     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5601     '("GAsyncReadyCallback" "callback")
5602     '("gpointer" "user_data")
5603   )
5606 (define-method write_finish
5607   (of-object "GOutputStream")
5608   (c-name "g_output_stream_write_finish")
5609   (return-type "gssize")
5610   (parameters
5611     '("GAsyncResult*" "result")
5612     '("GError**" "error")
5613   )
5616 (define-method splice_async
5617   (of-object "GOutputStream")
5618   (c-name "g_output_stream_splice_async")
5619   (return-type "none")
5620   (parameters
5621     '("GInputStream*" "source")
5622     '("GOutputStreamSpliceFlags" "flags" (default "G_OUTPUT_STREAM_SPLICE_NONE"))
5623     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5624     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5625     '("GAsyncReadyCallback" "callback")
5626     '("gpointer" "user_data")
5627   )
5630 (define-method splice_finish
5631   (of-object "GOutputStream")
5632   (c-name "g_output_stream_splice_finish")
5633   (return-type "gssize")
5634   (parameters
5635     '("GAsyncResult*" "result")
5636     '("GError**" "error")
5637   )
5640 (define-method flush_async
5641   (of-object "GOutputStream")
5642   (c-name "g_output_stream_flush_async")
5643   (return-type "none")
5644   (parameters
5645     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5646     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5647     '("GAsyncReadyCallback" "callback")
5648     '("gpointer" "user_data")
5649   )
5652 (define-method flush_finish
5653   (of-object "GOutputStream")
5654   (c-name "g_output_stream_flush_finish")
5655   (return-type "gboolean")
5656   (parameters
5657     '("GAsyncResult*" "result")
5658     '("GError**" "error")
5659   )
5663 ;; wrapped in goutputstream.override
5665 (define-method close_async
5666   (of-object "GOutputStream")
5667   (c-name "g_output_stream_close_async")
5668   (return-type "none")
5669   (parameters
5670     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
5671     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5672     '("GAsyncReadyCallback" "callback")
5673     '("gpointer" "user_data")
5674   )
5677 (define-method close_finish
5678   (of-object "GOutputStream")
5679   (c-name "g_output_stream_close_finish")
5680   (return-type "gboolean")
5681   (parameters
5682     '("GAsyncResult*" "result")
5683     '("GError**" "error")
5684   )
5687 (define-method is_closed
5688   (of-object "GOutputStream")
5689   (c-name "g_output_stream_is_closed")
5690   (return-type "gboolean")
5693 (define-method has_pending
5694   (of-object "GOutputStream")
5695   (c-name "g_output_stream_has_pending")
5696   (return-type "gboolean")
5699 (define-method set_pending
5700   (of-object "GOutputStream")
5701   (c-name "g_output_stream_set_pending")
5702   (return-type "gboolean")
5703   (parameters
5704     '("GError**" "error")
5705   )
5708 (define-method clear_pending
5709   (of-object "GOutputStream")
5710   (c-name "g_output_stream_clear_pending")
5711   (return-type "none")
5716 ;; From gresolver.h
5718 (define-function g_resolver_get_type
5719   (c-name "g_resolver_get_type")
5720   (return-type "GType")
5723 (define-function g_resolver_get_default
5724   (c-name "g_resolver_get_default")
5725   (return-type "GResolver*")
5728 (define-method set_default
5729   (of-object "GResolver")
5730   (c-name "g_resolver_set_default")
5731   (return-type "none")
5734 (define-method lookup_by_name
5735   (of-object "GResolver")
5736   (c-name "g_resolver_lookup_by_name")
5737   (return-type "GList*")
5738   (parameters
5739     '("const-gchar*" "hostname")
5740     '("GCancellable*" "cancellable")
5741     '("GError**" "error")
5742   )
5745 (define-method lookup_by_name_async
5746   (of-object "GResolver")
5747   (c-name "g_resolver_lookup_by_name_async")
5748   (return-type "none")
5749   (parameters
5750     '("const-gchar*" "hostname")
5751     '("GCancellable*" "cancellable")
5752     '("GAsyncReadyCallback" "callback")
5753     '("gpointer" "user_data")
5754   )
5757 (define-method lookup_by_name_finish
5758   (of-object "GResolver")
5759   (c-name "g_resolver_lookup_by_name_finish")
5760   (return-type "GList*")
5761   (parameters
5762     '("GAsyncResult*" "result")
5763     '("GError**" "error")
5764   )
5767 (define-function g_resolver_free_addresses
5768   (c-name "g_resolver_free_addresses")
5769   (return-type "none")
5770   (parameters
5771     '("GList*" "addresses")
5772   )
5775 (define-method lookup_by_address
5776   (of-object "GResolver")
5777   (c-name "g_resolver_lookup_by_address")
5778   (return-type "gchar*")
5779   (parameters
5780     '("GInetAddress*" "address")
5781     '("GCancellable*" "cancellable")
5782     '("GError**" "error")
5783   )
5786 (define-method lookup_by_address_async
5787   (of-object "GResolver")
5788   (c-name "g_resolver_lookup_by_address_async")
5789   (return-type "none")
5790   (parameters
5791     '("GInetAddress*" "address")
5792     '("GCancellable*" "cancellable")
5793     '("GAsyncReadyCallback" "callback")
5794     '("gpointer" "user_data")
5795   )
5798 (define-method lookup_by_address_finish
5799   (of-object "GResolver")
5800   (c-name "g_resolver_lookup_by_address_finish")
5801   (return-type "gchar*")
5802   (parameters
5803     '("GAsyncResult*" "result")
5804     '("GError**" "error")
5805   )
5808 (define-method lookup_service
5809   (of-object "GResolver")
5810   (c-name "g_resolver_lookup_service")
5811   (return-type "GList*")
5812   (parameters
5813     '("const-gchar*" "service")
5814     '("const-gchar*" "protocol")
5815     '("const-gchar*" "domain")
5816     '("GCancellable*" "cancellable")
5817     '("GError**" "error")
5818   )
5821 (define-method lookup_service_async
5822   (of-object "GResolver")
5823   (c-name "g_resolver_lookup_service_async")
5824   (return-type "none")
5825   (parameters
5826     '("const-gchar*" "service")
5827     '("const-gchar*" "protocol")
5828     '("const-gchar*" "domain")
5829     '("GCancellable*" "cancellable")
5830     '("GAsyncReadyCallback" "callback")
5831     '("gpointer" "user_data")
5832   )
5835 (define-method lookup_service_finish
5836   (of-object "GResolver")
5837   (c-name "g_resolver_lookup_service_finish")
5838   (return-type "GList*")
5839   (parameters
5840     '("GAsyncResult*" "result")
5841     '("GError**" "error")
5842   )
5845 (define-function g_resolver_free_targets
5846   (c-name "g_resolver_free_targets")
5847   (return-type "none")
5848   (parameters
5849     '("GList*" "targets")
5850   )
5853 (define-function g_resolver_error_quark
5854   (c-name "g_resolver_error_quark")
5855   (return-type "GQuark")
5860 ;; From gseekable.h
5862 (define-function seekable_get_type
5863   (c-name "g_seekable_get_type")
5864   (return-type "GType")
5867 (define-method tell
5868   (of-object "GSeekable")
5869   (c-name "g_seekable_tell")
5870   (return-type "goffset")
5873 (define-method can_seek
5874   (of-object "GSeekable")
5875   (c-name "g_seekable_can_seek")
5876   (return-type "gboolean")
5879 (define-method seek
5880   (of-object "GSeekable")
5881   (c-name "g_seekable_seek")
5882   (return-type "gboolean")
5883   (parameters
5884     '("goffset" "offset")
5885     '("GSeekType" "type" (default "G_SEEK_SET"))
5886     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5887     '("GError**" "error")
5888   )
5891 (define-method can_truncate
5892   (of-object "GSeekable")
5893   (c-name "g_seekable_can_truncate")
5894   (return-type "gboolean")
5897 (define-method truncate
5898   (of-object "GSeekable")
5899   (c-name "g_seekable_truncate")
5900   (return-type "gboolean")
5901   (parameters
5902     '("goffset" "offset")
5903     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
5904     '("GError**" "error")
5905   )
5910 ;; From gsimpleasyncresult.h
5912 (define-function simple_async_result_get_type
5913   (c-name "g_simple_async_result_get_type")
5914   (return-type "GType")
5917 (define-function simple_async_result_new
5918   (c-name "g_simple_async_result_new")
5919   (is-constructor-of "GSimpleAsyncResult")
5920   (return-type "GSimpleAsyncResult*")
5921   (parameters
5922     '("GObject*" "source_object")
5923     '("GAsyncReadyCallback" "callback")
5924     '("gpointer" "user_data")
5925     '("gpointer" "source_tag")
5926   )
5929 (define-function simple_async_result_new_error
5930   (c-name "g_simple_async_result_new_error")
5931   (return-type "GSimpleAsyncResult*")
5932   (parameters
5933     '("GObject*" "source_object")
5934     '("GAsyncReadyCallback" "callback")
5935     '("gpointer" "user_data")
5936     '("GQuark" "domain")
5937     '("gint" "code")
5938     '("const-char*" "format")
5939   )
5940   (varargs #t)
5943 (define-function simple_async_result_new_from_error
5944   (c-name "g_simple_async_result_new_from_error")
5945   (return-type "GSimpleAsyncResult*")
5946   (parameters
5947     '("GObject*" "source_object")
5948     '("GAsyncReadyCallback" "callback")
5949     '("gpointer" "user_data")
5950     '("GError*" "error")
5951   )
5954 (define-method set_op_res_gpointer
5955   (of-object "GSimpleAsyncResult")
5956   (c-name "g_simple_async_result_set_op_res_gpointer")
5957   (return-type "none")
5958   (parameters
5959     '("gpointer" "op_res")
5960     '("GDestroyNotify" "destroy_op_res")
5961   )
5964 (define-method get_op_res_gpointer
5965   (of-object "GSimpleAsyncResult")
5966   (c-name "g_simple_async_result_get_op_res_gpointer")
5967   (return-type "gpointer")
5970 (define-method set_op_res_gssize
5971   (of-object "GSimpleAsyncResult")
5972   (c-name "g_simple_async_result_set_op_res_gssize")
5973   (return-type "none")
5974   (parameters
5975     '("gssize" "op_res")
5976   )
5979 (define-method get_op_res_gssize
5980   (of-object "GSimpleAsyncResult")
5981   (c-name "g_simple_async_result_get_op_res_gssize")
5982   (return-type "gssize")
5985 (define-method set_op_res_gboolean
5986   (of-object "GSimpleAsyncResult")
5987   (c-name "g_simple_async_result_set_op_res_gboolean")
5988   (return-type "none")
5989   (parameters
5990     '("gboolean" "op_res")
5991   )
5994 (define-method get_op_res_gboolean
5995   (of-object "GSimpleAsyncResult")
5996   (c-name "g_simple_async_result_get_op_res_gboolean")
5997   (return-type "gboolean")
6000 (define-method get_source_tag
6001   (of-object "GSimpleAsyncResult")
6002   (c-name "g_simple_async_result_get_source_tag")
6003   (return-type "gpointer")
6006 (define-method set_handle_cancellation
6007   (of-object "GSimpleAsyncResult")
6008   (c-name "g_simple_async_result_set_handle_cancellation")
6009   (return-type "none")
6010   (parameters
6011     '("gboolean" "handle_cancellation")
6012   )
6015 (define-method complete
6016   (of-object "GSimpleAsyncResult")
6017   (c-name "g_simple_async_result_complete")
6018   (return-type "none")
6021 (define-method complete_in_idle
6022   (of-object "GSimpleAsyncResult")
6023   (c-name "g_simple_async_result_complete_in_idle")
6024   (return-type "none")
6027 (define-method run_in_thread
6028   (of-object "GSimpleAsyncResult")
6029   (c-name "g_simple_async_result_run_in_thread")
6030   (return-type "none")
6031   (parameters
6032     '("GSimpleAsyncThreadFunc" "func")
6033     '("int" "io_priority" (default "G_PRIORITY_DEFAULT"))
6034     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
6035   )
6038 (define-method set_from_error
6039   (of-object "GSimpleAsyncResult")
6040   (c-name "g_simple_async_result_set_from_error")
6041   (return-type "none")
6042   (parameters
6043     '("GError*" "error")
6044   )
6047 (define-method propagate_error
6048   (of-object "GSimpleAsyncResult")
6049   (c-name "g_simple_async_result_propagate_error")
6050   (return-type "gboolean")
6051   (parameters
6052     '("GError**" "dest")
6053   )
6056 (define-method set_error
6057   (of-object "GSimpleAsyncResult")
6058   (c-name "g_simple_async_result_set_error")
6059   (return-type "none")
6060   (parameters
6061     '("GQuark" "domain")
6062     '("gint" "code")
6063     '("const-char*" "format")
6064   )
6065   (varargs #t)
6068 (define-method set_error_va
6069   (of-object "GSimpleAsyncResult")
6070   (c-name "g_simple_async_result_set_error_va")
6071   (return-type "none")
6072   (parameters
6073     '("GQuark" "domain")
6074     '("gint" "code")
6075     '("const-char*" "format")
6076     '("va_list" "args")
6077   )
6080 (define-function simple_async_report_error_in_idle
6081   (c-name "g_simple_async_report_error_in_idle")
6082   (return-type "none")
6083   (parameters
6084     '("GObject*" "object")
6085     '("GAsyncReadyCallback" "callback")
6086     '("gpointer" "user_data")
6087     '("GQuark" "domain")
6088     '("gint" "code")
6089     '("const-char*" "format")
6090   )
6091   (varargs #t)
6094 (define-function simple_async_report_gerror_in_idle
6095   (c-name "g_simple_async_report_gerror_in_idle")
6096   (return-type "none")
6097   (parameters
6098     '("GObject*" "object")
6099     '("GAsyncReadyCallback" "callback")
6100     '("gpointer" "user_data")
6101     '("GError*" "error")
6102   )
6107 ;; From gsocketaddressenumerator.h
6109 (define-function g_socket_address_enumerator_get_type
6110   (c-name "g_socket_address_enumerator_get_type")
6111   (return-type "GType")
6114 (define-method next
6115   (of-object "GSocketAddressEnumerator")
6116   (c-name "g_socket_address_enumerator_next")
6117   (return-type "GSocketAddress*")
6118   (parameters
6119     '("GCancellable*" "cancellable")
6120     '("GError**" "error")
6121   )
6124 (define-method next_async
6125   (of-object "GSocketAddressEnumerator")
6126   (c-name "g_socket_address_enumerator_next_async")
6127   (return-type "none")
6128   (parameters
6129     '("GCancellable*" "cancellable")
6130     '("GAsyncReadyCallback" "callback")
6131     '("gpointer" "user_data")
6132   )
6135 (define-method next_finish
6136   (of-object "GSocketAddressEnumerator")
6137   (c-name "g_socket_address_enumerator_next_finish")
6138   (return-type "GSocketAddress*")
6139   (parameters
6140     '("GAsyncResult*" "result")
6141     '("GError**" "error")
6142   )
6147 ;; From gsocketaddress.h
6149 (define-function g_socket_address_get_type
6150   (c-name "g_socket_address_get_type")
6151   (return-type "GType")
6154 (define-method get_family
6155   (of-object "GSocketAddress")
6156   (c-name "g_socket_address_get_family")
6157   (return-type "GSocketFamily")
6160 (define-function g_socket_address_new_from_native
6161   (c-name "g_socket_address_new_from_native")
6162   (return-type "GSocketAddress*")
6163   (parameters
6164     '("gpointer" "native")
6165     '("gsize" "len")
6166   )
6169 (define-method to_native
6170   (of-object "GSocketAddress")
6171   (c-name "g_socket_address_to_native")
6172   (return-type "gboolean")
6173   (parameters
6174     '("gpointer" "dest")
6175     '("gsize" "destlen")
6176     '("GError**" "error")
6177   )
6180 (define-method get_native_size
6181   (of-object "GSocketAddress")
6182   (c-name "g_socket_address_get_native_size")
6183   (return-type "gssize")
6188 ;; From gsocketclient.h
6190 (define-function g_socket_client_get_type
6191   (c-name "g_socket_client_get_type")
6192   (return-type "GType")
6195 (define-function g_socket_client_new
6196   (c-name "g_socket_client_new")
6197   (is-constructor-of "GSocketClient")
6198   (return-type "GSocketClient*")
6201 (define-method get_family
6202   (of-object "GSocketClient")
6203   (c-name "g_socket_client_get_family")
6204   (return-type "GSocketFamily")
6207 (define-method set_family
6208   (of-object "GSocketClient")
6209   (c-name "g_socket_client_set_family")
6210   (return-type "none")
6211   (parameters
6212     '("GSocketFamily" "family")
6213   )
6216 (define-method get_socket_type
6217   (of-object "GSocketClient")
6218   (c-name "g_socket_client_get_socket_type")
6219   (return-type "GSocketType")
6222 (define-method set_socket_type
6223   (of-object "GSocketClient")
6224   (c-name "g_socket_client_set_socket_type")
6225   (return-type "none")
6226   (parameters
6227     '("GSocketType" "type")
6228   )
6231 (define-method get_protocol
6232   (of-object "GSocketClient")
6233   (c-name "g_socket_client_get_protocol")
6234   (return-type "GSocketProtocol")
6237 (define-method set_protocol
6238   (of-object "GSocketClient")
6239   (c-name "g_socket_client_set_protocol")
6240   (return-type "none")
6241   (parameters
6242     '("GSocketProtocol" "protocol")
6243   )
6246 (define-method get_local_address
6247   (of-object "GSocketClient")
6248   (c-name "g_socket_client_get_local_address")
6249   (return-type "GSocketAddress*")
6252 (define-method set_local_address
6253   (of-object "GSocketClient")
6254   (c-name "g_socket_client_set_local_address")
6255   (return-type "none")
6256   (parameters
6257     '("GSocketAddress*" "address")
6258   )
6261 (define-method connect
6262   (of-object "GSocketClient")
6263   (c-name "g_socket_client_connect")
6264   (return-type "GSocketConnection*")
6265   (parameters
6266     '("GSocketConnectable*" "connectable")
6267     '("GCancellable*" "cancellable")
6268     '("GError**" "error")
6269   )
6272 (define-method connect_to_host
6273   (of-object "GSocketClient")
6274   (c-name "g_socket_client_connect_to_host")
6275   (return-type "GSocketConnection*")
6276   (parameters
6277     '("const-gchar*" "host_and_port")
6278     '("guint16" "default_port")
6279     '("GCancellable*" "cancellable")
6280     '("GError**" "error")
6281   )
6284 (define-method connect_to_service
6285   (of-object "GSocketClient")
6286   (c-name "g_socket_client_connect_to_service")
6287   (return-type "GSocketConnection*")
6288   (parameters
6289     '("const-gchar*" "domain")
6290     '("const-gchar*" "service")
6291     '("GCancellable*" "cancellable")
6292     '("GError**" "error")
6293   )
6296 (define-method connect_async
6297   (of-object "GSocketClient")
6298   (c-name "g_socket_client_connect_async")
6299   (return-type "none")
6300   (parameters
6301     '("GSocketConnectable*" "connectable")
6302     '("GCancellable*" "cancellable")
6303     '("GAsyncReadyCallback" "callback")
6304     '("gpointer" "user_data")
6305   )
6308 (define-method connect_finish
6309   (of-object "GSocketClient")
6310   (c-name "g_socket_client_connect_finish")
6311   (return-type "GSocketConnection*")
6312   (parameters
6313     '("GAsyncResult*" "result")
6314     '("GError**" "error")
6315   )
6318 (define-method connect_to_host_async
6319   (of-object "GSocketClient")
6320   (c-name "g_socket_client_connect_to_host_async")
6321   (return-type "none")
6322   (parameters
6323     '("const-gchar*" "host_and_port")
6324     '("guint16" "default_port")
6325     '("GCancellable*" "cancellable")
6326     '("GAsyncReadyCallback" "callback")
6327     '("gpointer" "user_data")
6328   )
6331 (define-method connect_to_host_finish
6332   (of-object "GSocketClient")
6333   (c-name "g_socket_client_connect_to_host_finish")
6334   (return-type "GSocketConnection*")
6335   (parameters
6336     '("GAsyncResult*" "result")
6337     '("GError**" "error")
6338   )
6341 (define-method connect_to_service_async
6342   (of-object "GSocketClient")
6343   (c-name "g_socket_client_connect_to_service_async")
6344   (return-type "none")
6345   (parameters
6346     '("const-gchar*" "domain")
6347     '("const-gchar*" "service")
6348     '("GCancellable*" "cancellable")
6349     '("GAsyncReadyCallback" "callback")
6350     '("gpointer" "user_data")
6351   )
6354 (define-method connect_to_service_finish
6355   (of-object "GSocketClient")
6356   (c-name "g_socket_client_connect_to_service_finish")
6357   (return-type "GSocketConnection*")
6358   (parameters
6359     '("GAsyncResult*" "result")
6360     '("GError**" "error")
6361   )
6366 ;; From gsocketconnectable.h
6368 (define-function g_socket_connectable_get_type
6369   (c-name "g_socket_connectable_get_type")
6370   (return-type "GType")
6373 (define-method enumerate
6374   (of-object "GSocketConnectable")
6375   (c-name "g_socket_connectable_enumerate")
6376   (return-type "GSocketAddressEnumerator*")
6381 ;; From gsocketconnection.h
6383 (define-function g_socket_connection_get_type
6384   (c-name "g_socket_connection_get_type")
6385   (return-type "GType")
6388 (define-method get_socket
6389   (of-object "GSocketConnection")
6390   (c-name "g_socket_connection_get_socket")
6391   (return-type "GSocket*")
6394 (define-method get_local_address
6395   (of-object "GSocketConnection")
6396   (c-name "g_socket_connection_get_local_address")
6397   (return-type "GSocketAddress*")
6398   (parameters
6399     '("GError**" "error")
6400   )
6403 (define-method get_remote_address
6404   (of-object "GSocketConnection")
6405   (c-name "g_socket_connection_get_remote_address")
6406   (return-type "GSocketAddress*")
6407   (parameters
6408     '("GError**" "error")
6409   )
6412 (define-function g_socket_connection_factory_register_type
6413   (c-name "g_socket_connection_factory_register_type")
6414   (return-type "none")
6415   (parameters
6416     '("GType" "g_type")
6417     '("GSocketFamily" "family")
6418     '("GSocketType" "type")
6419     '("gint" "protocol")
6420   )
6423 (define-function g_socket_connection_factory_lookup_type
6424   (c-name "g_socket_connection_factory_lookup_type")
6425   (return-type "GType")
6426   (parameters
6427     '("GSocketFamily" "family")
6428     '("GSocketType" "type")
6429     '("gint" "protocol_id")
6430   )
6433 (define-method connection_factory_create_connection
6434   (of-object "GSocket")
6435   (c-name "g_socket_connection_factory_create_connection")
6436   (return-type "GSocketConnection*")
6441 ;; From gsocketcontrolmessage.h
6443 (define-function g_socket_control_message_get_type
6444   (c-name "g_socket_control_message_get_type")
6445   (return-type "GType")
6448 (define-method get_size
6449   (of-object "GSocketControlMessage")
6450   (c-name "g_socket_control_message_get_size")
6451   (return-type "gsize")
6454 (define-method get_level
6455   (of-object "GSocketControlMessage")
6456   (c-name "g_socket_control_message_get_level")
6457   (return-type "int")
6460 (define-method get_msg_type
6461   (of-object "GSocketControlMessage")
6462   (c-name "g_socket_control_message_get_msg_type")
6463   (return-type "int")
6466 (define-method serialize
6467   (of-object "GSocketControlMessage")
6468   (c-name "g_socket_control_message_serialize")
6469   (return-type "none")
6470   (parameters
6471     '("gpointer" "data")
6472   )
6475 (define-function g_socket_control_message_deserialize
6476   (c-name "g_socket_control_message_deserialize")
6477   (return-type "GSocketControlMessage*")
6478   (parameters
6479     '("int" "level")
6480     '("int" "type")
6481     '("gsize" "size")
6482     '("gpointer" "data")
6483   )
6488 ;; From gsocket.h
6490 (define-function g_socket_get_type
6491   (c-name "g_socket_get_type")
6492   (return-type "GType")
6495 (define-function g_socket_new
6496   (c-name "g_socket_new")
6497   (is-constructor-of "GSocket")
6498   (return-type "GSocket*")
6499   (parameters
6500     '("GSocketFamily" "family")
6501     '("GSocketType" "type")
6502     '("GSocketProtocol" "protocol")
6503     '("GError**" "error")
6504   )
6507 (define-function g_socket_new_from_fd
6508   (c-name "g_socket_new_from_fd")
6509   (return-type "GSocket*")
6510   (parameters
6511     '("gint" "fd")
6512     '("GError**" "error")
6513   )
6516 (define-method get_fd
6517   (of-object "GSocket")
6518   (c-name "g_socket_get_fd")
6519   (return-type "int")
6522 (define-method get_family
6523   (of-object "GSocket")
6524   (c-name "g_socket_get_family")
6525   (return-type "GSocketFamily")
6528 (define-method get_socket_type
6529   (of-object "GSocket")
6530   (c-name "g_socket_get_socket_type")
6531   (return-type "GSocketType")
6534 (define-method get_protocol
6535   (of-object "GSocket")
6536   (c-name "g_socket_get_protocol")
6537   (return-type "GSocketProtocol")
6540 (define-method get_local_address
6541   (of-object "GSocket")
6542   (c-name "g_socket_get_local_address")
6543   (return-type "GSocketAddress*")
6544   (parameters
6545     '("GError**" "error")
6546   )
6549 (define-method get_remote_address
6550   (of-object "GSocket")
6551   (c-name "g_socket_get_remote_address")
6552   (return-type "GSocketAddress*")
6553   (parameters
6554     '("GError**" "error")
6555   )
6558 (define-method set_blocking
6559   (of-object "GSocket")
6560   (c-name "g_socket_set_blocking")
6561   (return-type "none")
6562   (parameters
6563     '("gboolean" "blocking")
6564   )
6567 (define-method get_blocking
6568   (of-object "GSocket")
6569   (c-name "g_socket_get_blocking")
6570   (return-type "gboolean")
6573 (define-method set_keepalive
6574   (of-object "GSocket")
6575   (c-name "g_socket_set_keepalive")
6576   (return-type "none")
6577   (parameters
6578     '("gboolean" "keepalive")
6579   )
6582 (define-method get_keepalive
6583   (of-object "GSocket")
6584   (c-name "g_socket_get_keepalive")
6585   (return-type "gboolean")
6588 (define-method get_listen_backlog
6589   (of-object "GSocket")
6590   (c-name "g_socket_get_listen_backlog")
6591   (return-type "gint")
6594 (define-method set_listen_backlog
6595   (of-object "GSocket")
6596   (c-name "g_socket_set_listen_backlog")
6597   (return-type "none")
6598   (parameters
6599     '("gint" "backlog")
6600   )
6603 (define-method is_connected
6604   (of-object "GSocket")
6605   (c-name "g_socket_is_connected")
6606   (return-type "gboolean")
6609 (define-method bind
6610   (of-object "GSocket")
6611   (c-name "g_socket_bind")
6612   (return-type "gboolean")
6613   (parameters
6614     '("GSocketAddress*" "address")
6615     '("gboolean" "allow_reuse")
6616     '("GError**" "error")
6617   )
6620 (define-method connect
6621   (of-object "GSocket")
6622   (c-name "g_socket_connect")
6623   (return-type "gboolean")
6624   (parameters
6625     '("GSocketAddress*" "address")
6626     '("GCancellable*" "cancellable")
6627     '("GError**" "error")
6628   )
6631 (define-method check_connect_result
6632   (of-object "GSocket")
6633   (c-name "g_socket_check_connect_result")
6634   (return-type "gboolean")
6635   (parameters
6636     '("GError**" "error")
6637   )
6640 (define-method condition_check
6641   (of-object "GSocket")
6642   (c-name "g_socket_condition_check")
6643   (return-type "GIOCondition")
6644   (parameters
6645     '("GIOCondition" "condition")
6646   )
6649 (define-method condition_wait
6650   (of-object "GSocket")
6651   (c-name "g_socket_condition_wait")
6652   (return-type "gboolean")
6653   (parameters
6654     '("GIOCondition" "condition")
6655     '("GCancellable*" "cancellable")
6656     '("GError**" "error")
6657   )
6660 (define-method accept
6661   (of-object "GSocket")
6662   (c-name "g_socket_accept")
6663   (return-type "GSocket*")
6664   (parameters
6665     '("GCancellable*" "cancellable")
6666     '("GError**" "error")
6667   )
6670 (define-method listen
6671   (of-object "GSocket")
6672   (c-name "g_socket_listen")
6673   (return-type "gboolean")
6674   (parameters
6675     '("GError**" "error")
6676   )
6679 (define-method receive
6680   (of-object "GSocket")
6681   (c-name "g_socket_receive")
6682   (return-type "gssize")
6683   (parameters
6684     '("gchar*" "buffer")
6685     '("gsize" "size")
6686     '("GCancellable*" "cancellable")
6687     '("GError**" "error")
6688   )
6691 (define-method receive_from
6692   (of-object "GSocket")
6693   (c-name "g_socket_receive_from")
6694   (return-type "gssize")
6695   (parameters
6696     '("GSocketAddress**" "address")
6697     '("gchar*" "buffer")
6698     '("gsize" "size")
6699     '("GCancellable*" "cancellable")
6700     '("GError**" "error")
6701   )
6704 (define-method send
6705   (of-object "GSocket")
6706   (c-name "g_socket_send")
6707   (return-type "gssize")
6708   (parameters
6709     '("const-gchar*" "buffer")
6710     '("gsize" "size")
6711     '("GCancellable*" "cancellable")
6712     '("GError**" "error")
6713   )
6716 (define-method send_to
6717   (of-object "GSocket")
6718   (c-name "g_socket_send_to")
6719   (return-type "gssize")
6720   (parameters
6721     '("GSocketAddress*" "address")
6722     '("const-gchar*" "buffer")
6723     '("gsize" "size")
6724     '("GCancellable*" "cancellable")
6725     '("GError**" "error")
6726   )
6729 (define-method receive_message
6730   (of-object "GSocket")
6731   (c-name "g_socket_receive_message")
6732   (return-type "gssize")
6733   (parameters
6734     '("GSocketAddress**" "address")
6735     '("GInputVector*" "vectors")
6736     '("gint" "num_vectors")
6737     '("GSocketControlMessage***" "messages")
6738     '("gint*" "num_messages")
6739     '("gint*" "flags")
6740     '("GCancellable*" "cancellable")
6741     '("GError**" "error")
6742   )
6745 (define-method send_message
6746   (of-object "GSocket")
6747   (c-name "g_socket_send_message")
6748   (return-type "gssize")
6749   (parameters
6750     '("GSocketAddress*" "address")
6751     '("GOutputVector*" "vectors")
6752     '("gint" "num_vectors")
6753     '("GSocketControlMessage**" "messages")
6754     '("gint" "num_messages")
6755     '("gint" "flags")
6756     '("GCancellable*" "cancellable")
6757     '("GError**" "error")
6758   )
6761 (define-method close
6762   (of-object "GSocket")
6763   (c-name "g_socket_close")
6764   (return-type "gboolean")
6765   (parameters
6766     '("GError**" "error")
6767   )
6770 (define-method shutdown
6771   (of-object "GSocket")
6772   (c-name "g_socket_shutdown")
6773   (return-type "gboolean")
6774   (parameters
6775     '("gboolean" "shutdown_read")
6776     '("gboolean" "shutdown_write")
6777     '("GError**" "error")
6778   )
6781 (define-method is_closed
6782   (of-object "GSocket")
6783   (c-name "g_socket_is_closed")
6784   (return-type "gboolean")
6787 (define-method create_source
6788   (of-object "GSocket")
6789   (c-name "g_socket_create_source")
6790   (return-type "GSource*")
6791   (parameters
6792     '("GIOCondition" "condition")
6793     '("GCancellable*" "cancellable")
6794   )
6797 (define-method speaks_ipv4
6798   (of-object "GSocket")
6799   (c-name "g_socket_speaks_ipv4")
6800   (return-type "gboolean")
6805 ;; From gsocketlistener.h
6807 (define-function g_socket_listener_get_type
6808   (c-name "g_socket_listener_get_type")
6809   (return-type "GType")
6812 (define-function g_socket_listener_new
6813   (c-name "g_socket_listener_new")
6814   (is-constructor-of "GSocketListener")
6815   (return-type "GSocketListener*")
6818 (define-method set_backlog
6819   (of-object "GSocketListener")
6820   (c-name "g_socket_listener_set_backlog")
6821   (return-type "none")
6822   (parameters
6823     '("int" "listen_backlog")
6824   )
6827 (define-method add_socket
6828   (of-object "GSocketListener")
6829   (c-name "g_socket_listener_add_socket")
6830   (return-type "gboolean")
6831   (parameters
6832     '("GSocket*" "socket")
6833     '("GObject*" "source_object")
6834     '("GError**" "error")
6835   )
6838 (define-method add_address
6839   (of-object "GSocketListener")
6840   (c-name "g_socket_listener_add_address")
6841   (return-type "gboolean")
6842   (parameters
6843     '("GSocketAddress*" "address")
6844     '("GSocketType" "type")
6845     '("GSocketProtocol" "protocol")
6846     '("GObject*" "source_object")
6847     '("GSocketAddress**" "effective_address")
6848     '("GError**" "error")
6849   )
6852 (define-method add_inet_port
6853   (of-object "GSocketListener")
6854   (c-name "g_socket_listener_add_inet_port")
6855   (return-type "gboolean")
6856   (parameters
6857     '("guint16" "port")
6858     '("GObject*" "source_object")
6859     '("GError**" "error")
6860   )
6863 (define-method accept_socket
6864   (of-object "GSocketListener")
6865   (c-name "g_socket_listener_accept_socket")
6866   (return-type "GSocket*")
6867   (parameters
6868     '("GObject**" "source_object")
6869     '("GCancellable*" "cancellable")
6870     '("GError**" "error")
6871   )
6874 (define-method accept_socket_async
6875   (of-object "GSocketListener")
6876   (c-name "g_socket_listener_accept_socket_async")
6877   (return-type "none")
6878   (parameters
6879     '("GCancellable*" "cancellable")
6880     '("GAsyncReadyCallback" "callback")
6881     '("gpointer" "user_data")
6882   )
6885 (define-method accept_socket_finish
6886   (of-object "GSocketListener")
6887   (c-name "g_socket_listener_accept_socket_finish")
6888   (return-type "GSocket*")
6889   (parameters
6890     '("GAsyncResult*" "result")
6891     '("GObject**" "source_object")
6892     '("GError**" "error")
6893   )
6896 (define-method accept
6897   (of-object "GSocketListener")
6898   (c-name "g_socket_listener_accept")
6899   (return-type "GSocketConnection*")
6900   (parameters
6901     '("GObject**" "source_object")
6902     '("GCancellable*" "cancellable")
6903     '("GError**" "error")
6904   )
6907 (define-method accept_async
6908   (of-object "GSocketListener")
6909   (c-name "g_socket_listener_accept_async")
6910   (return-type "none")
6911   (parameters
6912     '("GCancellable*" "cancellable")
6913     '("GAsyncReadyCallback" "callback")
6914     '("gpointer" "user_data")
6915   )
6918 (define-method accept_finish
6919   (of-object "GSocketListener")
6920   (c-name "g_socket_listener_accept_finish")
6921   (return-type "GSocketConnection*")
6922   (parameters
6923     '("GAsyncResult*" "result")
6924     '("GObject**" "source_object")
6925     '("GError**" "error")
6926   )
6929 (define-method close
6930   (of-object "GSocketListener")
6931   (c-name "g_socket_listener_close")
6932   (return-type "none")
6937 ;; From gsocketservice.h
6939 (define-function g_socket_service_get_type
6940   (c-name "g_socket_service_get_type")
6941   (return-type "GType")
6944 (define-function g_socket_service_new
6945   (c-name "g_socket_service_new")
6946   (is-constructor-of "GSocketService")
6947   (return-type "GSocketService*")
6950 (define-method start
6951   (of-object "GSocketService")
6952   (c-name "g_socket_service_start")
6953   (return-type "none")
6956 (define-method stop
6957   (of-object "GSocketService")
6958   (c-name "g_socket_service_stop")
6959   (return-type "none")
6962 (define-method is_active
6963   (of-object "GSocketService")
6964   (c-name "g_socket_service_is_active")
6965   (return-type "gboolean")
6970 ;; From gsrvtarget.h
6972 (define-function g_srv_target_get_type
6973   (c-name "g_srv_target_get_type")
6974   (return-type "GType")
6977 (define-function g_srv_target_new
6978   (c-name "g_srv_target_new")
6979   (is-constructor-of "GSrvTarget")
6980   (return-type "GSrvTarget*")
6981   (parameters
6982     '("const-gchar*" "hostname")
6983     '("guint16" "port")
6984     '("guint16" "priority")
6985     '("guint16" "weight")
6986   )
6989 (define-method copy
6990   (of-object "GSrvTarget")
6991   (c-name "g_srv_target_copy")
6992   (return-type "GSrvTarget*")
6995 (define-method free
6996   (of-object "GSrvTarget")
6997   (c-name "g_srv_target_free")
6998   (return-type "none")
7001 (define-method get_hostname
7002   (of-object "GSrvTarget")
7003   (c-name "g_srv_target_get_hostname")
7004   (return-type "const-gchar*")
7007 (define-method get_port
7008   (of-object "GSrvTarget")
7009   (c-name "g_srv_target_get_port")
7010   (return-type "guint16")
7013 (define-method get_priority
7014   (of-object "GSrvTarget")
7015   (c-name "g_srv_target_get_priority")
7016   (return-type "guint16")
7019 (define-method get_weight
7020   (of-object "GSrvTarget")
7021   (c-name "g_srv_target_get_weight")
7022   (return-type "guint16")
7025 (define-function g_srv_target_list_sort
7026   (c-name "g_srv_target_list_sort")
7027   (return-type "GList*")
7028   (parameters
7029     '("GList*" "targets")
7030   )
7035 ;; From gthemedicon.h
7037 (define-function themed_icon_get_type
7038   (c-name "g_themed_icon_get_type")
7039   (return-type "GType")
7042 (define-function themed_icon_new
7043   (c-name "g_themed_icon_new")
7044   (is-constructor-of "GThemedIcon")
7045   (return-type "GIcon*")
7046   (properties
7047     '("name" (argname "iconname"))
7048   )
7051 (define-function themed_icon_new_with_default_fallbacks
7052   (c-name "g_themed_icon_new_with_default_fallbacks")
7053   (return-type "GIcon*")
7054   (parameters
7055     '("const-char*" "iconname")
7056   )
7059 (define-function themed_icon_new_from_names
7060   (c-name "g_themed_icon_new_from_names")
7061   (return-type "GIcon*")
7062   (parameters
7063     '("char**" "iconnames")
7064     '("int" "len")
7065   )
7068 (define-method prepend_name
7069   (of-object "GThemedIcon")
7070   (c-name "g_themed_icon_prepend_name")
7071   (return-type "none")
7072   (parameters
7073     '("const-char*" "iconname")
7074   )
7078 ;; wrapped in gicon.override
7080 (define-method get_names
7081   (c-name "g_themed_icon_get_names")
7082   (of-object "GThemedIcon")
7083   (return-type "const-gchar*-const*")
7086 (define-method append_name
7087   (c-name "g_themed_icon_append_name")
7088   (of-object "GThemedIcon")
7089   (return-type "none")
7090   (parameters
7091     '("char*" "iconname")
7092   )
7097 ;; From gthreadedsocketservice.h
7099 (define-function g_threaded_socket_service_get_type
7100   (c-name "g_threaded_socket_service_get_type")
7101   (return-type "GType")
7104 (define-function g_threaded_socket_service_new
7105   (c-name "g_threaded_socket_service_new")
7106   (is-constructor-of "GThreadedSocketService")
7107   (return-type "GSocketService*")
7108   (parameters
7109     '("int" "max_threads")
7110   )
7115 ;; From gunixinputstream.h
7117 (define-function unix_input_stream_get_type
7118   (c-name "g_unix_input_stream_get_type")
7119   (return-type "GType")
7122 (define-function unix_input_stream_new
7123   (c-name "g_unix_input_stream_new")
7124   (is-constructor-of "GUnixInputStream")
7125   (return-type "GInputStream*")
7126   (parameters
7127     '("int" "fd")
7128     '("gboolean" "close_fd_at_close")
7129   )
7134 ;; From gvfs.h
7136 (define-function vfs_get_type
7137   (c-name "g_vfs_get_type")
7138   (return-type "GType")
7141 (define-method is_active
7142   (of-object "GVfs")
7143   (c-name "g_vfs_is_active")
7144   (return-type "gboolean")
7147 (define-method get_file_for_path
7148   (of-object "GVfs")
7149   (c-name "g_vfs_get_file_for_path")
7150   (return-type "GFile*")
7151   (caller-owns-return #t)
7152   (parameters
7153     '("const-char*" "path")
7154   )
7157 (define-method get_file_for_uri
7158   (of-object "GVfs")
7159   (c-name "g_vfs_get_file_for_uri")
7160   (return-type "GFile*")
7161   (caller-owns-return #t)
7162   (parameters
7163     '("const-char*" "uri")
7164   )
7167 (define-method parse_name
7168   (of-object "GVfs")
7169   (c-name "g_vfs_parse_name")
7170   (return-type "GFile*")
7171   (caller-owns-return #t)
7172   (parameters
7173     '("const-char*" "parse_name")
7174   )
7177 (define-function vfs_get_default
7178   (c-name "g_vfs_get_default")
7179   (return-type "GVfs*")
7182 (define-function vfs_get_local
7183   (c-name "g_vfs_get_local")
7184   (return-type "GVfs*")
7188 ;; wrapped in gio.override
7190 (define-method get_supported_uri_schemes
7191   (docstring
7192 "VFS.get_supported_uri_schemes() -> [uri, ..]\n"
7193 "Gets a list of URI schemes supported by vfs.")
7194   (of-object "GVfs")
7195   (c-name "g_vfs_get_supported_uri_schemes")
7196   (return-type "const-char*-const*")
7201 ;; From gwin32appinfo.h
7203 (define-function win32_app_info_get_type
7204   (c-name "g_win32_app_info_get_type")
7205   (return-type "GType")
7210 ;; From gvolume.h
7212 (define-function volume_get_type
7213   (c-name "g_volume_get_type")
7214   (return-type "GType")
7217 (define-method get_name
7218   (of-object "GVolume")
7219   (c-name "g_volume_get_name")
7220   (return-type "char*")
7223 (define-method get_icon
7224   (of-object "GVolume")
7225   (c-name "g_volume_get_icon")
7226   (return-type "GIcon*")
7227   (caller-owns-return #t)
7230 (define-method get_uuid
7231   (of-object "GVolume")
7232   (c-name "g_volume_get_uuid")
7233   (return-type "char*")
7236 (define-method get_drive
7237   (of-object "GVolume")
7238   (c-name "g_volume_get_drive")
7239   (return-type "GDrive*")
7240   (caller-owns-return #t)
7243 (define-method get_mount
7244   (of-object "GVolume")
7245   (c-name "g_volume_get_mount")
7246   (return-type "GMount*")
7247   (caller-owns-return #t)
7250 (define-method can_mount
7251   (of-object "GVolume")
7252   (c-name "g_volume_can_mount")
7253   (return-type "gboolean")
7256 (define-method can_eject
7257   (of-object "GVolume")
7258   (c-name "g_volume_can_eject")
7259   (return-type "gboolean")
7262 (define-method should_automount
7263   (of-object "GVolume")
7264   (c-name "g_volume_should_automount")
7265   (return-type "gboolean")
7269 ;; wrapped in gvolume.override
7271 (define-method mount
7272   (of-object "GVolume")
7273   (c-name "g_volume_mount")
7274   (return-type "none")
7275   (parameters
7276     '("GMountOperation*" "mount_operation")
7277     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7278     '("GAsyncReadyCallback" "callback")
7279     '("gpointer" "user_data")
7280   )
7283 (define-method mount_finish
7284   (of-object "GVolume")
7285   (c-name "g_volume_mount_finish")
7286   (return-type "gboolean")
7287   (parameters
7288     '("GAsyncResult*" "result")
7289     '("GError**" "error")
7290   )
7294 ;; wrapped in gvolume.override
7296 (define-method eject
7297   (of-object "GVolume")
7298   (c-name "g_volume_eject")
7299   (return-type "none")
7300   (parameters
7301     '("GMountUnmountFlags" "flags" (default "G_MOUNT_UNMOUNT_NONE"))
7302     '("GCancellable*" "cancellable" (null-ok) (default "NULL"))
7303     '("GAsyncReadyCallback" "callback")
7304     '("gpointer" "user_data")
7305   )
7308 (define-method eject_finish
7309   (of-object "GVolume")
7310   (c-name "g_volume_eject_finish")
7311   (return-type "gboolean")
7312   (parameters
7313     '("GAsyncResult*" "result")
7314     '("GError**" "error")
7315   )
7318 (define-method get_identifier
7319   (of-object "GVolume")
7320   (c-name "g_volume_get_identifier")
7321   (return-type "char*")
7322   (parameters
7323     '("const-char*" "kind")
7324   )
7328 ;; wrapped in gvolume.override
7330 (define-method enumerate_identifiers
7331   (of-object "GVolume")
7332   (c-name "g_volume_enumerate_identifiers")
7333   (return-type "char**")
7336 (define-method get_activation_root
7337   (of-object "GVolume")
7338   (c-name "g_volume_get_activation_root")
7339   (return-type "GFile*")
7342 (define-method eject_with_operation
7343   (of-object "GVolume")
7344   (c-name "g_volume_eject_with_operation")
7345   (return-type "none")
7346   (parameters
7347     '("GMountUnmountFlags" "flags")
7348     '("GMountOperation*" "mount_operation")
7349     '("GCancellable*" "cancellable")
7350     '("GAsyncReadyCallback" "callback")
7351     '("gpointer" "user_data")
7352   )
7355 (define-method eject_with_operation_finish
7356   (of-object "GVolume")
7357   (c-name "g_volume_eject_with_operation_finish")
7358   (return-type "gboolean")
7359   (parameters
7360     '("GAsyncResult*" "result")
7361     '("GError**" "error")
7362   )
7367 ;; From gvolumemonitor.h
7369 (define-function volume_monitor_get_type
7370   (c-name "g_volume_monitor_get_type")
7371   (return-type "GType")
7374 (define-function volume_monitor_get
7375   (c-name "g_volume_monitor_get")
7376   (return-type "GVolumeMonitor*")
7380 ;; wrapped in gvolumemonitor.override
7382 (define-method get_connected_drives
7383   (of-object "GVolumeMonitor")
7384   (c-name "g_volume_monitor_get_connected_drives")
7385   (return-type "GList*")
7389 ;; wrapped in gvolumemonitor.override
7391 (define-method get_volumes
7392   (of-object "GVolumeMonitor")
7393   (c-name "g_volume_monitor_get_volumes")
7394   (return-type "GList*")
7398 ;; wrapped in gvolumemonitor.override
7400 (define-method get_mounts
7401   (of-object "GVolumeMonitor")
7402   (c-name "g_volume_monitor_get_mounts")
7403   (return-type "GList*")
7406 (define-method get_volume_for_uuid
7407   (of-object "GVolumeMonitor")
7408   (c-name "g_volume_monitor_get_volume_for_uuid")
7409   (return-type "GVolume*")
7410   (caller-owns-return #t)
7411   (parameters
7412     '("const-char*" "uuid")
7413   )
7416 (define-method get_mount_for_uuid
7417   (of-object "GVolumeMonitor")
7418   (c-name "g_volume_monitor_get_mount_for_uuid")
7419   (return-type "GMount*")
7420   (caller-owns-return #t)
7421   (parameters
7422     '("const-char*" "uuid")
7423   )
7426 (define-function volume_monitor_adopt_orphan_mount
7427   (c-name "g_volume_monitor_adopt_orphan_mount")
7428   (return-type "GVolume*")
7429   (parameters
7430     '("GMount*" "mount")
7431   )