From 334c94db4691131b11f95e3bce6b5fda70edd3a1 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Tue, 12 Sep 2006 15:37:55 +0000 Subject: There is no spoon^H^H^H^Htruct metainfo. Use struct mi_file instead. --- misc/stream.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'misc/stream.h') diff --git a/misc/stream.h b/misc/stream.h index 30ce443..0b2e9c2 100644 --- a/misc/stream.h +++ b/misc/stream.h @@ -5,7 +5,9 @@ typedef int (*fdcb_t)(const char *, int *, void *); typedef void (*hashcb_t)(uint32_t, uint8_t *, void *); struct bt_stream { - struct metainfo *meta; + unsigned nfiles; + struct mi_file *files; + off_t totlen; fdcb_t fd_cb; void *fd_arg; unsigned index; @@ -14,8 +16,8 @@ struct bt_stream { int fd; }; -int bts_open(struct bt_stream **res, struct metainfo *meta, fdcb_t fd_cb, - void *fd_arg); +int bts_open(struct bt_stream **res, unsigned nfiles, struct mi_file *files, + fdcb_t fd_cb, void *fd_arg); int bts_get(struct bt_stream *bts, off_t off, uint8_t *buf, size_t len); int bts_put(struct bt_stream *bts, off_t off, const uint8_t *buf, size_t len); int bts_close(struct bt_stream *bts); -- cgit 1.4.1