make multiple config instead of one implicit global

This commit is contained in:
Laurent THOMAS
2023-11-10 10:23:11 +01:00
parent 82597e7e8f
commit f50d5f5a9b
74 changed files with 1316 additions and 1118 deletions
+5 -5
View File
@@ -747,17 +747,17 @@ int is_x2ap_enabled(void)
};
/* TODO: do it per module - we check only first eNB */
config_get(p, sizeof(p)/sizeof(paramdef_t), "eNBs.[0]");
config_get(config_get_if(), p, sizeofArray(p), "eNBs.[0]");
if (enable_x2 != NULL && strcmp(enable_x2, "yes") == 0){
enabled = 1;
}
/*Consider also the case of enabling X2AP for a gNB by parsing a gNB configuration file*/
config_get(p, sizeof(p)/sizeof(paramdef_t), "gNBs.[0]");
if (enable_x2 != NULL && strcmp(enable_x2, "yes") == 0){
enabled = 1;
}
config_get(config_get_if(), p, sizeofArray(p), "gNBs.[0]");
if (enable_x2 != NULL && strcmp(enable_x2, "yes") == 0) {
enabled = 1;
}
config_loaded = 1;