/* DE1: $Id: sys_findfile.h 1714 2004-05-31 15:17:03Z skyjake $ * Copyright (C) 2003, 2004 Jaakko Keränen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not: http://www.opensource.org/ */ /* * sys_findfile.h: Win32-Style File Finding */ #ifndef __DOOMSDAY_FILE_FIND_H__ #define __DOOMSDAY_FILE_FIND_H__ // File attributes. #define A_SUBDIR 0x1 #define A_RDONLY 0x2 #define A_HIDDEN 0x4 #define A_ARCH 0x8 typedef struct finddata_s { void *finddata; long date; long time; long size; char *name; long attrib; } finddata_t; /* * The functions return zero if successful. */ int myfindfirst(const char *filename, finddata_t * dta); int myfindnext(finddata_t * dta); void myfindend(finddata_t * dta); #endif