aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/fsm.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-07 11:11:03 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-07 12:20:59 +0000
commit8808bb49a20e3e569b230b1b8acdf6f74e1c6bd2 (patch)
tree0d09796c8b802dcd98f339f324961cb949fdbec0 /include/osmocom/core/fsm.h
parentaddeaa39b172b4114bffbbfdd3dd09a029eb37b3 (diff)
Add osmo_fsm_find_by_name() and avoid registering FSM with same name
This addresses a FIXME in the fsm.c code: osmo_fsm_register() should fail in case a FSM with the given name already exists. Change-Id: I5fd882939859c79581eba70c14cbafd64560b583
Diffstat (limited to 'include/osmocom/core/fsm.h')
-rw-r--r--include/osmocom/core/fsm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/core/fsm.h b/include/osmocom/core/fsm.h
index a2c20b78..952f82fa 100644
--- a/include/osmocom/core/fsm.h
+++ b/include/osmocom/core/fsm.h
@@ -140,6 +140,7 @@ void osmo_fsm_log_addr(bool log_addr);
int osmo_fsm_register(struct osmo_fsm *fsm);
void osmo_fsm_unregister(struct osmo_fsm *fsm);
+struct osmo_fsm *osmo_fsm_find_by_name(const char *name);
struct osmo_fsm_inst *osmo_fsm_inst_alloc(struct osmo_fsm *fsm, void *ctx, void *priv,
int log_level, const char *id);
struct osmo_fsm_inst *osmo_fsm_inst_alloc_child(struct osmo_fsm *fsm,