tc_task_has_tag

This commit is contained in:
Dustin J. Mitchell 2022-02-01 01:02:49 +00:00
parent 03ffb6ce83
commit f2b3e5fd0a
3 changed files with 39 additions and 4 deletions

View file

@ -269,6 +269,12 @@ struct TCString *tc_task_get_description(struct TCTask *task);
*/
bool tc_task_is_active(struct TCTask *task);
/**
* Check if a task has the given tag. If the tag is invalid, this function will simply return
* false with no error from `tc_task_error`. The given tag must not be NULL.
*/
bool tc_task_has_tag(struct TCTask *task, struct TCString *tag);
/**
* Set a mutable task's status.
*/