summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-11 10:27:06 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-11 10:27:06 +0000
commitbe569c0953fcd777ae00ae41feb9c673e4df2f23 (patch)
treede0c822ae4ca82e5a717a04a11271f6d544c6507 /src/json.c
parent547bcd3c5ec89e30f20723b46c8eab1a71e0cf44 (diff)
use thread local storage to keep one curl client per thread (by default 3) in the thread pool
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/json.c b/src/json.c
index 47ca27b..6d74b24 100644
--- a/src/json.c
+++ b/src/json.c
@@ -26,7 +26,6 @@
#include "protocol-constants.h"
#include "requests.h"
#include "dispatch.h"
-#include "http.h"
#include "json.h"
gchar *trg_serialize(JsonNode * req)
@@ -44,7 +43,7 @@ gchar *trg_serialize(JsonNode * req)
return response;
}
-JsonObject *trg_deserialize(struct http_response * response,
+JsonObject *trg_deserialize(trg_http_response * response,
GError ** error)
{
JsonParser *parser;
@@ -58,7 +57,7 @@ JsonObject *trg_deserialize(struct http_response * response,
root = json_parser_get_root(parser);
#ifdef DEBUG
if (g_getenv("TRG_SHOW_INCOMING") != NULL) {
- g_debug("<=(incoming)<=:\n%s\n", response->data);
+ g_debug("<=(incoming)<=:\n%s", response->data);
} else if (g_getenv("TRG_SHOW_INCOMING_PRETTY") != NULL) {
JsonGenerator *pg;
gsize len;