Re: [AD] file interface fopen

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


On December 18, 2010, Matthew Leverton wrote:
> On Sat, Dec 18, 2010 at 4:29 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > That's fine by me.  I would call them:
> > 
> >    ALLEGRO_FILE *al_create_file_handle(ALLEGRO_FILE_INTERFACE *vt,
> >        void *userdata);
> >    void *al_get_file_userdata(ALLEGRO_FILE *f);
> >    void al_destroy_file_handle(ALLEGRO_FILE *f);
> > 
> > The fi_fopen2 method is not required, is it?
> 
> It's required if you want third party addons to be able to use the
> standard al_fopen function. Say you have:
> 
> al_load_bitmap("foo.archive#foo.bmp");
> 
> So with that, it would call al_fopen() and then you're back to the
> same problem of needing the internals.

I don't think its required if we just fix the interface so all the plugins use 
the same userdata stuff, or am I off base?

> --
> Matthew Leverton
> 
> ---------------------------------------------------------------------------
> --- Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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