[libsoup/wip/new-master: 29/57] Delete soup_client_context_get_address() API
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/new-master: 29/57] Delete soup_client_context_get_address() API
- Date: Sat, 19 Sep 2020 21:01:07 +0000 (UTC)
commit ff4f3885881ef8b7c03ef4eec61da60ae3c84dc4
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Mar 10 20:49:41 2020 -0700
Delete soup_client_context_get_address() API
libsoup/soup-server.c | 24 +-----------------------
libsoup/soup-server.h | 4 ----
2 files changed, 1 insertion(+), 27 deletions(-)
---
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c
index 89bd01de..30b6cffe 100644
--- a/libsoup/soup-server.c
+++ b/libsoup/soup-server.c
@@ -1822,28 +1822,6 @@ soup_client_context_get_gsocket (SoupClientContext *client)
return client->gsock;
}
-/**
- * soup_client_context_get_address:
- * @client: a #SoupClientContext
- *
- * Retrieves the #SoupAddress associated with the remote end
- * of a connection.
- *
- * Return value: (nullable) (transfer none): the #SoupAddress
- * associated with the remote end of a connection, it may be
- * %NULL if you used soup_server_accept_iostream().
- *
- * Deprecated: Use soup_client_context_get_remote_address(), which returns
- * a #GSocketAddress.
- **/
-SoupAddress *
-soup_client_context_get_address (SoupClientContext *client)
-{
- g_return_val_if_fail (client != NULL, NULL);
-
- return soup_socket_get_remote_address (client->sock);
-}
-
/**
* soup_client_context_get_remote_address:
* @client: a #SoupClientContext
@@ -1931,7 +1909,7 @@ soup_client_context_get_host (SoupClientContext *client)
SoupAddress *addr;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- addr = soup_client_context_get_address (client);
+ addr = soup_socket_get_remote_address (client->sock);
G_GNUC_END_IGNORE_DEPRECATIONS;
client->remote_ip = g_strdup (soup_address_get_physical (addr));
}
diff --git a/libsoup/soup-server.h b/libsoup/soup-server.h
index c76fa111..6dc07a0d 100644
--- a/libsoup/soup-server.h
+++ b/libsoup/soup-server.h
@@ -199,10 +199,6 @@ SOUP_AVAILABLE_IN_2_50
GIOStream *soup_client_context_steal_connection (SoupClientContext *client);
/* Legacy API */
-
-SOUP_AVAILABLE_IN_2_4
-SOUP_DEPRECATED_IN_2_48
-SoupAddress *soup_client_context_get_address (SoupClientContext *client);
SOUP_AVAILABLE_IN_2_4
SOUP_DEPRECATED_IN_2_48
SoupSocket *soup_client_context_get_socket (SoupClientContext *client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]