Replaced polling loop for LCR and chan_lcr with select based event loop.
[lcr.git] / gsm.h
diff --git a/gsm.h b/gsm.h
index 15477ef..6c09fa8 100644 (file)
--- a/gsm.h
+++ b/gsm.h
@@ -33,9 +33,11 @@ class Pgsm : public PmISDN
        Pgsm(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
        ~Pgsm();
 
        Pgsm(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
        ~Pgsm();
 
+       struct lcr_work p_m_g_delete;           /* timer for audio transmission */
        unsigned int p_m_g_callref; /* ref by OpenBSC */
        unsigned int p_m_g_mode; /* data/transparent mode */
        int p_m_g_gsm_b_sock; /* gsm bchannel socket */
        unsigned int p_m_g_callref; /* ref by OpenBSC */
        unsigned int p_m_g_mode; /* data/transparent mode */
        int p_m_g_gsm_b_sock; /* gsm bchannel socket */
+       struct lcr_fd p_m_g_gsm_b_fd; /* event node */
        int p_m_g_gsm_b_index; /* gsm bchannel socket index to use */
        int p_m_g_gsm_b_active; /* gsm bchannel socket is activated */
        struct lcr_msg *p_m_g_notify_pending;   /* queue for NOTIFY if not connected */
        int p_m_g_gsm_b_index; /* gsm bchannel socket index to use */
        int p_m_g_gsm_b_active; /* gsm bchannel socket is activated */
        struct lcr_msg *p_m_g_notify_pending;   /* queue for NOTIFY if not connected */
@@ -72,7 +74,6 @@ class Pgsm : public PmISDN
        void message_disconnect(unsigned int epoint_id, int message_id, union parameter *param);
        void message_release(unsigned int epoint_id, int message_id, union parameter *param);
        int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
        void message_disconnect(unsigned int epoint_id, int message_id, union parameter *param);
        void message_release(unsigned int epoint_id, int message_id, union parameter *param);
        int message_epoint(unsigned int epoint_id, int message_id, union parameter *param);
-       int handler(void);
 };
 
 extern char *gsm_conf_error;
 };
 
 extern char *gsm_conf_error;