Re: [AD] [4.3] New API?

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


On 2006-08-09, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> On Wednesday 09 August 2006 12:44 am, Peter Wang wrote:
> > On 2006-08-09, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> > > How do we feel about something like:
> > >
> > > al_set_path_hook(AL_PH_FOPEN, &fptr); // for extensions to use
> > >
> > > and have no global "set path hook vtable" function.
> >
> > I can't see what it does.  Show the types.
> 
> VTABLE is like any vtable, will list needed hooks (ie: open, close, read, 
> write, etc).
> 
> enum {
> 	AL_PH_FOPEN = 1,
> 	AL_PH_FCLOSE,
> 	AL_END
> };
> 
> thats basically all there is to it.

Excuse me, I still haven't mastered mind reading.

Peter





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