[Kst] parameters for plugins
staikos at kde.org
Fri May 16 00:06:52 CEST 2003
Plugins can support parameters via the <paralist> node. It seems like these
would be important. How does the function signature take these? It seems
to me that we would need some sort of map structure to get these to the
plugin. I can make the dialog generate an interface for these but I don't
see a point right now if there's no way to use them.
An alternative approach would be to require that the "name" of each parameter
is a global symbol in the plugin. Then we could pull out that symbol and set
it accordingly. We would manage the memory, cleaning up as necessary. Then
it would be narrowed to a problem of setting int/double/char* values before
calling the plugin, and clearing them after calling the plugin. No data
structure is needed then.
How do other apps using these plugins handle the parameter list?
KDE Developer http://www.kde.org/
Staikos Computing Services Inc. http://www.staikos.net/
More information about the Kst