Use ffizz_header to generate taskchampion.h
This commit is contained in:
committed by
Dustin J. Mitchell
parent
989a330e46
commit
75e10676ce
@@ -1,7 +1,23 @@
|
||||
#[ffizz_header::item]
|
||||
#[ffizz(order = 100)]
|
||||
/// ***** TCResult *****
|
||||
///
|
||||
/// A result from a TC operation. Typically if this value is TC_RESULT_ERROR,
|
||||
/// the associated object's `tc_.._error` method will return an error message.
|
||||
/// cbindgen:prefix-with-name
|
||||
/// cbindgen:rename-all=ScreamingSnakeCase
|
||||
///
|
||||
/// ```c
|
||||
/// enum TCResult
|
||||
/// #ifdef __cplusplus
|
||||
/// : int32_t
|
||||
/// #endif // __cplusplus
|
||||
/// {
|
||||
/// TC_RESULT_ERROR = -1,
|
||||
/// TC_RESULT_OK = 0,
|
||||
/// };
|
||||
/// #ifndef __cplusplus
|
||||
/// typedef int32_t TCResult;
|
||||
/// #endif // __cplusplus
|
||||
/// ```
|
||||
#[repr(i32)]
|
||||
pub enum TCResult {
|
||||
Error = -1,
|
||||
|
||||
Reference in New Issue
Block a user