[svn-commits] branch crichter/0.3.0 r31408 -
/team/crichter/0.3.0/channels/misdn/isdn_lib.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Jun 1 09:24:23 MST 2006
Author: crichter
Date: Thu Jun 1 11:24:23 2006
New Revision: 31408
URL: http://svn.digium.com/view/asterisk?rev=31408&view=rev
Log:
unified the PH_CONTROL Interface for the mISDN_dsp interface to int
Modified:
team/crichter/0.3.0/channels/misdn/isdn_lib.c
Modified: team/crichter/0.3.0/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/misdn/isdn_lib.c?rev=31408&r1=31407&r2=31408&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/misdn/isdn_lib.c (original)
+++ team/crichter/0.3.0/channels/misdn/isdn_lib.c Thu Jun 1 11:24:23 2006
@@ -162,7 +162,7 @@
void te_lib_destroy(int midev) ;
struct misdn_bchannel *manager_find_bc_by_pid(int pid);
struct misdn_bchannel *manager_find_bc_holded(struct misdn_bchannel* bc);
-void manager_ph_control_block(struct misdn_bchannel *bc, long c1, void *c2, int c2_len);
+void manager_ph_control_block(struct misdn_bchannel *bc, int c1, void *c2, int c2_len);
void manager_clean_bc(struct misdn_bchannel *bc );
void manager_bchannel_setup (struct misdn_bchannel *bc);
void manager_bchannel_cleanup (struct misdn_bchannel *bc);
@@ -3647,17 +3647,17 @@
/*
* send control information to the channel (dsp-module)
*/
-void manager_ph_control(struct misdn_bchannel *bc, long c1, long c2)
-{
- unsigned char buffer[mISDN_HEADER_LEN+ 2*sizeof(long)];
+void manager_ph_control(struct misdn_bchannel *bc, int c1, int c2)
+{
+ unsigned char buffer[mISDN_HEADER_LEN+ 2*sizeof(int)];
iframe_t *ctrl = (iframe_t *)buffer; /* preload data */
- unsigned long *d = (unsigned long *)&ctrl->data.p;
+ unsigned int *d = (unsigned int*)&ctrl->data.p;
struct misdn_stack *stack=get_stack_by_bc(bc);
ctrl->prim = PH_CONTROL | REQUEST;
ctrl->addr = bc->addr | FLG_MSG_DOWN;
ctrl->dinfo = 0;
- ctrl->len = sizeof(unsigned long)*2;
+ ctrl->len = sizeof(unsigned int)*2;
*d++ = c1;
*d++ = c2;
mISDN_write(stack->midev, ctrl, mISDN_HEADER_LEN+ctrl->len, TIMEOUT_1SEC);
@@ -3666,17 +3666,17 @@
/*
* send control information to the channel (dsp-module)
*/
-void manager_ph_control_block(struct misdn_bchannel *bc, long c1, void *c2, int c2_len)
-{
- unsigned char buffer[mISDN_HEADER_LEN+sizeof(long)+c2_len];
+void manager_ph_control_block(struct misdn_bchannel *bc, int c1, void *c2, int c2_len)
+{
+ unsigned char buffer[mISDN_HEADER_LEN+sizeof(int)+c2_len];
iframe_t *ctrl = (iframe_t *)buffer;
- unsigned long *d = (unsigned long *)&ctrl->data.p;
+ unsigned int *d = (unsigned int *)&ctrl->data.p;
struct misdn_stack *stack=get_stack_by_bc(bc);
ctrl->prim = PH_CONTROL | REQUEST;
ctrl->addr = bc->addr | FLG_MSG_DOWN;
ctrl->dinfo = 0;
- ctrl->len = sizeof(unsigned long) + c2_len;
+ ctrl->len = sizeof(unsigned int) + c2_len;
*d++ = c1;
memcpy(d, c2, c2_len);
mISDN_write(stack->midev, ctrl, mISDN_HEADER_LEN+ctrl->len, TIMEOUT_1SEC);
More information about the svn-commits
mailing list