Skip to content

Commit

Permalink
Add a missing object gio.InetSocketAddress new in GIO 2.22
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmt committed Dec 30, 2009
1 parent 6040b33 commit e2330bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gio/gio-types.defs
Expand Up @@ -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")
Expand Down
31 changes: 31 additions & 0 deletions gio/gio.defs
Expand Up @@ -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
Expand Down

0 comments on commit e2330bd

Please sign in to comment.