123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
-
-
- #ifndef __WORKFLOW_H__
- #define __WORKFLOW_H__
-
- #include <stdint.h>
-
- enum wf_status {
- WF_IDLE = 0,
- WF_RUNNING,
- };
-
- struct wf_state {
- enum wf_status status;
-
- uint16_t step;
- uint16_t count;
- };
-
- uint16_t wf_count(void);
- const char *wf_name(uint16_t index);
- const char *wf_author(uint16_t index);
-
- struct wf_state wf_status(void);
- void wf_start(uint16_t index);
-
- void wf_run(void);
-
- #endif
|