3 // state machine for DeviceState
13 typedef pEp_identity * Identity;
14 typedef union _param { const Identity partner; const stringlist_t *keylist; } param_t;
18 typedef enum _fsm_error {
25 typedef enum _DeviceState_state {
26 DeviceState_state_NONE = -1,
36 typedef enum _DeviceState_event {
37 DeviceState_event_NONE = -1,
52 PEP_STATUS sendBeacon(PEP_SESSION session, DeviceState_state state, const Identity partner);
53 PEP_STATUS sendHandshakeRequest(PEP_SESSION session, DeviceState_state state, const Identity partner);
54 PEP_STATUS showHandshake(PEP_SESSION session, DeviceState_state state, const Identity partner);
55 PEP_STATUS reject(PEP_SESSION session, DeviceState_state state, const Identity partner);
56 PEP_STATUS storeGroupKeys(PEP_SESSION session, DeviceState_state state, const Identity partner);
57 PEP_STATUS sendGroupKeys(PEP_SESSION session, DeviceState_state state, const Identity partner);
61 DeviceState_state fsm_DeviceState(
63 DeviceState_state state,
64 DeviceState_event event,
65 const Identity partner,
66 DeviceState_state state_partner
71 DYNAMIC_API PEP_STATUS fsm_DeviceState_inject(
73 DeviceState_event event,
75 DeviceState_state state_partner