aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/msc/msc_common.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-11-30 01:46:51 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-30 22:46:15 +0100
commit7992122bac66f28ce2d77ddcd7aef8416796deea (patch)
tree490bb3d8edba3f2801cf840c8d78fe810919d3e0 /include/osmocom/msc/msc_common.h
parenta8945ce37c23ba557b8b369943a5730b73c46604 (diff)
combine several small .h in msc_common.h
For hysterical raisins, there are some header files that contain few declarations, and where the name doesn't reflect the content. Combine them to new msc_common.h: - common.h - common_cs.h - osmo_msc.h Change-Id: I9e3a587342f8d398fb27354a2f2475f8797cdb28
Diffstat (limited to 'include/osmocom/msc/msc_common.h')
-rw-r--r--include/osmocom/msc/msc_common.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/osmocom/msc/msc_common.h b/include/osmocom/msc/msc_common.h
new file mode 100644
index 000000000..ffe8902e2
--- /dev/null
+++ b/include/osmocom/msc/msc_common.h
@@ -0,0 +1,22 @@
+#pragma once
+
+struct msgb;
+struct gsm_network;
+struct vlr_subscr;
+
+#define MSC_HLR_REMOTE_IP_DEFAULT "127.0.0.1"
+#define MSC_HLR_REMOTE_PORT_DEFAULT OSMO_GSUP_PORT
+
+enum nsap_addr_enc {
+ NSAP_ADDR_ENC_X213,
+ NSAP_ADDR_ENC_V4RAW,
+};
+
+typedef int (*mncc_recv_cb_t)(struct gsm_network *, struct msgb *);
+
+struct gsm_network *gsm_network_init(void *ctx, mncc_recv_cb_t mncc_recv);
+
+int msc_vlr_alloc(struct gsm_network *net);
+int msc_vlr_start(struct gsm_network *net);
+
+void msc_stop_paging(struct vlr_subscr *vsub);