Commit 57bec872 authored by Patrick Griffis's avatar Patrick Griffis

SoupSession: Make more functions static

parent 51a3ef88
......@@ -13,36 +13,8 @@ G_BEGIN_DECLS
#define SOUP_SESSION_SOCKET_PROPERTIES "socket-properties"
/* "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);
......
......@@ -138,6 +138,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
......@@ -924,7 +932,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)
......@@ -1535,7 +1543,7 @@ get_connection (SoupMessageQueueItem *item, gboolean *should_cleanup)
}
}
void
static void
soup_session_process_queue_item (SoupSession *session,
SoupMessageQueueItem *item,
gboolean *should_cleanup,
......@@ -1852,7 +1860,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment