about summary refs log tree commit diff
path: root/misc/btpd_if.h
diff options
context:
space:
mode:
authorMarq Schneider <queueRAM@gmail.com>2012-05-06 22:54:39 -0500
committerMarq Schneider <queueRAM@gmail.com>2012-05-06 22:54:39 -0500
commit2fd1f7c34e9ee85d5b995dc165fe8531fcb0ad31 (patch)
tree9ade107538be478fad7b53cc35bb4fe464d3a04e /misc/btpd_if.h
parentb0b8a2faec6609582e61e78cd8242e866fb31019 (diff)
downloadbtpd-2fd1f7c34e9ee85d5b995dc165fe8531fcb0ad31.tar.gz
btpd-2fd1f7c34e9ee85d5b995dc165fe8531fcb0ad31.zip
Add optional label to be associated with torrent.
If none given, use announce URL as label.
Torrents added with previous versions of btpd will show up as "bad torrent entry"

Closes GH-26
Diffstat (limited to 'misc/btpd_if.h')
-rw-r--r--misc/btpd_if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/btpd_if.h b/misc/btpd_if.h
index 66b247a..070cb29 100644
--- a/misc/btpd_if.h
+++ b/misc/btpd_if.h
@@ -75,7 +75,7 @@ void ipc_close(struct ipc *ipc);
 const char *ipc_strerror(enum ipc_err err);
 
 enum ipc_err btpd_add(struct ipc *ipc, const char *mi, size_t mi_size,
-    const char *content, const char *name);
+    const char *content, const char *name, const char *label);
 enum ipc_err btpd_del(struct ipc *ipc, struct ipc_torrent *tp);
 enum ipc_err btpd_rate(struct ipc *ipc, unsigned up, unsigned down);
 enum ipc_err btpd_start(struct ipc *ipc, struct ipc_torrent *tp);