[Kst] Plugin local data

Barth Netterfield netterfield at astro.utoronto.ca
Thu Feb 5 17:19:31 CET 2004

On Thursday 05 February 2004 01:12 am, George Staikos wrote:
>    I implemented the interface for plugin local data, but I'm wondering
> what your preferences are with respect to this.  Here is how it works:
> - in the XML file, add a node <localdata/> to specify that you want the
> pointer
> - your function must now take a parameter at the end "void**".  If you
> don't specify the localdata node, you MUST NOT add the new parameter.
> Now my question for everyone is, do you prefer to have one such pointer for
> each instance of the plugin (total=n for n plugins), or one such pointer
> for ALL instances of the plugin (total=1)?

The applications I can think of (eg, persistent averaging of data) would 
benefit from n for n plugins (one for each instance).  I can't off hand think 
of why it would be useful to have data shared between instances.


More information about the Kst mailing list