mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ffi for tc_task_get/set_value
This commit is contained in:
parent
7cecac3328
commit
4fdb46fd47
3 changed files with 117 additions and 4 deletions
|
@ -751,11 +751,16 @@ enum TCStatus tc_task_get_status(struct TCTask *task);
|
|||
struct TCKVList tc_task_get_taskmap(struct TCTask *task);
|
||||
|
||||
/**
|
||||
* Get a task's description, or NULL if the task cannot be represented as a C string (e.g., if it
|
||||
* contains embedded NUL characters).
|
||||
* Get a task's description.
|
||||
*/
|
||||
struct TCString tc_task_get_description(struct TCTask *task);
|
||||
|
||||
/**
|
||||
* Get a task property's value, or NULL if the task has no such property, (including if the
|
||||
* property name is not valid utf-8).
|
||||
*/
|
||||
struct TCString tc_task_get_value(struct TCTask *task, struct TCString property);
|
||||
|
||||
/**
|
||||
* Get the entry timestamp for a task (when it was created), or 0 if not set.
|
||||
*/
|
||||
|
@ -837,6 +842,11 @@ struct TCUdaList tc_task_get_legacy_udas(struct TCTask *task);
|
|||
*/
|
||||
TCResult tc_task_set_status(struct TCTask *task, enum TCStatus status);
|
||||
|
||||
/**
|
||||
* Set a mutable task's property value by name. If value.ptr is NULL, the property is removed.
|
||||
*/
|
||||
TCResult tc_task_set_value(struct TCTask *task, struct TCString property, struct TCString value);
|
||||
|
||||
/**
|
||||
* Set a mutable task's description.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue