diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-06-03 13:49:54 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-06-03 13:49:54 +0000 |
commit | c7736ea91eb566669a1e214ceaa88c77c6ad50a2 (patch) | |
tree | 144584448884864f7b0c5feb3437bf8b4607d0fd /os | |
parent | c18703563de38b458aba41b345e56a736480e0ac (diff) | |
download | ChibiOS-c7736ea91eb566669a1e214ceaa88c77c6ad50a2.tar.gz ChibiOS-c7736ea91eb566669a1e214ceaa88c77c6ad50a2.tar.bz2 ChibiOS-c7736ea91eb566669a1e214ceaa88c77c6ad50a2.zip |
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
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/include/hal_files.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/include/hal_files.h b/os/hal/include/hal_files.h index 4d362969b..1636828dd 100644 --- a/os/hal/include/hal_files.h +++ b/os/hal/include/hal_files.h @@ -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.
|