mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 04:54:25 +00:00
add floppy_get_blocksize()
This commit is contained in:
parent
ec64b11647
commit
e0e7197acb
@ -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
|
||||
|
||||
|
6
libfloppy/floppy_get_blocksize.c
Normal file
6
libfloppy/floppy_get_blocksize.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include "libfloppy.h"
|
||||
|
||||
int floppy_get_blocksize(floppy_device_t *device)
|
||||
{
|
||||
return SECTOR_SIZE;
|
||||
}
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user