summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-ganc/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/osmo-ganc/main.c')
-rw-r--r--openbsc/src/osmo-ganc/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/src/osmo-ganc/main.c b/openbsc/src/osmo-ganc/main.c
index 882df6a..c6e5eb3 100644
--- a/openbsc/src/osmo-ganc/main.c
+++ b/openbsc/src/osmo-ganc/main.c
@@ -39,6 +39,8 @@
#include <openbsc/signal.h>
#include <openbsc/vty.h>
+#include "ganc_data.h"
+
static const char *config_file = "osmo-ganc.cfg";
static const char *rf_ctrl = NULL;
@@ -162,6 +164,9 @@ void gsm_net_update_ctype(struct gsm_network *network)
{
}
+struct ganc_bts *g_ganc_bts;
+struct ganc_net *g_ganc_net;
+
int main(int argc, char **argv)
{
struct osmo_msc_data *msc;
@@ -170,6 +175,11 @@ int main(int argc, char **argv)
tall_bsc_ctx = talloc_named_const(NULL, 1, "openbsc");
+ g_ganc_net = talloc_zero(tall_bsc_ctx, struct ganc_net);
+ ganc_net_init(g_ganc_net);
+ g_ganc_bts = talloc_zero(g_ganc_net, struct ganc_bts);
+ ganc_bts_init(g_ganc_bts, g_ganc_net);
+
osmo_init_logging(&log_info);
/* enable filters */