Ignore:
Timestamp:
Jul 24, 2015, 3:10:48 PM (9 years ago)
Author:
guerin
Message:

fat32: implement _fat_opendir, _fat_closedir, _fat_readdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_fat32/fat32.h

    r654 r658  
    134134    unsigned int is_dir;
    135135}   fat_file_info_t;
     136
     137typedef struct fat_dirent_s
     138{
     139    unsigned int cluster;
     140    unsigned int size;
     141    unsigned int is_dir;
     142    char name[36];
     143}   fat_dirent_t;
    136144
    137145#define SEEK_SET                0
     
    237245extern int _fat_close( unsigned int fd_id );               // file descriptor
    238246
    239 extern int _fat_file_info( unsigned int            fd_id,  // file descriptor
    240                            struct fat_file_info_s* info ); // file info struct
     247extern int _fat_file_info( unsigned int     fd_id,         // file descriptor
     248                           fat_file_info_t* info );        // file info struct
    241249
    242250extern int _fat_read( unsigned int fd_id,                  // file descriptor 
     
    259267
    260268extern int _fat_mkdir( char* pathname );                   // path from root
     269
     270extern int _fat_opendir( char* pathname );                 // path from root
     271
     272extern int _fat_closedir( unsigned int fd_id );            // file descriptor
     273
     274extern int _fat_readdir( unsigned int  fd_id,              // file descriptor
     275                         fat_dirent_t* entry );            // directory entry
    261276
    262277extern int _fat_list( char* pathname );                    // path from root
Note: See TracChangeset for help on using the changeset viewer.