From: Vitaly V. B. <vit...@us...> - 2004-09-28 19:19:18
|
On Tue, 28 Sep 2004 19:34:19 +0200 Dennis Smit <sy...@yo...> wrote: > I'd (finally) like to implement the plugin flag stuff. > > On the list I now have: > > VISUAL_PLUGIN_FLAG_NOT_REENTRANT (some plugins, like alsa could > use the singleton design pattern > to solve this, not sure about > this tho) > > VISUAL_PLUGIN_FLAG_SPECIAL (flag for plugins like > gdkpixbuf, plugins that > have a special function > which shouldn't be used > in for example, amarok > or the xmms plugin) Looks good :) > More suggestions ? May be implement something like VISUAL_PLUGIN_FLAG_SPECIAL but in an opposite way. I.e. plugin must be used only with this application. This application simply provide some kind of special data/interfaces that can not be used with Libvisual. One nice way to implement this is to use const char* identifier to specify, say, application id. Numeric id's -- enums and #defines not very useful here, I think. We could place this id to VisPluginInfo. If so, we should add some void *dummys[5]; so we can extend functionality further without breaking plugin ABI. -- Vitaly GPG Key ID: F95A23B9 |