Adding bridge between protocol handlers (ports)
[lcr.git] / gsm_bs.h
index ba2d696..a57b7c7 100644 (file)
--- a/gsm_bs.h
+++ b/gsm_bs.h
@@ -1,6 +1,3 @@
-extern "C" {
-#include <openbsc/gsm_data.h>
-}
 
 /* GSM port class */
 class Pgsm_bs : public Pgsm
@@ -9,6 +6,9 @@ class Pgsm_bs : public Pgsm
        Pgsm_bs(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
        ~Pgsm_bs();
 
+       unsigned char *p_m_g_dtmf; /* DTMF tone generation (MS only) */
+       int p_m_g_dtmf_index; /* DTMF tone generation index */
+
        void setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
        void start_dtmf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
        void stop_dtmf_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
@@ -18,7 +18,8 @@ class Pgsm_bs : public Pgsm
        int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
 };
 
-int handle_gsm_bs(void);
 int gsm_bs_conf(struct gsm_conf *gsm_conf, char *conf_error);
 int gsm_bs_exit(int rc);
 int gsm_bs_init(void);
+
+int message_bsc(struct lcr_gsm *lcr_gsm, int msg_type, void *arg);