aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-cscn/cscn_main.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-04 14:56:26 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-04 14:58:09 +0100
commit2f8117d2147b711669518bbacd24df6dd2a76124 (patch)
tree6ae9db3da5e57507010c7515064d31cbcee8d88d /openbsc/src/osmo-cscn/cscn_main.c
parent8927bb46d523904e982bc85e3e4f29317b241715 (diff)
disable code trying to reach across BSC/MSC bounds, make build pass
Disable ipacc_rtp_direct, Osmo SMPP TLVs, Ctrl interface and channel_test. These need to be reimplemented with proper separation of libs. Add some tall_* pointers the linker requires for osmo-cscn.
Diffstat (limited to 'openbsc/src/osmo-cscn/cscn_main.c')
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index 374f9bd82..96ee0b3b0 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_main.c
@@ -51,6 +51,7 @@
#include <openbsc/sms_queue.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/ports.h>
+#include <osmocom/vty/logging.h>
#include <openbsc/vty.h>
#include <openbsc/bss.h>
#include <openbsc/mncc.h>
@@ -84,6 +85,14 @@ static const char * const osmocscn_copyright =
void *tall_cscn_ctx = NULL;
+/* satisfy deps from libbsc legacy.
+ TODO double check these */
+void *tall_fle_ctx = NULL;
+void *tall_paging_ctx = NULL;
+void *tall_map_ctx = NULL;
+void *tall_upq_ctx = NULL;
+/* end deps from libbsc legacy. */
+
static struct {
const char *database_name;
const char *config_file;
@@ -194,9 +203,11 @@ static void handle_options(int argc, char **argv)
case 'T':
log_set_print_timestamp(osmo_stderr_target, 1);
break;
+#if BEFORE_MSCSPLIT
case 'P':
ipacc_rtp_direct = 0;
break;
+#endif
case 'e':
log_set_log_level(osmo_stderr_target, atoi(optarg));
break;
@@ -393,6 +404,9 @@ int main(int argc, char **argv)
bsc_api_init(cscn_network, msc_bsc_api()); // pobably not.
#endif
+#if 0
+ the bsc_ctrl_node_lookup() only returns BSC specific ctrl nodes
+
/* start control interface after reading config for
* ctrl_vty_get_bind_addr() */
LOGP(DNM, LOGL_NOTICE, "CTRL at %s %d\n",
@@ -404,6 +418,7 @@ int main(int argc, char **argv)
printf("Failed to initialize control interface. Exiting.\n");
return -1;
}
+#endif
#if 0
TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_install().
@@ -413,10 +428,12 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i
}
#endif
+#if 0
if (msc_ctrl_cmds_install() != 0) {
printf("Failed to initialize the MSC control commands.\n");
return -1;
}
+#endif
/* seed the PRNG */
srand(time(NULL));