X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=gsm_ms.h;h=82202f5ea6b2e592870dc1b6a3b2021d5b4e1b81;hp=822f0a62d1688ca41254f99f54e486dc4abecfde;hb=5463e1b62a39ce417b610584e3d34a8bc30ac15e;hpb=da91d7d85fe092122e35ece52695f98345738359 diff --git a/gsm_ms.h b/gsm_ms.h index 822f0a6..82202f5 100644 --- a/gsm_ms.h +++ b/gsm_ms.h @@ -1,19 +1,16 @@ -extern "C" { -#include -#include -} /* GSM port class */ class Pgsm_ms : public Pgsm { public: - Pgsm_ms(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode); + Pgsm_ms(int type, char *portname, struct port_settings *settings, struct interface *interface); ~Pgsm_ms(); - int p_m_g_dtmf_state; - int p_m_g_dtmf_index; - char p_m_g_dtmf[128]; - struct lcr_timer p_m_g_dtmf_timer; + char p_g_ms_name[32]; + int p_g_dtmf_state; + int p_g_dtmf_index; + char p_g_dtmf[128]; + struct lcr_timer p_g_dtmf_timer; void dtmf_statemachine(struct gsm_mncc *mncc); void setup_ind(unsigned int msg_type, unsigned int callref, struct gsm_mncc *mncc); @@ -23,10 +20,10 @@ class Pgsm_ms : public Pgsm int message_epoint(unsigned int epoint_id, int message_id, union parameter *param); }; -int handle_gsm_ms(int *quit); int gsm_ms_conf(struct gsm_conf *gsm_conf, char *conf_error); int gsm_ms_exit(int rc); int gsm_ms_init(void); -int gsm_ms_new(const char *name); +int gsm_ms_new(struct interface *interface); int gsm_ms_delete(const char *name); +int message_ms(struct lcr_gsm *lcr_gsm, int msg_type, void *arg);