diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 10:27:06 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-11 10:27:06 +0000 |
commit | be569c0953fcd777ae00ae41feb9c673e4df2f23 (patch) | |
tree | de0c822ae4ca82e5a717a04a11271f6d544c6507 /src/json.c | |
parent | 547bcd3c5ec89e30f20723b46c8eab1a71e0cf44 (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |