summaryrefslogtreecommitdiffstats
path: root/bchannel.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 /bchannel.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 'bchannel.h')
-rw-r--r--bchannel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bchannel.h b/bchannel.h
index f7b3860..2b03444 100644
--- a/bchannel.h
+++ b/bchannel.h
@@ -15,6 +15,7 @@ struct bchannel {
struct chan_call *call; /* link to call process */
unsigned int handle; /* handle for stack id */
int b_sock; /* socket for b-channel */
+ struct lcr_fd lcr_fd; /* socket register */
int b_mode; /* dsp, raw, dsphdlc */
int b_state;
int b_txdata;
@@ -47,7 +48,6 @@ void bchannel_dtmf(struct bchannel *channel, int on);
void bchannel_blowfish(struct bchannel *bchannel, unsigned char *key, int len);
void bchannel_pipeline(struct bchannel *bchannel, char *pipeline);
void bchannel_gain(struct bchannel *bchannel, int gain, int tx);
-int bchannel_handle(void);
struct bchannel *find_bchannel_handle(unsigned int handle);
//struct bchannel *find_bchannel_ref(unsigned int ref);
struct bchannel *alloc_bchannel(unsigned int handle);