add tc_task_add_tag and check errors

This commit is contained in:
Dustin J. Mitchell
2022-01-31 19:44:00 +00:00
parent ef0bb2ced4
commit ce45c1004c
3 changed files with 61 additions and 3 deletions

View File

@@ -283,6 +283,13 @@ enum TCResult tc_task_start(struct TCTask *task);
*/
enum TCResult tc_task_stop(struct TCTask *task);
/**
* Add a tag to a mutable task.
*
* Returns TC_RESULT_TRUE on success and TC_RESULT_ERROR on failure.
*/
enum TCResult tc_task_add_tag(struct TCTask *task, struct TCString *tag);
/**
* Free a task. The given task must not be NULL. The task must not be used after this function
* returns, and must not be freed more than once.