add floppy_get_blocksize()

This commit is contained in:
Laurent Vivier 2005-11-23 22:36:15 +00:00
parent ec64b11647
commit e0e7197acb
3 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,8 @@ CPPFLAGS = -I$(TOP)/../libmacos -DARCH_M68K
LIBRARY = libfloppy.a
SOURCES = floppy_read_sector.c floppy_close.c floppy_open.c
SOURCES = floppy_read_sector.c floppy_close.c floppy_open.c \
floppy_get_blocksize.c
HEADERS = libfloppy.h

View File

@ -0,0 +1,6 @@
#include "libfloppy.h"
int floppy_get_blocksize(floppy_device_t *device)
{
return SECTOR_SIZE;
}

View File

@ -21,4 +21,5 @@ typedef struct {
extern floppy_device_t *floppy_open(int unit);
extern int floppy_close(floppy_device_t* device);
extern int floppy_read_sector(floppy_device_t *device,off_t offset, void* buffer, size_t size);
extern int floppy_get_blocksize(floppy_device_t *device);
#endif /* __LIBFLOPY_H__ */