diff options
Diffstat (limited to 'misc/btpd_if.c')
| -rw-r--r-- | misc/btpd_if.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/btpd_if.c b/misc/btpd_if.c index 13b216c..6705963 100644 --- a/misc/btpd_if.c +++ b/misc/btpd_if.c @@ -311,3 +311,11 @@ btpd_stop(struct ipc *ipc, struct ipc_torrent *tp) { return simple_treq(ipc, "stop", tp); } + +enum ipc_err +btpd_stop_all(struct ipc *ipc) +{ + struct io_buffer iob = buf_init(16); + buf_swrite(&iob, "l8:stop-alle"); + return ipc_buf_req_code(ipc, &iob); +} |