summaryrefslogtreecommitdiffstats
path: root/src/fsm.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-07 11:49:55 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-07 12:21:11 +0000
commit341939142242fb3a8e3e6e153a582af5aff16889 (patch)
treeb782588710e89c90633bda465665a955a49ffda2 /src/fsm.c
parent8808bb49a20e3e569b230b1b8acdf6f74e1c6bd2 (diff)
fsm: Add VTY introspection of osmo_fsm and their instances
Change-Id: I89212e4f149f019099115a85bab353c04170df90
Diffstat (limited to 'src/fsm.c')
-rw-r--r--src/fsm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 666dbe37..0e2c9be4 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -87,7 +87,7 @@
*
*/
-static LLIST_HEAD(g_fsms);
+LLIST_HEAD(osmo_g_fsms);
static bool fsm_log_addr = true;
/*! \brief specify if FSM instance addresses should be logged or not
@@ -106,7 +106,7 @@ void osmo_fsm_log_addr(bool log_addr)
struct osmo_fsm *osmo_fsm_find_by_name(const char *name)
{
struct osmo_fsm *fsm;
- llist_for_each_entry(fsm, &g_fsms, list) {
+ llist_for_each_entry(fsm, &osmo_g_fsms, list) {
if (!strcmp(name, fsm->name))
return fsm;
}
@@ -125,7 +125,7 @@ int osmo_fsm_register(struct osmo_fsm *fsm)
{
if (osmo_fsm_find_by_name(fsm->name))
return -EEXIST;
- llist_add_tail(&fsm->list, &g_fsms);
+ llist_add_tail(&fsm->list, &osmo_g_fsms);
INIT_LLIST_HEAD(&fsm->instances);
return 0;