[pygobject] Add a missing object gio.InetSocketAddress new in GIO 2.22



commit e2330bd0d6cbc49b0ecb27b30e3b0593935ce229
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date:   Wed Dec 30 23:43:14 2009 +0100

    Add a missing object gio.InetSocketAddress new in GIO 2.22

 gio/gio-types.defs |    7 +++++++
 gio/gio.defs       |   31 +++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/gio/gio-types.defs b/gio/gio-types.defs
index f1c8c6f..331e0bc 100644
--- a/gio/gio-types.defs
+++ b/gio/gio-types.defs
@@ -212,6 +212,13 @@
   (gtype-id "G_TYPE_INET_ADDRESS")
 )
 
+(define-object InetSocketAddress
+  (in-module "gio")
+  (parent "GSocketAddress")
+  (c-name "GInetSocketAddress")
+  (gtype-id "G_TYPE_INET_SOCKET_ADDRESS")
+)
+
 (define-object NetworkAddress
   (in-module "gio")
   (parent "GObject")
diff --git a/gio/gio.defs b/gio/gio.defs
index e61fc5e..53306fb 100644
--- a/gio/gio.defs
+++ b/gio/gio.defs
@@ -4156,6 +4156,37 @@
 
 
 
+;; From ginetsocketaddress.h
+
+(define-function inet_socket_address_get_type
+  (c-name "g_inet_socket_address_get_type")
+  (return-type "GType")
+)
+
+(define-function inet_socket_address_new
+  (c-name "g_inet_socket_address_new")
+  (is-constructor-of "GInetSocketAddress")
+  (return-type "GSocketAddress*")
+  (parameters
+    '("GInetAddress*" "address")
+    '("guint16" "port")
+  )
+)
+
+(define-method get_address
+  (of-object "GInetSocketAddress")
+  (c-name "g_inet_socket_address_get_address")
+  (return-type "GInetAddress*")
+)
+
+(define-method get_port
+  (of-object "GInetSocketAddress")
+  (c-name "g_inet_socket_address_get_port")
+  (return-type "guint16")
+)
+
+
+
 ;; From ginputstream.h
 
 (define-function input_stream_get_type



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]