Re: A plugin system for MlView
Nicolas Centa <[email protected]> Fri, 29 Oct 2004 15:21:13 +0200
| Newsgroups | gmane.editors.mlview.devel |
|---|---|
| Message-ID | <[email protected]> |
Scott <[email protected]> writes: > Philippe Mecha=EF 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.=20 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