On Sun, Oct 05, 2008 at 05:09:02PM +0200, Roland Bouman wrote: > I have a question though. In your blog > (http://fallenpegasus.livejournal.com/759373.html) I read that the (a > pointer to) THD gets passed to the plugin's methods. Is that how > drizzle plugins will work? I mean, doesn't passing something as raw as > a pointer to THD make it hard to use plugins? I mean, every new build > of the server might have introduced some change to THD, and this means > the user would have to recompile their plugins too, no?
Yes. This is intended. No gaurentee of source or binary compatibility between versions. All plugins should be in the main drizzle tree. That way, if you're changing an interface, you either fix it up for all plugins in the tree or don't get your code in :) Of course, good interfaces are required. > I know that currently the same practice is used for (most of) MySQL > 5.1's plugins. But isn't this the moment to rethink all that and make > sure the plugins get passed only exactly what they need, without the > possibility to mess things up by (god forbid) changing the state of > the passed THD? That could be the intent of the plugin :) -- Stewart Smith _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : drizzle-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp