From 341939142242fb3a8e3e6e153a582af5aff16889 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 7 Jan 2017 11:49:55 +0100 Subject: fsm: Add VTY introspection of osmo_fsm and their instances Change-Id: I89212e4f149f019099115a85bab353c04170df90 --- src/fsm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fsm.c') 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; -- cgit v1.2.3