libosmocore/include/osmocom
Neels Hofmeyr c014f606d0 fsm: factor out osmo_fsm_inst_term_children() from osmo_fsm_inst_term()
osmo_fsm_inst_term() has code for safe child removal, publish that part as
osmo_fsm_inst_term_children(); also use from osmo_fsm_inst_term().

As with osmo_fsm_inst_term(), add osmo_fsm_inst_term_children() macro to pass
the caller's source file and line to new _osmo_fsm_inst_term_children().

Rationale: in openbsc's VLR, I want to discard child FSMs when certain events
are handled. I could keep a pointer to each one, or simply iterate all
children, making the code a lot simpler in some places.

(Unfortunately, the patch may be displayed subobtimally. This really only moves
the children-loop to a new function, replaces it with a call to
_osmo_fsm_inst_term_children(fi, OSMO_FSM_TERM_PARENT, NULL, file, line) and
drops two local iterator variables. No other code changes are made, even though
the diff may show large removal + addition chunks)

Change-Id: I8dac1206259cbd251660f793ad023aaa1dc705a2
2016-12-24 17:11:52 +00:00
..
codec Mark inline header function as static 2016-09-30 12:31:50 +00:00
core fsm: factor out osmo_fsm_inst_term_children() from osmo_fsm_inst_term() 2016-12-24 17:11:52 +00:00
crypt Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
ctrl Revert "Constify ctrl_cmd struct fields where appropriate" 2016-10-20 17:53:10 +02:00
gprs gprs: Increase NS_ALLOC_SIZE to 3k 2016-09-23 02:42:46 +00:00
gsm import oap message parsing / encoding from openbsc.git; AGPL->GPL 2016-12-11 03:42:58 +01:00
sim sim: make osim_reader_ops public 2016-03-19 21:18:40 +01:00
vty fix GGSN Ctrl port to 4257 2016-09-09 16:23:18 +02:00