X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ptask.git;a=blobdiff_plain;f=src%2Ftw.c;h=43760d4202e43dd7f361d0375ccbab78a2ee2c0d;hp=89b2761f817ea8dc408877f1d543df51e3b41462;hb=9fdef88f8d8f65ed6b74c9213acac7344feedf67;hpb=5851433dc1249acfe8b22ecf0d4a27e829903dd8 diff --git a/src/tw.c b/src/tw.c index 89b2761..43760d4 100644 --- a/src/tw.c +++ b/src/tw.c @@ -359,6 +359,21 @@ void tw_done(const char *uuid) free(opts); } +void tw_task_remove(const char *uuid) +{ + char *opts; + + opts = malloc(1 + + strlen(uuid) + + strlen(" delete") + + 1); + sprintf(opts, " %s delete", uuid); + + tw_exec(opts); + + free(opts); +} + static void task_free(struct task *task) { if (!task)