Ignore:
Timestamp:
Jul 17, 2015, 4:34:54 PM (9 years ago)
Author:
guerin
Message:

fat32: use struct for _fat_file_info(), pass is_dir

File:
1 edited

Legend:

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

    r587 r623  
    124124/*******************************************************************************/
    125125
     126#define FAT_INITIALISED         0xBABEF00D
     127
     128#ifndef _FAT32_SHARED
     129#define _FAT32_SHARED
     130typedef struct fat_file_info_s
     131{
     132    unsigned int size;
     133    unsigned int offset;
     134    unsigned int is_dir;
     135}   fat_file_info_t;
    126136
    127137#define SEEK_SET                0
    128138#define SEEK_CUR                1
    129139
    130 #define FAT_INITIALISED         0xBABEF00D
    131 
    132140#define O_RDONLY                0x01
    133141#define O_CREATE                0x20
     142#endif // _FAT32_SHARED
    134143
    135144/********************************************************************************
     
    227236extern int _fat_close( unsigned int fd_id );               // file descriptor
    228237
    229 extern int _fat_file_info( unsigned int  fd_id,            // file descriptor
    230                            unsigned int* size,             // file size
    231                            unsigned int* offset );         // current offset
     238extern int _fat_file_info( unsigned int            fd_id,  // file descriptor
     239                           struct fat_file_info_s* info ); // file info struct
    232240
    233241extern int _fat_read( unsigned int fd_id,                  // file descriptor 
Note: See TracChangeset for help on using the changeset viewer.