Re: AW: [AD] Paletted Bitmap Grabber PlugIn & Allegro Extension

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Laurence Withers <lwithers@xxxxxxxxxx> writes:
> I see your problem. Basically, when your plugin is initialised, it needs
> to register the custom type. But, since there is no specific plugin init
> function, there is no way of doing this.

The plugin init code is stored in the .inc files. These are included 
directly into datedit.c, which executes them as part of the 
datedit_init() routine.

> If nobody sees any problems, we could extend the DATEDIT_OBJECT_INFO
> vtable to allow an initialisation function. This allows us to call,
> among other things, register_datafile_object() . If everyone is happy
> with this change, I will code it.

No need, just call register_datafile_object() from inside your plugin 
.inc file. If the problem is that you are trying to register functions 
which aren't prototyped there, just put a prototype for them into the 
.inc file as well.



-- 
Shawn Hargreaves - shawn@xxxxxxxxxx - http://www.talula.demon.co.uk/
"A binary is barely software: it's more like hardware on a floppy disk."



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/