From fd22781b184529c2a838272b76d71b4b498366ba Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 12 Jun 2009 15:57:51 +0200 Subject: [PATCH] make all APIs that take inet port arguments take a guint16 --- gio/gsocketclient.c | 4 ++-- gio/gsocketclient.h | 4 ++-- gio/gsocketlistener.c | 2 +- gio/gsocketlistener.h | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index 74e6e80bf..3bbdb977a 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -587,7 +587,7 @@ g_socket_client_connect (GSocketClient *client, GSocketConnection * g_socket_client_connect_to_host (GSocketClient *client, const gchar *host_and_port, - gint default_port, + guint16 default_port, GCancellable *cancellable, GError **error) { @@ -881,7 +881,7 @@ g_socket_client_connect_async (GSocketClient *client, void g_socket_client_connect_to_host_async (GSocketClient *client, const gchar *host_and_port, - gint default_port, + guint16 default_port, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) diff --git a/gio/gsocketclient.h b/gio/gsocketclient.h index c59c11422..05766148e 100644 --- a/gio/gsocketclient.h +++ b/gio/gsocketclient.h @@ -89,7 +89,7 @@ GSocketConnection * g_socket_client_connect (GSocket GError **error); GSocketConnection * g_socket_client_connect_to_host (GSocketClient *client, const gchar *host_and_port, - gint default_port, + guint16 default_port, GCancellable *cancellable, GError **error); GSocketConnection * g_socket_client_connect_to_service (GSocketClient *client, @@ -107,7 +107,7 @@ GSocketConnection * g_socket_client_connect_finish (GSocket GError **error); void g_socket_client_connect_to_host_async (GSocketClient *client, const gchar *host_and_port, - gint default_port, + guint16 default_port, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); diff --git a/gio/gsocketlistener.c b/gio/gsocketlistener.c index 4a19e250a..c675ae867 100644 --- a/gio/gsocketlistener.c +++ b/gio/gsocketlistener.c @@ -324,7 +324,7 @@ g_socket_listener_add_address (GSocketListener *listener, */ gboolean g_socket_listener_add_inet_port (GSocketListener *listener, - int port, + guint16 port, GObject *source_object, GError **error) { diff --git a/gio/gsocketlistener.h b/gio/gsocketlistener.h index da51a760d..64894fb27 100644 --- a/gio/gsocketlistener.h +++ b/gio/gsocketlistener.h @@ -87,14 +87,14 @@ gboolean g_socket_listener_add_socket (GSocket GSocket *socket, GObject *source_object, GError **error); -gboolean g_socket_listener_add_address (GSocketListener *listener, +gboolean g_socket_listener_add_address (GSocketListener *listener, GSocketAddress *address, GSocketType type, GSocketProtocol protocol, GObject *source_object, GError **error); -gboolean g_socket_listener_add_inet_port (GSocketListener *listener, - int port, +gboolean g_socket_listener_add_inet_port (GSocketListener *listener, + guint16 port, GObject *source_object, GError **error);