about summary refs log tree commit diff
path: root/misc/stream.h
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-11-02 21:03:56 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-11-02 21:03:56 +0000
commit00e242ce2b0cdf75e0b3c7aca4169dbcba582e1c (patch)
tree92c7945956daeffb882fb8eecfd9d4fad8ca9bfc /misc/stream.h
parentabe4001938d637808bd5cca29124a02edff8c51c (diff)
downloadbtpd-00e242ce2b0cdf75e0b3c7aca4169dbcba582e1c.tar.gz
btpd-00e242ce2b0cdf75e0b3c7aca4169dbcba582e1c.zip
Add bts_filename which gets the current filename from a bt_stream.
Diffstat (limited to 'misc/stream.h')
-rw-r--r--misc/stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/stream.h b/misc/stream.h
index 0b5b7aa..c67e3f4 100644
--- a/misc/stream.h
+++ b/misc/stream.h
@@ -23,4 +23,6 @@ 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_sha(struct bt_stream *bts, off_t start, off_t length, uint8_t *hash);
 
+const char *bts_filename(struct bt_stream *bts);
+
 #endif