From c9927c72ea31ad00b23da122280d6fcdec4a1a1e Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 2 Sep 2011 11:16:10 +0200 Subject: [mobile] Using socket application interface with mobile application Use "-m" with mobile app, to use it in conjunction with LCR or other applications. --- src/host/layer23/include/osmocom/bb/common/osmocom_data.h | 2 ++ src/host/layer23/include/osmocom/bb/mobile/Makefile.am | 2 +- src/host/layer23/include/osmocom/bb/mobile/gsm48_cc.h | 3 ++- src/host/layer23/include/osmocom/bb/mobile/mncc.h | 3 --- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/host/layer23/include/osmocom') diff --git a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h index 6ad89cd3..8f150078 100644 --- a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h +++ b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h @@ -18,6 +18,7 @@ struct osmocom_ms; #include #include #include +#include #include #include @@ -31,6 +32,7 @@ struct osmol1_entity { struct osmomncc_entity { int (*mncc_recv)(struct osmocom_ms *ms, int msg_type, void *arg); + struct mncc_sock_state *sock_state; uint32_t ref; }; diff --git a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am index 951e4d19..65b7ce76 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/Makefile.am +++ b/src/host/layer23/include/osmocom/bb/mobile/Makefile.am @@ -1,2 +1,2 @@ noinst_HEADERS = gsm322.h gsm48_cc.h gsm48_mm.h gsm48_rr.h mncc.h settings.h \ - subscriber.h support.h transaction.h vty.h + subscriber.h support.h transaction.h vty.h mncc_sock.h diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_cc.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_cc.h index 8cdd1c4f..282ffe5b 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_cc.h +++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_cc.h @@ -11,7 +11,8 @@ int gsm48_cc_init(struct osmocom_ms *ms); int gsm48_cc_exit(struct osmocom_ms *ms); int gsm48_rcv_cc(struct osmocom_ms *ms, struct msgb *msg); int mncc_dequeue(struct osmocom_ms *ms); -int mncc_send(struct osmocom_ms *ms, int msg_type, void *arg); +int mncc_tx_to_cc(void *inst, int msg_type, void *arg); +int mncc_clear_trans(void *inst, uint8_t protocol); #endif /* _GSM48_CC_H */ diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc.h b/src/host/layer23/include/osmocom/bb/mobile/mncc.h index a2b48cf7..1d7f7794 100644 --- a/src/host/layer23/include/osmocom/bb/mobile/mncc.h +++ b/src/host/layer23/include/osmocom/bb/mobile/mncc.h @@ -109,9 +109,6 @@ struct gsm_call { #define GSM_TCHF_FRAME 0x0300 #define GSM_TCHF_FRAME_EFR 0x0301 -#define MS_NEW 0x0400 -#define MS_DELETE 0x0401 - #define GSM_MAX_FACILITY 128 #define GSM_MAX_SSVERSION 128 #define GSM_MAX_USERUSER 128 -- cgit v1.2.3