[Compcomm] Building and using the compiz-plugins-premerge stuff

Danny Baumann dannybaumann at web.de
Tue Apr 24 10:45:20 EDT 2007


Hi,

> What about the new metadata stuff (that Annotate already uses for
> example)? Doesn't that make bcop obsolete? Is it the better way to do
> options now? I want to simplify the option processing in Animation,
> and am wondering what the better way is (I'd prefer not having extra
> dependencies though).

No, it doesn't make it obsolete. You have to generate some metadata XML
file in any case in order to make future settings tools happy. BCOP uses
that XML and generates the option handling source code from it so the
code is automatically updated whenever you update the XML files. To add
an option, you just add it to the XML - which you have to do anyway -
and run BCOP. After that, you can start using it right away.
In my opinion, BCOP is the best way to handle option processing which is
available at the moment - but I am obviously a bit biased ;-)
The best idea most likely really is to have a short peek at a plugin
using BCOP (such as group as the complexity of group is similar to
animation) and the generated header files (e.g. group_options.h) to see
how the source code usage looks like and if it fits your needs.

Regards,

Danny




More information about the CompComm mailing list