summaryrefslogtreecommitdiffstats
path: root/gio/unix.defs
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-05-25 01:33:08 +0200
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-05-25 01:33:08 +0200
commit8e40d71ac23deb7d91789486ee8cad440a6be1dd (patch)
tree6b66afbc5602acd5e6eec9a18d57c5d42f8a1d83 /gio/unix.defs
parent0d08df42514fba6abc896814abfee0d2d083c29e (diff)
downloadpygobject-8e40d71ac23deb7d91789486ee8cad440a6be1dd.tar.gz
pygobject-8e40d71ac23deb7d91789486ee8cad440a6be1dd.tar.xz
pygobject-8e40d71ac23deb7d91789486ee8cad440a6be1dd.zip
Add gio 2.20 API
add the new API added in gio 2.20, some needs to be wrapped manually
Diffstat (limited to 'gio/unix.defs')
-rw-r--r--gio/unix.defs48
1 files changed, 40 insertions, 8 deletions
diff --git a/gio/unix.defs b/gio/unix.defs
index 2c0891c..018a351 100644
--- a/gio/unix.defs
+++ b/gio/unix.defs
@@ -300,6 +300,28 @@
)
)
+(define-method set_close_fd
+ (of-object "GUnixInputStream")
+ (c-name "g_unix_input_stream_set_close_fd")
+ (return-type "none")
+ (parameters
+ '("gboolean" "close_fd")
+ )
+)
+
+(define-method get_close_fd
+ (of-object "GUnixInputStream")
+ (c-name "g_unix_input_stream_get_close_fd")
+ (return-type "gboolean")
+)
+
+(define-method get_fd
+ (of-object "GUnixInputStream")
+ (c-name "g_unix_input_stream_get_fd")
+ (return-type "gint")
+)
+
+
;; From gunixoutputstream.h
@@ -318,13 +340,23 @@
)
)
+(define-method set_close_fd
+ (of-object "GUnixOutputStream")
+ (c-name "g_unix_output_stream_set_close_fd")
+ (return-type "none")
+ (parameters
+ '("gboolean" "close_fd")
+ )
+)
+(define-method get_close_fd
+ (of-object "GUnixOutputStream")
+ (c-name "g_unix_output_stream_get_close_fd")
+ (return-type "gboolean")
+)
-;; From gunixvolume.h
-
-
-
-;; From gunixvolumemonitor.h
-
-
-
+(define-method get_fd
+ (of-object "GUnixOutputStream")
+ (c-name "g_unix_output_stream_get_fd")
+ (return-type "gint")
+)