diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-06 00:07:11 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-06 00:07:11 +0000 |
commit | badad073ec99b49288421e99a701f3a61f1fac55 (patch) | |
tree | 1ff96c8f43de077f8e40cac272cc587f43f3e834 /content/content.c | |
parent | 55389c543be402eeca097cde75a68d8b1315b980 (diff) | |
download | netsurf-badad073ec99b49288421e99a701f3a61f1fac55.tar.gz netsurf-badad073ec99b49288421e99a701f3a61f1fac55.tar.bz2 |
Generate directory listings (fix 1397934)
svn path=/trunk/netsurf/; revision=2719
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 7 |
1 files changed, 7 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 |