summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-28 22:46:29 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-28 23:18:09 +0100
commitb1b11620191d14943303a5104d845295f74750e8 (patch)
treed82d0f061180e1193e7fb9be896211c7d6d06d89 /src/host/trxcon/trxcon.c
parent6fa80f274ed932b8142a9f04a652820b135483e7 (diff)
trxcon: Define event names for osmo_fsm's
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 0250b726..60db8878 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -125,11 +125,20 @@ static struct osmo_fsm_state trxcon_fsm_states[] = {
},
};
+static const struct value_string app_evt_names[] = {
+ OSMO_VALUE_STRING(L1CTL_EVENT_CONNECT),
+ OSMO_VALUE_STRING(L1CTL_EVENT_DISCONNECT),
+ OSMO_VALUE_STRING(TRX_EVENT_OFFLINE),
+ OSMO_VALUE_STRING(TRX_EVENT_RSP_ERROR),
+ { 0, NULL }
+};
+
static struct osmo_fsm trxcon_fsm_def = {
.name = "trxcon_app_fsm",
.states = trxcon_fsm_states,
.num_states = ARRAY_SIZE(trxcon_fsm_states),
.log_subsys = DAPP,
+ .event_names = app_evt_names,
};
static void print_usage(const char *app)