[libsoup/wip/new-master: 43/57] SoupSession: Make more functions static
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/new-master: 43/57] SoupSession: Make more functions static
- Date: Sat, 19 Sep 2020 21:01:08 +0000 (UTC)
commit 24354444b67537fa7d3ae4b15078e27ef19a8588
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Mar 26 03:48:46 2020 -0700
SoupSession: Make more functions static
libsoup/soup-session-private.h | 27 ---------------------------
libsoup/soup-session.c | 14 +++++++++++---
2 files changed, 11 insertions(+), 30 deletions(-)
---
diff --git a/libsoup/soup-session-private.h b/libsoup/soup-session-private.h
index 864aafd6..023cd6cb 100644
--- a/libsoup/soup-session-private.h
+++ b/libsoup/soup-session-private.h
@@ -14,33 +14,6 @@ G_BEGIN_DECLS
/* "protected" methods for subclasses */
SoupMessageQueue *soup_session_get_queue (SoupSession *session);
-SoupMessageQueueItem *soup_session_append_queue_item (SoupSession *session,
- SoupMessage *msg,
- gboolean async,
- gboolean new_api,
- SoupSessionCallback callback,
- gpointer user_data);
-
-void soup_session_kick_queue (SoupSession *session);
-
-GInputStream *soup_session_send_request (SoupSession *session,
- SoupMessage *msg,
- GCancellable *cancellable,
- GError **error);
-
-void soup_session_send_request_async (SoupSession *session,
- SoupMessage *msg,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-GInputStream *soup_session_send_request_finish (SoupSession *session,
- GAsyncResult *result,
- GError **error);
-
-void soup_session_process_queue_item (SoupSession *session,
- SoupMessageQueueItem *item,
- gboolean *should_prune,
- gboolean loop);
GIOStream * soup_session_steal_connection (SoupSession *session,
SoupMessage *msg);
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index d4c75d85..3fb7e7ab 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -153,6 +153,14 @@ static void async_run_queue (SoupSession *session);
static void async_send_request_running (SoupSession *session, SoupMessageQueueItem *item);
+static void soup_session_kick_queue (SoupSession *session);
+
+static void
+soup_session_process_queue_item (SoupSession *session,
+ SoupMessageQueueItem *item,
+ gboolean *should_cleanup,
+ gboolean loop);
+
#define SOUP_SESSION_MAX_CONNS_DEFAULT 10
#define SOUP_SESSION_MAX_CONNS_PER_HOST_DEFAULT 2
@@ -980,7 +988,7 @@ message_restarted (SoupMessage *msg, gpointer user_data)
soup_message_cleanup_response (msg);
}
-SoupMessageQueueItem *
+static SoupMessageQueueItem *
soup_session_append_queue_item (SoupSession *session, SoupMessage *msg,
gboolean async, gboolean new_api,
SoupSessionCallback callback, gpointer user_data)
@@ -1677,7 +1685,7 @@ get_connection (SoupMessageQueueItem *item, gboolean *should_cleanup)
}
}
-void
+static void
soup_session_process_queue_item (SoupSession *session,
SoupMessageQueueItem *item,
gboolean *should_cleanup,
@@ -1994,7 +2002,7 @@ soup_session_pause_message (SoupSession *session,
soup_message_queue_item_unref (item);
}
-void
+static void
soup_session_kick_queue (SoupSession *session)
{
SoupSessionPrivate *priv = soup_session_get_instance_private (session);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]