Re: [AD] file interface fopen |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2010-12-19, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> On Sun, Dec 19, 2010 at 12:33 AM, Thomas Fjellstrom
> <tfjellstrom@xxxxxxxxxx> wrote:
> > 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?
> >
> If the current interfaces (stdio, etc) used the userdata pointer
> instead of the struct extension, then there would only need to be a
> single fi_open hook.
You could make all the fi_* methods take the userdata pointer in
addition to or instead of the ALLEGRO_FILE argument.
Peter