summary refs log tree commit diff
path: root/misc/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/stream.h')
-rw-r--r--misc/stream.h8
1 files changed, 5 insertions, 3 deletions
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);