summaryrefslogtreecommitdiff
path: root/src/requests.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 16:44:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 16:44:32 +0000
commitc44fbbea0488dada04e7183eb7518fa972375bce (patch)
tree1c3d0dcf7e7a30998de69c1202b3a0c7a150dcac /src/requests.c
parent52c98d2eb39d00659d051e6e74e0e8a098754163 (diff)
base64.c has gone from being a base64 implementation to a small wrapper around GMappedFile and the glib base64 encoder. Makes more sense in util.c now.
Diffstat (limited to 'src/requests.c')
-rw-r--r--src/requests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/requests.c b/src/requests.c
index 5deb94e..1923102 100644
--- a/src/requests.c
+++ b/src/requests.c
@@ -24,9 +24,9 @@
#include <json-glib/json-glib.h>
#include "protocol-constants.h"
-#include "base64.h"
#include "json.h"
#include "torrent.h"
+#include "util.h"
#include "requests.h"
static JsonNode *base_request(gchar * method);
@@ -213,7 +213,7 @@ JsonNode *torrent_add(gchar * filename, gint flags)
{
JsonNode *root = base_request(METHOD_TORRENT_ADD);
JsonObject *args = node_get_arguments(root);
- gchar *encodedFile = base64encode(filename);
+ gchar *encodedFile = trg_base64encode(filename);
if (encodedFile)
json_object_set_string_member(args, PARAM_METAINFO, encodedFile);
json_object_set_boolean_member(args, PARAM_PAUSED, (flags & TORRENT_ADD_FLAG_PAUSED) == TORRENT_ADD_FLAG_PAUSED);