author | Krista 'DarthMama' Bennett <krista@pep.foundation> |
Thu, 04 Jun 2020 11:18:45 +0200 | |
changeset 4729 | 3df9a2a67597 |
parent 4053 | a1b219054c9b |
child 4792 | 7056435ab9e7 |
child 5246 | 67016f508d40 |
permissions | -rw-r--r-- |
1 // This file is under GNU General Public License 3.0
2 // see LICENSE.txt
4 // generate state machine code
6 // Copyleft (c) 2017-2018, pEp foundation
8 // Written by Volker Birk
11 #pragma once
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 // error values
19 typedef enum _fsm_error {
20 // these error values are corresponding to
21 // PEP_SYNC_STATEMACHINE_ERROR - value
22 invalid_state = -2,
23 invalid_event = -3,
24 invalid_condition = -4,
25 invalid_action = -5,
26 inhibited_event = -6,
27 cannot_send = -7,
29 // out of memory condition
30 out_of_memory = -128,
31 } fsm_error;
33 // common
35 enum {
36 End = -1,
37 None = 0,
38 Init = 1,
39 Extra = 128 // messages will be below this ID
40 };
42 enum {
43 SHUTDOWN = 0
44 };
46 #ifdef __cplusplus
47 }
48 #endif