libdragon
|
00001 00006 #ifndef __LIBDRAGON_DIR_H 00007 #define __LIBDRAGON_DIR_H 00008 00009 #ifdef __cplusplus 00010 extern "C" { 00011 #endif 00012 00023 #define DT_REG 1 00024 00025 #define DT_DIR 2 00026 00031 typedef struct 00032 { 00034 char d_name[256]; 00036 int d_type; 00037 } dir_t; 00038 00041 int dir_findfirst( const char * const path, dir_t *dir ); 00042 int dir_findnext( const char * const path, dir_t *dir ); 00043 00044 #ifdef __cplusplus 00045 } 00046 #endif 00047 00048 #endif