summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof KosiƄski <tweenk.pl@gmail.com>2016-06-02 09:03:43 +0200
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2016-06-02 09:03:43 +0200
commit81e2e2ae9f30dd7404f2368f50610d964257ad26 (patch)
treea487a635f9241b316dbefe2fc21f88bde41e59ec
parent8b1ed0c3aa9ee79a69d08888de57f32254245e9b (diff)
downloadglibmm-81e2e2ae9f30dd7404f2368f50610d964257ad26.tar.gz
Update gio_vfuncs.defs
Add vfuncs for GFileInputStream, GFileOutputStream, GInputStream, GOutputStream. Move the vfuncs for GPermission and GListModel to their correct position in alphabetic order. Part of a large patch, split by Kjell Ahlstedt. Bug #572471
-rw-r--r--gio/src/gio_vfuncs.defs503
1 files changed, 427 insertions, 76 deletions
diff --git a/gio/src/gio_vfuncs.defs b/gio/src/gio_vfuncs.defs
index 80261738..4bcfa1e4 100644
--- a/gio/src/gio_vfuncs.defs
+++ b/gio/src/gio_vfuncs.defs
@@ -555,6 +555,134 @@
)
)
+; GFileInputStream
+
+(define-vfunc tell
+ (of-object "GFileInputStream")
+ (return-type "goffset")
+)
+
+(define-vfunc can_seek
+ (of-object "GFileInputStream")
+ (return-type "gboolean")
+)
+
+(define-vfunc seek
+ (of-object "GFileInputStream")
+ (return-type "gboolean")
+ (parameters
+ '("goffset" "offset")
+ '("GSeekType" "type")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc query_info
+ (of-object "GFileInputStream")
+ (return-type "GFileInfo*")
+ (parameters
+ '("const-char*" "attributes")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc query_info_async
+ (of-object "GFileInputStream")
+ (return-type "void")
+ (parameters
+ '("const-char*" "attributes")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc query_info_finish
+ (of-object "GFileInputStream")
+ (return-type "GFileInfo*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+; GFileOutputStream
+
+(define-vfunc tell
+ (of-object "GFileOutputStream")
+ (return-type "goffset")
+)
+
+(define-vfunc can_seek
+ (of-object "GFileOutputStream")
+ (return-type "gboolean")
+)
+
+(define-vfunc seek
+ (of-object "GFileOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("goffset" "offset")
+ '("GSeekType" "type")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc can_truncate
+ (of-object "GFileOutputStream")
+ (return-type "gboolean")
+)
+
+(define-vfunc truncate_fn
+ (of-object "GFileOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("goffset" "offset")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc query_info
+ (of-object "GFileOutputStream")
+ (return-type "GFileInfo*")
+ (parameters
+ '("const-char*" "attributes")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc query_info_async
+ (of-object "GFileOutputStream")
+ (return-type "void")
+ (parameters
+ '("const-char*" "attributes")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc query_info_finish
+ (of-object "GFileOutputStream")
+ (return-type "GFileInfo*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc get_etag
+ (of-object "GFileOutputStream")
+ (return-type "char*")
+)
+
; GIcon
(define-vfunc hash
@@ -573,6 +701,121 @@
)
)
+; GInputStream
+
+(define-vfunc read_fn
+ (of-object "GInputStream")
+ (return-type "gssize")
+ (parameters
+ '("void*" "buffer")
+ '("gsize" "count")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc skip
+ (of-object "GInputStream")
+ (return-type "gssize")
+ (parameters
+ '("gsize" "count")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc close_fn
+ (of-object "GInputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc read_async
+ (of-object "GInputStream")
+ (return-type "void")
+ (parameters
+ '("void*" "buffer")
+ '("gsize" "count")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc read_finish
+ (of-object "GInputStream")
+ (return-type "gssize")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc skip_async
+ (of-object "GInputStream")
+ (return-type "void")
+ (parameters
+ '("gsize" "count")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc skip_finish
+ (of-object "GInputStream")
+ (return-type "gssize")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc close_async
+ (of-object "GInputStream")
+ (return-type "void")
+ (parameters
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc close_finish
+ (of-object "GInputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+; GListModel
+
+(define-vfunc get_item_type
+ (of-object "GListModel")
+ (return-type "GType")
+)
+
+(define-vfunc get_n_items
+ (of-object "GListModel")
+ (return-type "guint")
+)
+
+(define-vfunc get_item
+ (of-object "GListModel")
+ (return-type "gpointer")
+ (parameters
+ '("guint" "position")
+ )
+)
+
; GLoadableIcon
(define-vfunc load
@@ -607,6 +850,190 @@
)
)
+; GOutputStream
+
+(define-vfunc write_fn
+ (of-object "GOutputStream")
+ (return-type "gssize")
+ (parameters
+ '("const-void*" "buffer")
+ '("gsize" "count")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc splice
+ (of-object "GOutputStream")
+ (return-type "gssize")
+ (parameters
+ '("GInputStream*" "source")
+ '("GOutputStreamSpliceFlags" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc flush
+ (of-object "GOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc close_fn
+ (of-object "GOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc write_async
+ (of-object "GOutputStream")
+ (return-type "void")
+ (parameters
+ '("const-void*" "buffer")
+ '("gsize" "count")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc write_finish
+ (of-object "GOutputStream")
+ (return-type "gssize")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc splice_async
+ (of-object "GOutputStream")
+ (return-type "void")
+ (parameters
+ '("GInputStream*" "source")
+ '("GOutputStreamSpliceFlags" "flags")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc splice_finish
+ (of-object "GOutputStream")
+ (return-type "gssize")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc flush_async
+ (of-object "GOutputStream")
+ (return-type "void")
+ (parameters
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc flush_finish
+ (of-object "GOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc close_async
+ (of-object "GOutputStream")
+ (return-type "void")
+ (parameters
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc close_finish
+ (of-object "GOutputStream")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+; GPermission
+
+(define-vfunc acquire
+ (of-object "GPermission")
+ (return-type "gboolean")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc acquire_async
+ (of-object "GPermission")
+ (return-type "void")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc acquire_finish
+ (of-object "GPermission")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc release
+ (of-object "GPermission")
+ (return-type "gboolean")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-vfunc release_async
+ (of-object "GPermission")
+ (return-type "void")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-vfunc release_finish
+ (of-object "GPermission")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
; GPollableInputStream
(define-vfunc can_poll
@@ -1127,79 +1554,3 @@
)
)
-; GPermission
-
-(define-vfunc acquire
- (of-object "GPermission")
- (return-type "gboolean")
- (parameters
- '("GCancellable*" "cancellable")
- '("GError**" "error")
- )
-)
-
-(define-vfunc acquire_async
- (of-object "GPermission")
- (return-type "void")
- (parameters
- '("GCancellable*" "cancellable")
- '("GAsyncReadyCallback" "callback")
- '("gpointer" "user_data")
- )
-)
-
-(define-vfunc acquire_finish
- (of-object "GPermission")
- (return-type "gboolean")
- (parameters
- '("GAsyncResult*" "result")
- '("GError**" "error")
- )
-)
-
-(define-vfunc release
- (of-object "GPermission")
- (return-type "gboolean")
- (parameters
- '("GCancellable*" "cancellable")
- '("GError**" "error")
- )
-)
-
-(define-vfunc release_async
- (of-object "GPermission")
- (return-type "void")
- (parameters
- '("GCancellable*" "cancellable")
- '("GAsyncReadyCallback" "callback")
- '("gpointer" "user_data")
- )
-)
-
-(define-vfunc release_finish
- (of-object "GPermission")
- (return-type "gboolean")
- (parameters
- '("GAsyncResult*" "result")
- '("GError**" "error")
- )
-)
-
-; GListModel
-(define-vfunc get_item_type
- (of-object "GListModel")
- (return-type "GType")
-)
-
-(define-vfunc get_n_items
- (of-object "GListModel")
- (return-type "guint")
-)
-
-(define-vfunc get_item
- (of-object "GListModel")
- (return-type "gpointer")
- (parameters
- '("guint" "position")
- )
-)