summaryrefslogtreecommitdiff
path: root/content/content_protected.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-06-06 08:59:23 +0100
committerVincent Sanders <vince@kyllikki.org>2016-06-06 09:01:38 +0100
commit76a68d7dd02f3819e4e60cd9febfd45e20821e14 (patch)
treea86fc61314fd53d383cb95a313a2897779984214 /content/content_protected.h
parentd923e109cd56c553c8e87cdb8bdab5085e68cc73 (diff)
downloadnetsurf-76a68d7dd02f3819e4e60cd9febfd45e20821e14.tar.gz
netsurf-76a68d7dd02f3819e4e60cd9febfd45e20821e14.tar.bz2
Update content to split public and internal API
Diffstat (limited to 'content/content_protected.h')
-rw-r--r--content/content_protected.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/content/content_protected.h b/content/content_protected.h
index fb810bd07..ef38cb12d 100644
--- a/content/content_protected.h
+++ b/content/content_protected.h
@@ -26,29 +26,22 @@
#ifndef _NETSURF_CONTENT_CONTENT_PROTECTED_H_
#define _NETSURF_CONTENT_CONTENT_PROTECTED_H_
-#include <stdint.h>
-#include <time.h>
#include <stdio.h>
-#include "utils/config.h"
+#include "utils/nsurl.h"
+#include "netsurf/content_type.h"
#include "content/content.h"
-#include "content/content_factory.h"
-#include "content/llcache.h"
-#include "utils/errors.h"
-
-struct bitmap;
-struct content;
-struct rect;
-struct redraw_context;
+
+struct content_redraw_data;
struct http_parameter;
struct content_handler {
void (*fini)(void);
- nserror (*create)(const content_handler *handler,
+ nserror (*create)(const struct content_handler *handler,
lwc_string *imime_type,
const struct http_parameter *params,
- llcache_handle *llcache,
+ struct llcache_handle *llcache,
const char *fallback_charset, bool quirks,
struct content **c);
@@ -108,11 +101,11 @@ struct content_user
/** Corresponds to a single URL. */
struct content {
- llcache_handle *llcache; /**< Low-level cache object */
+ struct llcache_handle *llcache; /**< Low-level cache object */
lwc_string *mime_type; /**< Original MIME type of data */
- const content_handler *handler; /**< Handler for content */
+ const struct content_handler *handler; /**< Handler for content */
content_status status; /**< Current status. */
@@ -161,7 +154,7 @@ struct content {
extern const char * const content_type_name[];
extern const char * const content_status_name[];
-nserror content__init(struct content *c, const content_handler *handler,
+nserror content__init(struct content *c, const struct content_handler *handler,
lwc_string *imime_type, const struct http_parameter *params,
struct llcache_handle *llcache, const char *fallback_charset,
bool quirks);