[epiphany/wip/sync: 25/47] sync-service: Make _release_next_storage_message() static



commit 43b1462e03925ae90ccce371361273de34bf517d
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Thu Feb 23 13:23:32 2017 +0200

    sync-service: Make _release_next_storage_message() static

 src/sync/ephy-sync-service.c |   30 +++++++++++++++---------------
 src/sync/ephy-sync-service.h |    1 -
 2 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/src/sync/ephy-sync-service.c b/src/sync/ephy-sync-service.c
index 49cef51..31fe94f 100644
--- a/src/sync/ephy-sync-service.c
+++ b/src/sync/ephy-sync-service.c
@@ -584,6 +584,21 @@ ephy_sync_service_issue_storage_request (EphySyncService               *self,
 }
 
 static void
+ephy_sync_service_release_next_storage_message (EphySyncService *self)
+{
+  g_return_if_fail (EPHY_IS_SYNC_SERVICE (self));
+  /* We should never reach this with the service not being locked. */
+  g_assert (self->locked == TRUE);
+
+  /* If there are other messages waiting in the queue, we release the next one
+   * and keep the service locked, else, we mark the service as not locked. */
+  if (g_queue_is_empty (self->storage_queue) == FALSE)
+    ephy_sync_service_issue_storage_request (self, g_queue_pop_head (self->storage_queue));
+  else
+    self->locked = FALSE;
+}
+
+static void
 ephy_sync_service_finalize (GObject *object)
 {
   EphySyncService *self = EPHY_SYNC_SERVICE (object);
@@ -968,21 +983,6 @@ ephy_sync_service_send_storage_message (EphySyncService     *self,
   }
 }
 
-void
-ephy_sync_service_release_next_storage_message (EphySyncService *self)
-{
-  g_return_if_fail (EPHY_IS_SYNC_SERVICE (self));
-  /* We should never reach this with the service not being locked. */
-  g_assert (self->locked == TRUE);
-
-  /* If there are other messages waiting in the queue, we release the next one
-   * and keep the service locked, else, we mark the service as not locked. */
-  if (g_queue_is_empty (self->storage_queue) == FALSE)
-    ephy_sync_service_issue_storage_request (self, g_queue_pop_head (self->storage_queue));
-  else
-    self->locked = FALSE;
-}
-
 static void
 upload_bookmark_response_cb (SoupSession *session,
                              SoupMessage *msg,
diff --git a/src/sync/ephy-sync-service.h b/src/sync/ephy-sync-service.h
index cd1fabb..461658e 100644
--- a/src/sync/ephy-sync-service.h
+++ b/src/sync/ephy-sync-service.h
@@ -69,7 +69,6 @@ void             ephy_sync_service_send_storage_message         (EphySyncService
                                                                  double               unmodified_since,
                                                                  SoupSessionCallback  callback,
                                                                  gpointer             user_data);
-void             ephy_sync_service_release_next_storage_message (EphySyncService *self);
 void             ephy_sync_service_upload_bookmark              (EphySyncService *self,
                                                                  EphyBookmark    *bookmark,
                                                                  gboolean         force);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]