This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/1178 Add osmo_fsm_unregister() to header Previously function was defined but not exposed so there were a way to register FSM but no way to unregister it. Change-Id: I2e749d896009784b77d6d5952fcc38e1c131db2b --- M include/osmocom/core/fsm.h M tests/fsm/fsm_test.c 2 files changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/78/1178/1 diff --git a/include/osmocom/core/fsm.h b/include/osmocom/core/fsm.h index ce0db15..9b6072d 100644 --- a/include/osmocom/core/fsm.h +++ b/include/osmocom/core/fsm.h @@ -115,7 +115,7 @@ osmo_fsm_state_name((fi)->fsm, (fi)->state), ## args) int osmo_fsm_register(struct osmo_fsm *fsm); - +void osmo_fsm_unregister(struct osmo_fsm *fsm); 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, diff --git a/tests/fsm/fsm_test.c b/tests/fsm/fsm_test.c index 84c2ae4..29b31ef 100644 --- a/tests/fsm/fsm_test.c +++ b/tests/fsm/fsm_test.c @@ -151,5 +151,6 @@ osmo_select_main(0); } + osmo_fsm_unregister(&fsm); exit(0); } -- To view, visit https://gerrit.osmocom.org/1178 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2e749d896009784b77d6d5952fcc38e1c131db2b Gerrit-PatchSet: 1 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de>