summaryrefslogtreecommitdiff
path: root/windows/filetype.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-13 14:32:06 +0000
commit8525c857da966580c57aa595ec44ba1c4fc2326a (patch)
tree952b61909ac17ad4666f82c005e4470ea20ff3f4 /windows/filetype.c
parenta487f7e611550b0058a780cf673480eb8de6f799 (diff)
downloadnetsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.gz
netsurf-8525c857da966580c57aa595ec44ba1c4fc2326a.tar.bz2
Clean up more windows frontend issues and split out more functionality
Diffstat (limited to 'windows/filetype.c')
-rw-r--r--windows/filetype.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/windows/filetype.c b/windows/filetype.c
index 996e0755e..281a3d7a3 100644
--- a/windows/filetype.c
+++ b/windows/filetype.c
@@ -18,17 +18,18 @@
#include <stdlib.h>
#include <string.h>
-#include "content/fetch.h"
+
#include "utils/log.h"
#include "utils/utils.h"
+#include "content/fetch.h"
+#include "desktop/gui_fetch.h"
#include "windows/filetype.h"
/**
* filetype -- determine the MIME type of a local file
*/
-
-const char *fetch_filetype(const char *unix_path)
+static const char *fetch_filetype(const char *unix_path)
{
int l;
LOG(("unix path %s", unix_path));
@@ -51,3 +52,9 @@ const char *fetch_filetype(const char *unix_path)
return "image/x-ms-bmp";
return "text/html";
}
+
+static struct gui_fetch_table fetch_table = {
+ .filetype = fetch_filetype,
+};
+
+struct gui_fetch_table *win32_fetch_table = &fetch_table;