diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2020-03-10 20:49:41 -0700 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2020-09-19 15:41:24 -0700 |
commit | 7ef77ef2447b8330a862f3795ccb3bff4de95b83 (patch) | |
tree | 0dfaa6d8a116ccb3391ee451d0217e58ca04e4da /libsoup | |
parent | 9e13cc6cb9ae0216dcd013436eef5abf4b6e3f0b (diff) | |
download | libsoup-7ef77ef2447b8330a862f3795ccb3bff4de95b83.tar.gz |
Delete soup_client_context_get_address() API
Diffstat (limited to 'libsoup')
-rw-r--r-- | libsoup/soup-server.c | 24 | ||||
-rw-r--r-- | libsoup/soup-server.h | 4 |
2 files changed, 1 insertions, 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 @@ -1823,28 +1823,6 @@ soup_client_context_get_gsocket (SoupClientContext *client) } /** - * 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); |