EMILE/tools/device.h

20 lines
486 B
C
Raw Normal View History

2005-11-16 14:03:30 +00:00
/*
*
* (c) 2005-2007 Laurent Vivier <Laurent@Vivier.EU>
2005-11-16 14:03:30 +00:00
*
*/
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
2005-11-21 22:09:16 +00:00
#include <libstream.h>
extern int device_sector_size;
extern long device_open(char *device, int flags);
2005-11-21 22:09:16 +00:00
extern void device_close(void *data);
extern int device_write_sector(void *data,off_t offset, void* buffer, size_t size);
2005-11-21 22:09:16 +00:00
extern int device_read_sector(void *data, off_t offset, void* buffer, size_t size);
2007-10-10 16:47:03 +00:00
extern int device_get_blocksize(void *data);