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
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index c8b4722..6ab34c7 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -717,6 +717,10 @@
if (ret)
goto err_vec;
+ ret = osmo_fsm_ctrl_cmds_install();
+ if (ret)
+ goto err_vec;
+
ctrl_initialized = 1;
return 0;