[libsoup/wip/remove-deprecations: 7/13] SoupSession: Make more functions static




commit dd2e2fc505538350b7963f0906b50acb82751952
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 | 28 ----------------------------
 libsoup/soup-session.c         | 14 +++++++++++---
 2 files changed, 11 insertions(+), 31 deletions(-)
---
diff --git a/libsoup/soup-session-private.h b/libsoup/soup-session-private.h
index 762e07c9..8efcc3e4 100644
--- a/libsoup/soup-session-private.h
+++ b/libsoup/soup-session-private.h
@@ -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);
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index e917877b..e3c43a6e 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -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
 
@@ -925,7 +933,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)
@@ -1536,7 +1544,7 @@ get_connection (SoupMessageQueueItem *item, gboolean *should_cleanup)
        }
 }
 
-void
+static void
 soup_session_process_queue_item (SoupSession          *session,
                                 SoupMessageQueueItem *item,
                                 gboolean             *should_cleanup,
@@ -1853,7 +1861,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]