summaryrefslogtreecommitdiff
path: root/src/drivers/ao_fat.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-01 02:03:57 -0700
committerKeith Packard <keithp@keithp.com>2013-04-01 02:03:57 -0700
commit79d01a571935138b24b86a7181307ee014d248ed (patch)
tree34b9f35be63facd6ab667affb7f189de37f502b1 /src/drivers/ao_fat.h
parent0838b6c8797b84cf8df8f92ee20fb6ae79e434d7 (diff)
altos: Support open on multiple simultaneous FAT files
Need to be able to see the contents of a log file, even if the logger is running. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_fat.h')
-rw-r--r--src/drivers/ao_fat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/ao_fat.h b/src/drivers/ao_fat.h
index fe154cdf..01435363 100644
--- a/src/drivers/ao_fat.h
+++ b/src/drivers/ao_fat.h
@@ -81,20 +81,20 @@ int8_t
ao_fat_creat(char name[11]);
int8_t
-ao_fat_close(void);
+ao_fat_close(int8_t fd);
int
-ao_fat_read(void *dest, int len);
+ao_fat_read(int8_t fd, void *dest, int len);
int
-ao_fat_write(void *src, int len);
+ao_fat_write(int8_t fd, void *src, int len);
#define AO_FAT_SEEK_SET 0
#define AO_FAT_SEEK_CUR 1
#define AO_FAT_SEEK_END 2
int32_t
-ao_fat_seek(int32_t pos, uint8_t whence);
+ao_fat_seek(int8_t fd, int32_t pos, uint8_t whence);
int8_t
ao_fat_unlink(char name[11]);