tc_replica_get_task

This commit is contained in:
Dustin J. Mitchell
2022-01-26 02:15:52 +00:00
parent f3b73ca0e4
commit e1c348b96e
4 changed files with 107 additions and 24 deletions

View File

@@ -84,6 +84,14 @@ struct TCReplica *tc_replica_new_in_memory(void);
*/
struct TCReplica *tc_replica_new_on_disk(struct TCString *path, struct TCString **error_out);
/**
* Get an existing task by its UUID.
*
* Returns NULL when the task does not exist, and on error. Consult tc_replica_error
* to distinguish the two conditions.
*/
struct TCTask *tc_replica_get_task(struct TCReplica *rep, struct TCUuid uuid);
/**
* Create a new task. The task must not already exist.
*