Use ffizz_header to generate taskchampion.h
This commit is contained in:
committed by
Dustin J. Mitchell
parent
989a330e46
commit
75e10676ce
@@ -1,17 +1,38 @@
|
||||
pub use taskchampion::Status;
|
||||
|
||||
#[ffizz_header::item]
|
||||
#[ffizz(order = 700)]
|
||||
/// ***** TCStatus *****
|
||||
///
|
||||
/// The status of a task, as defined by the task data model.
|
||||
/// cbindgen:prefix-with-name
|
||||
/// cbindgen:rename-all=ScreamingSnakeCase
|
||||
#[repr(C)]
|
||||
///
|
||||
/// ```c
|
||||
/// #ifdef __cplusplus
|
||||
/// typedef enum TCStatus : int32_t {
|
||||
/// #else // __cplusplus
|
||||
/// typedef int32_t TCStatus;
|
||||
/// enum TCStatus {
|
||||
/// #endif // __cplusplus
|
||||
/// TC_STATUS_PENDING = 0,
|
||||
/// TC_STATUS_COMPLETED = 1,
|
||||
/// TC_STATUS_DELETED = 2,
|
||||
/// TC_STATUS_RECURRING = 3,
|
||||
/// // Unknown signifies a status in the task DB that was not
|
||||
/// // recognized.
|
||||
/// TC_STATUS_UNKNOWN = -1,
|
||||
/// #ifdef __cplusplus
|
||||
/// } TCStatus;
|
||||
/// #else // __cplusplus
|
||||
/// };
|
||||
/// #endif // __cplusplus
|
||||
/// ```
|
||||
#[repr(i32)]
|
||||
pub enum TCStatus {
|
||||
Pending,
|
||||
Completed,
|
||||
Deleted,
|
||||
Recurring,
|
||||
/// Unknown signifies a status in the task DB that was not
|
||||
/// recognized.
|
||||
Unknown,
|
||||
Pending = 0,
|
||||
Completed = 1,
|
||||
Deleted = 2,
|
||||
Recurring = 3,
|
||||
Unknown = -1,
|
||||
}
|
||||
|
||||
impl From<TCStatus> for Status {
|
||||
|
||||
Reference in New Issue
Block a user