mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2025-01-24 00:41:11 +01:00
40 lines
584 B
C
40 lines
584 B
C
|
#if DEVKITPPCVER >= 23
|
||
|
|
||
|
/* <dir.h>
|
||
|
|
||
|
provides prototypes for custom directory functions in libsysbase
|
||
|
|
||
|
*/
|
||
|
#ifndef my_dir_h_
|
||
|
#define my_dir_h_
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
/* Directory iterator for mantaining state between dir* calls */
|
||
|
/*
|
||
|
typedef struct {
|
||
|
int device;
|
||
|
void *dirStruct;
|
||
|
} DIR_ITER;
|
||
|
*/
|
||
|
|
||
|
DIR_ITER* diropen (const char *path);
|
||
|
int dirreset (DIR_ITER *dirState);
|
||
|
int dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat);
|
||
|
int dirclose (DIR_ITER *dirState);
|
||
|
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif // _dir_h_
|
||
|
|
||
|
#endif
|
||
|
|