From: Jan de R. <psi...@ho...> - 2004-07-25 14:14:01
|
Heya Vitaly, thanks for your reply! Looks quite good, tho I've got some questions. ____ struct _VisPluginInfo { uint32_t struct_size; uint32_t api_version; VisPluginType plugin_type; const char *name; const char *author; const char *version; const char *about; const char *help; /* VisPluginData* will be allocated by Libvisual. * Plugin only needs to init priv, if necessary. */ int (*init)(VisPluginData*); int (*cleanup)(VisPluginData*); union { struct { int (*x)(); } actor; struct { int (*x)(); } input; struct { int (*x)(); } morph; } preferences; what are these preferences for ? /* // count defaults to 1 const VisPluginInfo *get_plugin_info(int *count) { const VisPluginInfo info[] = { / * blah-blah-blah * / }; *count = sizeof(info)/sizeof(*info); return info; } What is count for ? Besides these questions, it looks good, if you can create a patch for this and put it on the list, it would be great! Also, I've been VisMemizing most of libvisual yesterday and also added a new tool 'lv-inspect' that gives all information about a plugin. (A question regarding this, how can I build a tool that needs libvisual to compile but resides in the same buildtree and should be installed on make install ?) Thanks and cheers, Dennis _________________________________________________________________ Nieuwe cursus MS Word on-line. Ook met opleidingscheques! http://www.msn.be/msnacademy/ |