summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.c7
-rw-r--r--content/content_type.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index e29990461..68c90a7f0 100644
--- a/content/content.c
+++ b/content/content.c
@@ -25,6 +25,7 @@
#include "netsurf/css/css.h"
#include "netsurf/image/bitmap.h"
#include "netsurf/desktop/options.h"
+#include "netsurf/render/directory.h"
#include "netsurf/render/html.h"
#include "netsurf/render/textplain.h"
#ifdef WITH_JPEG
@@ -89,6 +90,7 @@ static const struct mime_entry mime_map[] = {
#ifdef WITH_BMP
{"application/x-ico", CONTENT_ICO},
#endif
+ {"application/x-netsurf-directory", CONTENT_DIRECTORY},
#ifdef WITH_THEME_INSTALL
{"application/x-netsurf-theme", CONTENT_THEME},
#endif
@@ -192,6 +194,7 @@ const char *content_type_name[] = {
#ifdef WITH_PLUGIN
"PLUGIN",
#endif
+ "DIRECTORY",
#ifdef WITH_THEME_INSTALL
"THEME",
#endif
@@ -285,6 +288,10 @@ static const struct handler_entry handler_map[] = {
plugin_open, plugin_close,
true},
#endif
+ {directory_create, 0, directory_convert,
+ html_reformat, html_destroy, html_stop, html_redraw, 0,
+ html_open, html_close,
+ true},
#ifdef WITH_THEME_INSTALL
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false},
#endif
diff --git a/content/content_type.h b/content/content_type.h
index b8b891514..388cbfb38 100644
--- a/content/content_type.h
+++ b/content/content_type.h
@@ -46,6 +46,7 @@ typedef enum {
#ifdef WITH_PLUGIN
CONTENT_PLUGIN,
#endif
+ CONTENT_DIRECTORY,
#ifdef WITH_THEME_INSTALL
CONTENT_THEME,
#endif