Re: [AD] Splitting filesystem APIs

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


On Sat April 18 2009, Peter Wang wrote:
> I'm quite sick of discussing this and you probably are all as well.
> Just to let you know:
>
> Tomorrow (later today) I plan to split up the current fshook API into
> the traditional divisions: one part to deal with file streams, and one
> part deal with directory hierarchies.  A new type, ALLEGRO_FILE, will
> correspond to FILE.  For most users, including all uses in the addons
> right now, that's the only difference they will see.
>
> I will follow Elias's suggestion for a thread-local setting for the
> current vtable, integrated with al_(re)store_state.  I won't pursue
> my URI proposal.  Of course, it could be implemented by setting the
> vtable.
>
> Then I will concentrate on fixing the corner cases in the stream
> operations, and leave the directory stuff to someone who cares.

Just how is readdir supposed to work now? We already agreed on making it 
return a ALLEGRO_FS_ENTRY. Splitting it won't allow that, and will make the 
api annoying to use.

> Peter
>
>
> ---------------------------------------------------------------------------
>--- Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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