about summary refs log tree commit diff
path: root/misc/stream.h
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-09-12 15:37:55 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-09-12 15:37:55 +0000
commit334c94db4691131b11f95e3bce6b5fda70edd3a1 (patch)
tree423fdbc1cc8966cc4befe5dc950a7f1c30fbf454 /misc/stream.h
parentcd0eb82f20b4b0186207b8f5653b83dde83ca03c (diff)
downloadbtpd-334c94db4691131b11f95e3bce6b5fda70edd3a1.tar.gz
btpd-334c94db4691131b11f95e3bce6b5fda70edd3a1.zip
There is no spoon^H^H^H^Htruct metainfo. Use struct mi_file instead.
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);