aboutsummaryrefslogtreecommitdiffstats
path: root/src/ctrl/control_if.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-16 17:26:30 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-27 09:50:47 +0200
commit31c0fef2fd5daa53617c05752411ec6446d8a82b (patch)
tree299c1643f09720801ae43b0936463e9d2d69b0a7 /src/ctrl/control_if.c
parentf85861d6eb6ebc962bc710ac2d481536e6be7053 (diff)
control_if: Add control interface commands for FSMs
This allows programmatic access to introspection of FSM instances, which is quite handy from e.g. external test cases: Send a message to the code, then use the CTRL interface to check if that message has triggered the right kind of state transition. Change-Id: I0f80340ee9c61c88962fdd6764a6098a844d0d1e
Diffstat (limited to 'src/ctrl/control_if.c')
-rw-r--r--src/ctrl/control_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index c8b47226..6ab34c7b 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -717,6 +717,10 @@ static int ctrl_init(void)
if (ret)
goto err_vec;
+ ret = osmo_fsm_ctrl_cmds_install();
+ if (ret)
+ goto err_vec;
+
ctrl_initialized = 1;
return 0;