From 68a39a86177cad0c49d9f892d1f12a49df5b9bd0 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 17 Sep 2021 21:26:50 +0200 Subject: nm_*fsm: Make FSMs aware of object being properly configured or not This will allow in the future advertising children objects that the parent object has been configured. It is useful for instance to let TRX know that the BTS is configured. Change-Id: Ie319465fd0e991bab8451ea34ec72ff3702533d2 --- include/osmo-bts/nm_common_fsm.h | 8 ++++++++ include/osmo-bts/oml.h | 1 + 2 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/osmo-bts/nm_common_fsm.h b/include/osmo-bts/nm_common_fsm.h index 13d7e0cc..1f0accc5 100644 --- a/include/osmo-bts/nm_common_fsm.h +++ b/include/osmo-bts/nm_common_fsm.h @@ -25,10 +25,13 @@ #include #include +#include /* Common */ enum nm_fsm_events { NM_EV_SW_ACT, + NM_EV_SETATTR_ACK, /* data: struct nm_fsm_ev_setattr_data */ + NM_EV_SETATTR_NACK, /* data: struct nm_fsm_ev_setattr_data */ NM_EV_OPSTART_ACK, NM_EV_OPSTART_NACK, NM_EV_SHUTDOWN_START, @@ -46,6 +49,11 @@ enum nm_fsm_events { }; extern const struct value_string nm_fsm_event_names[]; +struct nm_fsm_ev_setattr_data { + struct msgb *msg; /* msgb ownership is transferred to FSM */ + int cause; +}; + /* BTS SiteManager */ enum nm_bts_sm_op_fsm_states { diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h index 42284f92..90c90770 100644 --- a/include/osmo-bts/oml.h +++ b/include/osmo-bts/oml.h @@ -32,6 +32,7 @@ struct gsm_abis_mo { struct gsm_bts *bts; /* NM BTS Site Manager FSM */ struct osmo_fsm_inst *fi; + bool setattr_success; bool opstart_success; }; -- cgit v1.2.3