RE: [AD] al_find* in Unix

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


Title: RE: [AD] al_find* in Unix

> DOS legacy. I agree this should be modified for the 5.0 version.

Hmmm :)
In which case, may I propose:
int find_files(const char *pattern, int /* continue */ (*callback)(const char *filename, const struct AL_FILE_PROPERTIES *properties));

?

AL_FILE_PROPERTIES would be an Allegro specific structure mapping
some of the different attributes in a OS independant way.
The callback can return 0 or 1, and can set errno.
Return value of find_files could be used to detect an error in
opendir and friends.

--
Vincent Penquerc'h



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