summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-16 00:01:25 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-16 00:01:25 +0000
commit38cb39339a8f1f9a0afb69340a404fd767db5a79 (patch)
tree0b5ed63f639e8d8e66011a425ee595545b74300d /content/fetchers
parentbd065d4a434755e67642a071e255cba596de8d1e (diff)
downloadnetsurf-38cb39339a8f1f9a0afb69340a404fd767db5a79.tar.gz
netsurf-38cb39339a8f1f9a0afb69340a404fd767db5a79.tar.bz2
move filename_from_path and path_add_part into gui operation tables
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/curl.c3
-rw-r--r--content/fetchers/file.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 7578ad4cb..92d4625b5 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -45,6 +45,7 @@
#include "content/fetchers/curl.h"
#include "content/urldb.h"
#include "desktop/netsurf.h"
+#include "desktop/gui_factory.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
@@ -1268,7 +1269,7 @@ fetch_curl_post_convert(const struct fetch_multipart_data *control)
if (control->file) {
char *leafname = 0;
- leafname = filename_from_path(control->value);
+ leafname = guit->browser->filename_from_path(control->value);
if (leafname == NULL)
continue;
diff --git a/content/fetchers/file.c b/content/fetchers/file.c
index c574c2160..26ef9069b 100644
--- a/content/fetchers/file.c
+++ b/content/fetchers/file.c
@@ -47,6 +47,7 @@
#include "content/fetchers/file.h"
#include "content/urldb.h"
#include "desktop/netsurf.h"
+#include "desktop/gui_factory.h"
#include "utils/nsoption.h"
#include "utils/errors.h"
#include "utils/log.h"
@@ -574,7 +575,7 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx,
continue;
strncpy(urlpath, ctx->path, sizeof urlpath);
- if (path_add_part(urlpath, sizeof urlpath,
+ if (guit->browser->path_add_part(urlpath, sizeof urlpath,
ent->d_name) == false)
continue;