From b0bd74e35e935aa976b68c594def4e8d2c22ef95 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 16 Jan 2010 11:20:23 +0100 Subject: 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. --- bchannel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bchannel.h') 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); -- cgit v1.2.3-55-g7522