diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-28 22:46:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-28 23:18:09 +0100 |
commit | b1b11620191d14943303a5104d845295f74750e8 (patch) | |
tree | d82d0f061180e1193e7fb9be896211c7d6d06d89 /src/host/trxcon/trxcon.c | |
parent | 6fa80f274ed932b8142a9f04a652820b135483e7 (diff) |
trxcon: Define event names for osmo_fsm's
Change-Id: Id3279e99966a0ab236923c497ac0abbc9ed2c93c
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r-- | src/host/trxcon/trxcon.c | 9 |
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) |