diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/core/fsm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/fsm.h b/include/osmocom/core/fsm.h index bbfe3123..2c2a9961 100644 --- a/include/osmocom/core/fsm.h +++ b/include/osmocom/core/fsm.h @@ -78,6 +78,8 @@ struct osmo_fsm { int log_subsys; /*! human-readable names of events */ const struct value_string *event_names; + /*! graceful exit function, called at the beginning of termination */ + void (*pre_term)(struct osmo_fsm_inst *fi, enum osmo_fsm_term_cause cause); }; /*! a single instanceof an osmocom finite state machine */ |