From 00b6cfc57e27f8146d9b41ba8e63038a4f9df70e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 26 May 2014 23:43:36 +0100 Subject: rework path to url mapping functions to convert from and to nsurl --- content/dirlist.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'content/dirlist.c') diff --git a/content/dirlist.c b/content/dirlist.c index 0c0e2aee2..1d7a67e1f 100644 --- a/content/dirlist.c +++ b/content/dirlist.c @@ -24,9 +24,12 @@ #include #include #include -#include "content/dirlist.h" + +#include "utils/nsurl.h" #include "utils/messages.h" +#include "content/dirlist.h" + static int dirlist_filesize_calculate(unsigned long *bytesize); static int dirlist_filesize_value(unsigned long bytesize); static char* dirlist_filesize_unit(unsigned long bytesize); @@ -262,7 +265,7 @@ bool dirlist_generate_headings(char *buffer, int buffer_length) * dirlist_generate_bottom() */ -bool dirlist_generate_row(bool even, bool directory, char *url, char *name, +bool dirlist_generate_row(bool even, bool directory, nsurl *url, char *name, const char *mimetype, long long size, char *date, char *time, char *buffer, int buffer_length) { @@ -288,7 +291,7 @@ bool dirlist_generate_row(bool even, bool directory, char *url, char *name, "\t%s\n" "\t%s\n" "\n", - url, even ? "even" : "odd", + nsurl_access(url), even ? "even" : "odd", directory ? "dir" : "file", name, mimetype, size_string, unit, date, time); if (error < 0 || error >= buffer_length) -- cgit v1.2.3