[gnome-online-accounts] httpclient: Shuffle some code around
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] httpclient: Shuffle some code around
- Date: Sat, 20 Feb 2016 19:00:33 +0000 (UTC)
commit 19d4a094208f1b5e57b3f22e672e7b5ba5eb8391
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Feb 20 19:45:12 2016 +0100
httpclient: Shuffle some code around
src/goabackend/goahttpclient.c | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index 6f87231..4f19f65 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -59,6 +59,22 @@ goa_http_client_new (void)
/* ---------------------------------------------------------------------------------------------------- */
+static void
+http_client_log_printer (SoupLogger *logger,
+ SoupLoggerLogLevel level,
+ gchar direction,
+ const gchar *data,
+ gpointer user_data)
+{
+ gchar *message;
+
+ message = g_strdup_printf ("%c %s", direction, data);
+ g_log_default_handler ("goa", G_LOG_LEVEL_DEBUG, message, NULL);
+ g_free (message);
+}
+
+/* ---------------------------------------------------------------------------------------------------- */
+
typedef struct
{
GCancellable *cancellable;
@@ -191,20 +207,6 @@ http_client_check_response_cb (SoupSession *session, SoupMessage *msg, gpointer
g_source_unref (source);
}
-static void
-http_client_log_printer (SoupLogger *logger,
- SoupLoggerLogLevel level,
- gchar direction,
- const gchar *data,
- gpointer user_data)
-{
- gchar *message;
-
- message = g_strdup_printf ("%c %s", direction, data);
- g_log_default_handler ("goa", G_LOG_LEVEL_DEBUG, message, NULL);
- g_free (message);
-}
-
void
goa_http_client_check (GoaHttpClient *self,
const gchar *uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]