X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fdrivers%2Fao_fat.h;h=39f4207bb1dc6e418a02769918b4c1c06bf75c2d;hp=fe154cdfd42043958c91b9dd930cb1b232d87952;hb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;hpb=659a6915f5ba5129096e55ccc04c975d216546ae diff --git a/src/drivers/ao_fat.h b/src/drivers/ao_fat.h index fe154cdf..39f4207b 100644 --- a/src/drivers/ao_fat.h +++ b/src/drivers/ao_fat.h @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -81,20 +82,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]);