summaryrefslogtreecommitdiffstats
path: root/ss5.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-16 11:20:23 +0100
committerAndreas Eversberg2010-01-16 11:20:23 +0100
commitb0bd74e35e935aa976b68c594def4e8d2c22ef95 (patch)
tree7e7033beb3b9b1a1976d58ce4e16c6f965a3c9fc /ss5.h
parentAdded new option to interface.conf: "nonotify" to disable notify messages. (diff)
downloadlcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.gz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.xz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.zip
Replaced polling loop for LCR and chan_lcr with select based event loop.
Now LCR and chan_lcr will not use any CPU until there is work to do.
Diffstat (limited to 'ss5.h')
-rw-r--r--ss5.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ss5.h b/ss5.h
index b1cc215..8a0c20d 100644
--- a/ss5.h
+++ b/ss5.h
@@ -25,7 +25,6 @@ class Pss5 : public PmISDN
public:
Pss5(int type, struct mISDNport *mISDNport, char *portname, struct port_settings *settings, int channel, int exclusive, int mode);
~Pss5();
- int handler(void);
int message_epoint(unsigned int epoint_id, int message, union parameter *param);
void set_tone(const char *dir, const char *name);
@@ -43,8 +42,7 @@ class Pss5 : public PmISDN
unsigned char p_m_s_delay_mute[400/SS5_DECODER_NPOINTS]; /* 40 ms delay on mute, so a 'chirp' can be heared */
int p_m_s_sample_nr; /* decoder's sample number, counter */
int p_m_s_recog; /* sample counter to wait for signal recognition time */
- double p_m_s_timer;
- void (Pss5::*p_m_s_timer_fn)(void);
+ struct lcr_work p_m_s_queue;
int p_m_s_answer; /* queued signal */
int p_m_s_busy_flash; /* queued signal */
int p_m_s_clear_back; /* queued signal */