[MERGED] osmo-bsc[master]: HO: enable handover by initializing at startup; rename init ...

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Jan 19 22:09:19 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: HO: enable handover by initializing at startup; rename init function
......................................................................


HO: enable handover by initializing at startup; rename init function

Change-Id: I224884c84895ebf6c8cf498c16616214cb2b5779
---
M include/osmocom/bsc/handover_decision.h
M src/libbsc/handover_decision.c
M src/osmo-bsc/osmo_bsc_main.c
3 files changed, 6 insertions(+), 7 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/bsc/handover_decision.h b/include/osmocom/bsc/handover_decision.h
index 81078b0..fe551ca 100644
--- a/include/osmocom/bsc/handover_decision.h
+++ b/include/osmocom/bsc/handover_decision.h
@@ -1,7 +1,3 @@
-#ifndef _HANDOVER_DECISION_H
-#define _HANDOVER_DECISION_H
+#pragma once
 
-void on_dso_load_ho_dec(void);
-
-#endif /* _HANDOVER_DECISION_H */
-
+void handover_decision_1_init(void);
diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c
index 127b362..158fc1c 100644
--- a/src/libbsc/handover_decision.c
+++ b/src/libbsc/handover_decision.c
@@ -343,7 +343,7 @@
 	return 0;
 }
 
-void on_dso_load_ho_dec(void)
+void handover_decision_1_init(void)
 {
 	osmo_signal_register_handler(SS_LCHAN, ho_dec_sig_cb, NULL);
 }
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 1555ac1..1aff4c5 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -30,6 +30,7 @@
 #include <osmocom/bsc/ctrl.h>
 #include <osmocom/bsc/osmo_bsc_sigtran.h>
 #include <osmocom/bsc/osmo_bsc_mgcp.h>
+#include <osmocom/bsc/handover_decision.h>
 
 #include <osmocom/ctrl/control_cmd.h>
 #include <osmocom/ctrl/control_if.h>
@@ -296,6 +297,8 @@
 
 	mgcp_init(bsc_gsmnet);
 
+	handover_decision_1_init();
+
 	signal(SIGINT, &signal_handler);
 	signal(SIGTERM, &signal_handler);
 	signal(SIGABRT, &signal_handler);

-- 
To view, visit https://gerrit.osmocom.org/5912
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I224884c84895ebf6c8cf498c16616214cb2b5779
Gerrit-PatchSet: 4
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list