buse/buse.h

20 lines
467 B
C
Raw Normal View History

#ifndef BUSE_H_INCLUDED
#define BUSE_H_INCLUDED
#include <sys/types.h>
struct buse_operations {
int (*read)(void *buf, u_int32_t len, u_int64_t offset);
int (*write)(const void *buf, u_int32_t len, u_int64_t offset);
2011-10-10 07:30:30 +02:00
int (*disc)();
int (*flush)();
int (*trim)(u_int64_t from, u_int32_t len);
u_int64_t size;
};
int buse_main(int argc, char *argv[], const struct buse_operations *bop,
void *userdata);
2011-09-20 10:31:35 +02:00
#endif /* BUSE_H_INCLUDED */