summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-07-06 00:07:11 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-07-06 00:07:11 +0000
commitbadad073ec99b49288421e99a701f3a61f1fac55 (patch)
tree1ff96c8f43de077f8e40cac272cc587f43f3e834 /content
parent55389c543be402eeca097cde75a68d8b1315b980 (diff)
downloadnetsurf-badad073ec99b49288421e99a701f3a61f1fac55.tar.gz
netsurf-badad073ec99b49288421e99a701f3a61f1fac55.tar.bz2
Generate directory listings (fix 1397934)
svn path=/trunk/netsurf/; revision=2719
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