summaryrefslogtreecommitdiff
path: root/desktop/gui.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-25 23:00:22 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-25 23:01:32 +0000
commit8ce0a10670e655d9e3a4f31fedd34baf1a3189b9 (patch)
treec1aa73bf937d097a6d2cb7efe3777cb6c720e7f7 /desktop/gui.h
parent46b8fbaeac4dd1e35945ae1338056156e5b3b86b (diff)
downloadnetsurf-8ce0a10670e655d9e3a4f31fedd34baf1a3189b9.tar.gz
netsurf-8ce0a10670e655d9e3a4f31fedd34baf1a3189b9.tar.bz2
move path_to_url and url_to_path to fetch operation table
Diffstat (limited to 'desktop/gui.h')
-rw-r--r--desktop/gui.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/desktop/gui.h b/desktop/gui.h
index 724355d10..da609b1e3 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -319,6 +319,22 @@ struct gui_fetch_table {
*/
const char *(*filetype)(const char *unix_path);
+ /**
+ * Convert a pathname to a file: URL.
+ *
+ * \param path pathname
+ * \return URL, allocated on heap, or NULL on failure
+ */
+ char *(*path_to_url)(const char *path);
+
+ /**
+ * Convert a file: URL to a pathname.
+ *
+ * \param url a file: URL
+ * \return pathname, allocated on heap, or NULL on failure
+ */
+ char *(*url_to_path)(const char *url);
+
/* Optional entries */