home *** CD-ROM | disk | FTP | other *** search
- #ifndef DIR_DATA_H
- #define DIR_DATA_H
-
- #include <sys/dir.h>
-
- typedef struct
- {
- char *dirname;
- BPTR cdir;
- struct FileInfoBlock fib;
- struct idirent *files, *pos;
- int seeked;
- struct MsgPort *task; /* Used to fake a value for st_dev */
- } iDIR;
-
- struct idirent
- {
- struct idirent *next;
- /* Info needed for stat */
- long numblocks;
- long size;
- struct DateStamp date;
- long type;
- long protection;
- struct dirent entry;
- };
-
- extern DIR *last_dir;
- extern struct idirent *last_entry;
-
- BPTR _get_cd(void);
-
- #endif
-