Re: [AD] load_datafile_object using index

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


On Tue, 2005-04-19 at 06:56 +0200, spoofer255@xxxxxxxxxx wrote:
> I like a idea about DATAFILE_INDEX, I'll update my patch when I get
> back from school. I also think I would be good to add datafile name
> into DATAFILE_INDEX struct so we he:
> 
> DATAFILE_INDEX  *load_datafile_index(const char *filename);
> DATAFILE *load_datafile_object_indexed(const DATAFILE_INDEX *index);
>
> User don't have to worry about giving wrong name.
> 

True, makes a lot of sense. DATAFILE_INDEX just represents a complete,
indexed datafile.. and you can load single elements by their id. Oh, and
I assume, you forgot a second parameter in load_datafile_object_indexed,
above.

-- 
Elias Pschernig





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