![]() |
BSB Developer Docs
|
Data types and functions for BusyTimer snapshot handling. More...
Go to the source code of this file.
Data Structures | |
| struct | BusyTimerSnapshotCommon |
| struct | BusyTimerSnapshotInfinite |
| struct | BusyTimerSnapshotSimple |
| struct | BusyTimerSnapshotInterval |
| struct | BusyTimerSnapshot |
Enumerations | |
| enum | BusyTimerSnapshotType { BusyTimerSnapshotTypeNotStarted , BusyTimerSnapshotTypeInfinite , BusyTimerSnapshotTypeSimple , BusyTimerSnapshotTypeInterval , BusyTimerSnapshotTypeMax } |
Functions | |
| char * | busy_timer_snapshot_serialize (const BusyTimerSnapshot *snapshot) |
| Convert a BusyTimerSnapshot object to its JSON representation. | |
| bool | busy_timer_snapshot_deserialize (BusyTimerSnapshot *snapshot, const char *json_text, size_t json_text_len) |
| Load a BusyTimerSnapshot object from its JSON representation. | |
| bool | busy_timer_snapshot_is_valid (const BusyTimerSnapshot *snapshot) |
| Check whether a BusyTimerSnapshot object represents a valid state. | |
Data types and functions for BusyTimer snapshot handling.
| bool busy_timer_snapshot_deserialize | ( | BusyTimerSnapshot * | snapshot, |
| const char * | json_text, | ||
| size_t | json_text_len ) |
Load a BusyTimerSnapshot object from its JSON representation.
| [out] | snapshot | pointer to the object to load into (must be allocated) |
| [in] | json_text | pointer to a character string containing the JSON text |
| [in] | json_text_len | length of the JSON text string |
true if the JSON could be successfully parsed, false otherwise | bool busy_timer_snapshot_is_valid | ( | const BusyTimerSnapshot * | snapshot | ) |
Check whether a BusyTimerSnapshot object represents a valid state.
| [in] | snapshot | pointer to the object to be validated |
true if the object is valid, false otherwise | char * busy_timer_snapshot_serialize | ( | const BusyTimerSnapshot * | snapshot | ) |
Convert a BusyTimerSnapshot object to its JSON representation.
| [in] | snapshot | pointer to the object to be serialised |