diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-07-07 22:10:51 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-07-07 22:10:51 +0000 |
commit | 133c3ee759bdc27f661390633064d7554027fbcb (patch) | |
tree | 5490bd5ef69499dc8d91f1e9c0252196ae0be8c6 /content/content.h | |
parent | 1abf8018a907cd95af01dfe0196786928988a653 (diff) | |
download | netsurf-133c3ee759bdc27f661390633064d7554027fbcb.tar.gz netsurf-133c3ee759bdc27f661390633064d7554027fbcb.tar.bz2 |
[project @ 2003-07-07 22:10:51 by jmb]
Rewrite plugin system backend.
svn path=/import/netsurf/; revision=210
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/content/content.h b/content/content.h index 786013938..dd9b50592 100644 --- a/content/content.h +++ b/content/content.h @@ -48,6 +48,7 @@ typedef enum { #ifdef riscos CONTENT_PNG, CONTENT_GIF, + CONTENT_PLUGIN, #endif CONTENT_OTHER, CONTENT_UNKNOWN /* content-type not received yet */ @@ -85,6 +86,7 @@ struct content { char *url; content_type type; + char *mime_type; enum { CONTENT_STATUS_TYPE_UNKNOWN, /* type not yet known */ CONTENT_STATUS_LOADING, /* content is being fetched or converted @@ -156,6 +158,14 @@ struct content osspriteop_area *sprite_area; // Sprite area char *sprite_image; // Sprite image } gif; + + /* Structure for plugin */ + struct + { + char *data; /* object data */ + unsigned long length; /* object length */ + char* sysvar; /* system variable set by plugin */ + } plugin; #endif /* downloads */ struct @@ -180,7 +190,7 @@ struct content content_type content_lookup(const char *mime_type); struct content * content_create(char *url); -void content_set_type(struct content *c, content_type type); +void content_set_type(struct content *c, content_type type, char *mime_type); void content_process_data(struct content *c, char *data, unsigned long size); void content_convert(struct content *c, unsigned long width, unsigned long height); void content_revive(struct content *c, unsigned long width, unsigned long height); |