summaryrefslogtreecommitdiff
path: root/riscos/plugin.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-07-26 23:16:21 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-07-26 23:16:21 +0000
commit784ffb42e6dee010286d6ab61f190b3d29748818 (patch)
treeb0d8f9b78d506e330ae300dde1b75ac4e21223a6 /riscos/plugin.h
parent4b4e4dba95374aa2dc357f39e48f50775812bca0 (diff)
downloadnetsurf-784ffb42e6dee010286d6ab61f190b3d29748818.tar.gz
netsurf-784ffb42e6dee010286d6ab61f190b3d29748818.tar.bz2
[project @ 2005-07-26 23:16:21 by jmb]
Implement plugin streams properly (can now have multiple, simultaneous streams to a plugin). Fix race condition when performing non-file streams. Support for GETting an URL and streaming it to a plugin (this is untested, due to a lack of access to plugins that actually use this functionality). General source tidyup. svn path=/import/netsurf/; revision=1824
Diffstat (limited to 'riscos/plugin.h')
-rw-r--r--riscos/plugin.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/riscos/plugin.h b/riscos/plugin.h
index 8b53f2eb1..8c49a264b 100644
--- a/riscos/plugin.h
+++ b/riscos/plugin.h
@@ -16,25 +16,23 @@ struct box;
struct browser_window;
struct content;
struct object_params;
+struct plugin_stream;
+/* We have one content per instance of a plugin */
struct content_plugin_data {
struct browser_window *bw; /* window containing this content */
struct content *page; /* parent content */
struct box *box; /* box containing this content */
char *taskname; /* plugin task to launch */
char *filename; /* filename of parameters file */
- char *datafile; /* filename of filestreamed file */
bool opened; /* has this plugin been opened? */
int repeated; /* indication of opening state */
unsigned int browser; /* browser handle */
unsigned int plugin; /* plugin handle */
- unsigned int browser_stream; /* browser stream handle */
- unsigned int plugin_stream; /* plugin stream handle */
unsigned int plugin_task; /* plugin task handle */
- unsigned int consumed; /* size of data consumed by plugin */
bool reformat_pending; /* is a reformat pending? */
int width, height; /* reformat width & height */
- bool file_stream_waiting; /* waiting to stream as file */
+ struct plugin_stream *streams; /* list of active streams */
};
/* function definitions */