summaryrefslogtreecommitdiffstats
path: root/gsm_bs.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-05-31 18:45:02 +0200
committerAndreas Eversberg2010-05-31 18:45:02 +0200
commita12d7eee22a72f4c999535892763dde15212e89e (patch)
tree32e20ad128c8bba3c80441ca771da8aa0c4fd5f2 /gsm_bs.h
parentFixed LCR to work with the current API of OpenBSC. (diff)
downloadlcr-a12d7eee22a72f4c999535892763dde15212e89e.tar.gz
lcr-a12d7eee22a72f4c999535892763dde15212e89e.tar.xz
lcr-a12d7eee22a72f4c999535892763dde15212e89e.zip
Splitted GSM support into BS (network) and MS (mobile) part.
Diffstat (limited to 'gsm_bs.h')
-rw-r--r--gsm_bs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gsm_bs.h b/gsm_bs.h
new file mode 100644
index 0000000..ba2d696
--- /dev/null
+++ b/gsm_bs.h
@@ -0,0 +1,24 @@
+extern "C" {
+#include <openbsc/gsm_data.h>
+}
+
+/* GSM port class */
+class Pgsm_bs : public Pgsm
+{
+ public:
+ Pgsm_bs(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
+ ~Pgsm_bs();
+
+ 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);
+ void hold_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
+ void retr_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc);
+ void message_setup(unsigned int epoint_id, int message_id, union parameter *param);
+ 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);