Re: [mlview-list] A plugin system for MlView



Scott <wwsw3 earthlink net> writes:

> Philippe Mechaï wrote:
>
>> Just grabbed your archive to have a test: it's cooool...
>
> I just grabbed it too. Very nice Nicolas!

Thanks.

>> On the technical side, did you write some API for plugins ? Like, what
>> can i do from a plugin now etc ?
>
> yeah, what can we do from a plugin and where do the plugins go?

There is no plugin-specific API. Each plugin has its MlViewPlugin, which
countains his description, a user_data field where the plugin can put the
data he wants to keep, and a pointer to MlViewAppContext. And after that
a plugin can basically do everything some code in the application can do. 
He just has to export a load and an unload function and put the symbols'
names in the descriptions. I put an example in tests/ (firstplugin.c,
firstplugin.xml).

I will wrote some documentation.

Nicolas Centa



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]