libosmocore 0.9.6-23.20170220git32ee5af8.fc42
Osmocom core library
Loading...
Searching...
No Matches
osmo_fsm Struct Reference

a description of an osmocom finite state machine More...

#include <fsm.h>

Data Fields

struct llist_head list
 global list
 
struct llist_head instances
 list of instances of this FSM
 
const char * name
 human readable name
 
const struct osmo_fsm_statestates
 table of state transition rules
 
unsigned int num_states
 number of entries in states
 
uint32_t allstate_event_mask
 bit-mask of events permitted in all states
 
void(* allstate_action )(struct osmo_fsm_inst *fi, uint32_t event, void *data)
 function pointer to be called for allstate events
 
void(* cleanup )(struct osmo_fsm_inst *fi, enum osmo_fsm_term_cause cause)
 clean-up function, called during termination
 
int(* timer_cb )(struct osmo_fsm_inst *fi)
 timer call-back for states with time-out.
 
int log_subsys
 logging sub-system for this FSM
 
const struct value_stringevent_names
 human-readable names of events
 

Detailed Description

a description of an osmocom finite state machine

Field Documentation

◆ timer_cb

int(* osmo_fsm::timer_cb) (struct osmo_fsm_inst *fi)

timer call-back for states with time-out.

Returns
1 to request termination, 0 to keep running.

The documentation for this struct was generated from the following file: