X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=bchannel.h;h=f7b3860cdebc051868cf61d84677e00936772768;hp=faf060245bb5f2a1dfa90460196e111f01e7379d;hb=d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4;hpb=e18b6b14b116a1672723ac4e5714a04174a114d0 diff --git a/bchannel.h b/bchannel.h index faf0602..f7b3860 100644 --- a/bchannel.h +++ b/bchannel.h @@ -13,7 +13,7 @@ struct bchannel { struct bchannel *next; struct chan_call *call; /* link to call process */ - unsigned long handle; /* handle for stack id */ + unsigned int handle; /* handle for stack id */ int b_sock; /* socket for b-channel */ int b_mode; /* dsp, raw, dsphdlc */ int b_state; @@ -22,7 +22,7 @@ struct bchannel { int b_tx_dejitter; int b_tx_gain, b_rx_gain; char b_pipeline[256]; - unsigned long b_conf; + unsigned int b_conf; int b_echo; int b_tone; int b_rxoff; @@ -48,8 +48,8 @@ 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 long handle); -//struct bchannel *find_bchannel_ref(unsigned long ref); -struct bchannel *alloc_bchannel(unsigned long handle); +struct bchannel *find_bchannel_handle(unsigned int handle); +//struct bchannel *find_bchannel_ref(unsigned int ref); +struct bchannel *alloc_bchannel(unsigned int handle); void free_bchannel(struct bchannel *channel);