1
0
mirror of https://github.com/vivier/EMILE.git synced 2024-12-29 11:31:20 +00:00
EMILE/libblock/libblock.h
Laurent Vivier 9bd9755dbb Update email address
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
2013-09-05 14:45:27 +02:00

20 lines
615 B
C

/*
*
* (c) 2005 Laurent Vivier <Laurent@Vivier.EU>
*
*/
#include <sys/types.h>
#include <unistd.h>
#include <libstream.h>
extern int block_init(device_io_t *device, filesystem_io_t *fs);
extern stream_VOLUME *block_mount(device_io_t *device);
extern int block_umount(stream_VOLUME *volume);
extern stream_FILE *block_open(stream_VOLUME *volume, char *path);
extern void block_close(stream_FILE *file);
extern size_t block_read(stream_FILE *file, void *ptr, size_t size);
extern int block_lseek(stream_FILE *file, off_t offset, int whence);
extern int block_fstat(stream_FILE *file, struct stream_stat *buf);