summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h
index 2e4a36f31..ffd73ab06 100644
--- a/content/content.h
+++ b/content/content.h
@@ -26,6 +26,7 @@
#define _NETSURF_DESKTOP_CONTENT_H_
#include "libxml/HTMLparser.h"
+#include "netsurf/utils/config.h"
#include "netsurf/content/cache.h"
#include "netsurf/content/fetch.h"
#include "netsurf/content/other.h"
@@ -34,13 +35,25 @@
#include "netsurf/render/font.h"
#include "netsurf/render/html.h"
#ifdef riscos
+#ifdef WITH_GIF
#include "netsurf/riscos/gif.h"
+#endif
+#ifdef WITH_JPEG
#include "netsurf/riscos/jpeg.h"
+#endif
+#ifdef WITH_PLUGIN
#include "netsurf/riscos/plugin.h"
+#endif
+#ifdef WITH_PNG
#include "netsurf/riscos/png.h"
+#endif
+#ifdef WITH_SPRITE
#include "netsurf/riscos/sprite.h"
+#endif
+#ifdef WITH_DRAW
#include "netsurf/riscos/draw.h"
#endif
+#endif
/** The type of a content. */
@@ -48,16 +61,28 @@ typedef enum {
CONTENT_HTML,
CONTENT_TEXTPLAIN,
#ifdef riscos
+#ifdef WITH_JPEG
CONTENT_JPEG,
#endif
+#endif
CONTENT_CSS,
#ifdef riscos
+#ifdef WITH_PNG
CONTENT_PNG,
+#endif
+#ifdef WITH_GIF
CONTENT_GIF,
+#endif
+#ifdef WITH_SPRITE
CONTENT_SPRITE,
+#endif
+#ifdef WITH_DRAW
CONTENT_DRAW,
+#endif
+#ifdef WITH_PLUGIN
CONTENT_PLUGIN,
#endif
+#endif
CONTENT_OTHER,
CONTENT_UNKNOWN /**< content-type not received yet */
} content_type;
@@ -72,7 +97,9 @@ typedef enum {
CONTENT_MSG_STATUS, /**< new status string */
CONTENT_MSG_REDIRECT, /**< replacement URL */
CONTENT_MSG_REFORMAT, /**< content_reformat done */
+#ifdef WITH_AUTH
CONTENT_MSG_AUTH /**< authentication required */
+#endif
} content_msg;
/** Linked list of users of a content. */
@@ -108,13 +135,25 @@ struct content {
struct content_html_data html;
struct content_css_data css;
#ifdef riscos
+#ifdef WITH_JPEG
struct content_jpeg_data jpeg;
+#endif
+#ifdef WITH_PNG
struct content_png_data png;
+#endif
+#ifdef WITH_GIF
struct content_gif_data gif;
+#endif
+#ifdef WITH_SPRITE
struct content_sprite_data sprite;
+#endif
+#ifdef WITH_DRAW
struct content_draw_data draw;
+#endif
+#ifdef WITH_PLUGIN
struct content_plugin_data plugin;
#endif
+#endif
struct content_other_data other;
} data;