From 64060294ab58dfd07a95a24a1500602421748da9 Mon Sep 17 00:00:00 2001 From: Marq Schneider Date: Wed, 11 Aug 2010 22:37:51 -0500 Subject: Allow changing the upload and download rates at runtime. This adds a 'rate' command to modify the up and download rates on the fly. Closes GH-10 --- misc/btpd_if.h | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/btpd_if.h') diff --git a/misc/btpd_if.h b/misc/btpd_if.h index 3bf77d1..66b247a 100644 --- a/misc/btpd_if.h +++ b/misc/btpd_if.h @@ -77,6 +77,7 @@ 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); 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); enum ipc_err btpd_start_all(struct ipc *ipc); enum ipc_err btpd_stop(struct ipc *ipc, struct ipc_torrent *tp); -- cgit 1.4.1