4 #include "../../genstructs/htable/htable.h"
6 #define MAX_EVT_DESC 64
9 char evt_desc
[MAX_EVT_DESC
];
10 void (*evt_actionf
)(void *data
);
11 struct state
*evt_newstate
;
14 typedef struct state
{
26 typedef struct pqnode
{
30 STAILQ_ENTRY(pqnode
) pq_next
;
34 htable_t
*sttable
; /* hash table for states */
35 state_t
*cstate
; /* current state of fsm */
36 unsigned int nqueues
; /* number of priority queues */
37 void *mobj
; /* mutual exclusion object */
38 void (*fsm_pq_lock
)(const struct fsm
*);
39 void (*fsm_pq_unlock
)(const struct fsm
*);
40 STAILQ_HEAD(pqhead
, pqnode
) *pqtable
;
43 typedef struct pqhead pqhead_t
;