summaryrefslogtreecommitdiffstats
path: root/gio/unix.defs
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-12-17 21:54:36 +0100
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-12-17 21:54:36 +0100
commitd3d5cb3a4a2c2cb2bd0c2571304d59e19bc08452 (patch)
treea8abe16d02d6ebde1700985bb0c5074941c13378 /gio/unix.defs
parentc87c8a81947a68507e8f3bcaf8e0e969b3e5331b (diff)
downloadpygobject-d3d5cb3a4a2c2cb2bd0c2571304d59e19bc08452.tar.gz
pygobject-d3d5cb3a4a2c2cb2bd0c2571304d59e19bc08452.tar.xz
pygobject-d3d5cb3a4a2c2cb2bd0c2571304d59e19bc08452.zip
Wrap new API added in GIO-UNIX 2.22
Diffstat (limited to 'gio/unix.defs')
-rw-r--r--gio/unix.defs115
1 files changed, 114 insertions, 1 deletions
diff --git a/gio/unix.defs b/gio/unix.defs
index 018a351..ff43ed6 100644
--- a/gio/unix.defs
+++ b/gio/unix.defs
@@ -2,6 +2,36 @@
(include "unix-types.defs")
+;; From gunixconnection.h
+
+(define-function g_unix_connection_get_type
+ (c-name "g_unix_connection_get_type")
+ (return-type "GType")
+)
+
+(define-method send_fd
+ (of-object "GUnixConnection")
+ (c-name "g_unix_connection_send_fd")
+ (return-type "gboolean")
+ (parameters
+ '("gint" "fd")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-method receive_fd
+ (of-object "GUnixConnection")
+ (c-name "g_unix_connection_receive_fd")
+ (return-type "gint")
+ (parameters
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+
+
;; From gdesktopappinfo.h
(define-function desktop_app_info_get_type
@@ -48,7 +78,39 @@
)
)
-;; From gunixmount.h
+
+
+;; From gunixfdmessage.h
+
+(define-function g_unix_fd_message_get_type
+ (c-name "g_unix_fd_message_get_type")
+ (return-type "GType")
+)
+
+(define-function g_unix_fd_message_new
+ (c-name "g_unix_fd_message_new")
+ (is-constructor-of "GUnixFdMessage")
+ (return-type "GSocketControlMessage*")
+)
+
+(define-method steal_fds
+ (of-object "GUnixFDMessage")
+ (c-name "g_unix_fd_message_steal_fds")
+ (return-type "gint*")
+ (parameters
+ '("gint*" "length")
+ )
+)
+
+(define-method append_fd
+ (of-object "GUnixFDMessage")
+ (c-name "g_unix_fd_message_append_fd")
+ (return-type "gboolean")
+ (parameters
+ '("gint" "fd")
+ '("GError**" "error")
+ )
+)
@@ -360,3 +422,54 @@
(c-name "g_unix_output_stream_get_fd")
(return-type "gint")
)
+
+
+
+;; From gunixsocketaddress.h
+
+(define-function g_unix_socket_address_get_type
+ (c-name "g_unix_socket_address_get_type")
+ (return-type "GType")
+)
+
+(define-function g_unix_socket_address_new
+ (c-name "g_unix_socket_address_new")
+ (is-constructor-of "GUnixSocketAddress")
+ (return-type "GSocketAddress*")
+ (parameters
+ '("const-gchar*" "path")
+ )
+)
+
+(define-function g_unix_socket_address_new_abstract
+ (c-name "g_unix_socket_address_new_abstract")
+ (return-type "GSocketAddress*")
+ (parameters
+ '("const-gchar*" "path")
+ '("int" "path_len")
+ )
+)
+
+(define-method get_path
+ (of-object "GUnixSocketAddress")
+ (c-name "g_unix_socket_address_get_path")
+ (return-type "const-char*")
+)
+
+(define-method get_path_len
+ (of-object "GUnixSocketAddress")
+ (c-name "g_unix_socket_address_get_path_len")
+ (return-type "gsize")
+)
+
+(define-method get_is_abstract
+ (of-object "GUnixSocketAddress")
+ (c-name "g_unix_socket_address_get_is_abstract")
+ (return-type "gboolean")
+)
+
+(define-function g_unix_socket_address_abstract_names_supported
+ (c-name "g_unix_socket_address_abstract_names_supported")
+ (return-type "gboolean")
+)
+