summaryrefslogtreecommitdiffstats
path: root/port.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 /port.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 'port.h')
-rw-r--r--port.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/port.h b/port.h
index 5e8eba9..d71771f 100644
--- a/port.h
+++ b/port.h
@@ -137,11 +137,11 @@ class Port
virtual ~Port();
class Port *next; /* next port in list */
int p_type; /* type of port */
- virtual int handler(void);
virtual int message_epoint(unsigned int epoint_id, int message, union parameter *param);
virtual void set_echotest(int echotest);
virtual void set_tone(const char *dir, const char *name);
virtual int read_audio(unsigned char *buffer, int length);
+ virtual void update_load(void);
struct port_settings p_settings;
@@ -205,6 +205,7 @@ class Port
int p_record_anon_ignore;
char p_record_vbox_email[128];
int p_record_vbox_email_file;
+ virtual void update_rxoff(void); /* inherited by mISDNport, to control rxoff */
void free_epointlist(struct epoint_list *epointlist);
void free_epointid(unsigned int epoint_id);