add dependency support to taskchampion

This commit is contained in:
Dustin J. Mitchell
2022-02-21 21:22:18 +00:00
parent a030053dae
commit bf73cc4cc7
4 changed files with 154 additions and 1 deletions

View File

@@ -911,6 +911,21 @@ TCResult tc_task_set_legacy_uda(struct TCTask *task, struct TCString key, struct
*/
TCResult tc_task_remove_legacy_uda(struct TCTask *task, struct TCString key);
/**
* Get all dependencies for a task.
*/
struct TCUuidList tc_task_get_dependencies(struct TCTask *task);
/**
* Add a dependency.
*/
TCResult tc_task_add_dependency(struct TCTask *task, struct TCUuid dep);
/**
* Remove a dependency.
*/
TCResult tc_task_remove_dependency(struct TCTask *task, struct TCUuid dep);
/**
* Get the latest error for a task, or a string NULL ptr field if the last operation succeeded.
* Subsequent calls to this function will return NULL. The task pointer must not be NULL. The