struct lbx_file_ops {
size_t (*read)(void *buf, size_t size, void *handle);
int (*seek)(void *handle, long offset, int whence);
- long (*tell)(void *handle);
int (*eof) (void *handle);
};
struct lbx *lbx_open(void *handle, const struct lbx_file_ops *fops,
int (*destructor)(void *handle), const char *name);
struct lbx *lbx_fopen(const char *);
-struct lbx *lbx_mopen(void *, size_t, const char *);
int lbx_close(struct lbx *);
/* File operations */