On Mon, May 01, 2006 at 04:50:13 -0400, Dave Robillard
wrote:
I guess the port things aren't a good
justification for the creation
parameters, you're right. The question, then, is what is the
recommended way for the host to provide functions to the plugin? That's
what Lars was originally seeking (and solves the above allocation
problem as well)
I think that if it's provided as part of a HostFeature (so the plugin
knows it exists and what it's called) it can be obtained using the OS's
normal dynamic linking functions. I've not tried though.
Do you mean that the plugin should dlopen the host? Wouldn't that
require some way to pass the path to the host program to the plugin (in
which case you might as well pass a function pointer directly)?
--
Lars Luthman
PGP key: