mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
make all APIs that take inet port arguments take a guint16
This commit is contained in:
parent
3e3e3c2946
commit
fd22781b18
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user