diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 02:47:00 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 09:44:33 -0800 |
commit | 1712d7835e0fbba60d578b52b21b95b046805757 (patch) | |
tree | b5a7413720202e0ac52b3bd07c5f481e86c7ddb5 /src/helper/fileio.h | |
parent | 4882647f3ee7fc0680c49fbd27a484359fd7e86a (diff) |
src/helper: wrap and clean headers.
Remove all useless 'extern' keywords from function prototypes.
Wraps long lines for readability.
Diffstat (limited to 'src/helper/fileio.h')
-rw-r--r-- | src/helper/fileio.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/helper/fileio.h b/src/helper/fileio.h index d1e227ca..3f47cb9b 100644 --- a/src/helper/fileio.h +++ b/src/helper/fileio.h @@ -54,14 +54,20 @@ typedef struct fileio_s FILE *file; } fileio_t; -extern int fileio_write(fileio_t *fileio, uint32_t size, const uint8_t *buffer, uint32_t *size_written); -extern int fileio_read(fileio_t *fileio, uint32_t size, uint8_t *buffer, uint32_t *size_read); -extern int fileio_fgets(fileio_t *fileio, uint32_t size, char *buffer); -extern int fileio_seek(fileio_t *fileio, uint32_t position); -extern int fileio_close(fileio_t *fileio); -extern int fileio_open(fileio_t *fileio, const char *url, enum fileio_access access, enum fileio_type type); -extern int fileio_read_u32(fileio_t *fileio, uint32_t *data); -extern int fileio_write_u32(fileio_t *fileio, uint32_t data); +int fileio_open(fileio_t *fileio, + const char *url, enum fileio_access access, enum fileio_type type); +int fileio_close(fileio_t *fileio); + +int fileio_seek(fileio_t *fileio, uint32_t position); +int fileio_fgets(fileio_t *fileio, uint32_t size, char *buffer); + +int fileio_read(fileio_t *fileio, + uint32_t size, uint8_t *buffer, uint32_t *size_read); +int fileio_write(fileio_t *fileio, + uint32_t size, const uint8_t *buffer, uint32_t *size_written); + +int fileio_read_u32(fileio_t *fileio, uint32_t *data); +int fileio_write_u32(fileio_t *fileio, uint32_t data); #define ERROR_FILEIO_LOCATION_UNKNOWN (-1200) #define ERROR_FILEIO_NOT_FOUND (-1201) |