From 784ffb42e6dee010286d6ab61f190b3d29748818 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 26 Jul 2005 23:16:21 +0000 Subject: [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 --- riscos/plugin.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'riscos/plugin.h') 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 */ -- cgit v1.2.3