summaryrefslogtreecommitdiff
path: root/windows/filetype.c
diff options
context:
space:
mode:
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;