Changed fileStreamGetSize() in order to avoid types mixing.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12079 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-06-03 13:49:54 +00:00
parent c18703563d
commit c7736ea91e
1 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,7 @@ typedef uint32_t fileoffset_t;
/* Get last error code method.*/ \
msg_t (*geterror)(void *instance); \
/* File get size method.*/ \
msg_t (*getsize)(void *instance); \
msg_t (*getsize)(void *instance, fileoffset_t *offset); \
/* File get current position method.*/ \
msg_t (*getposition)(void *instance, fileoffset_t *offset); \
/* File set current position method.*/ \
@ -201,12 +201,13 @@ typedef struct {
* @brief Returns the current file size.
*
* @param[in] ip pointer to a @p FileStream or derived class
* @param[out] offset current size of the file
* @return The file size.
* @retval FILE_ERROR operation failed.
*
* @api
*/
#define fileStreamGetSize(ip) ((ip)->vmt->getsize(ip))
#define fileStreamGetSize(ip, offset) ((ip)->vmt->getsize(ip), offset)
/**
* @brief Returns the current file pointer position.