[zaptel-commits] kpfleming: branch 1.4 r3596 - in /branches/1.4: zaptel-base.c zaptel.h

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jan 2 14:58:59 CST 2008


Author: kpfleming
Date: Wed Jan  2 14:58:58 2008
New Revision: 3596

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3596
Log:
expose the limit for echocan params so programs will know what to expect

Modified:
    branches/1.4/zaptel-base.c
    branches/1.4/zaptel.h

Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=3596&r1=3595&r2=3596
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Wed Jan  2 14:58:58 2008
@@ -4302,16 +4302,14 @@
 }
 #endif
 
-#define MAX_ECHOCANPARAMS 8
-
 static int ioctl_echocancel(struct zt_chan *chan, struct zt_echocanparams *ecp, void *data)
 {
 	struct echo_can_state *ec = NULL, *tec;
-	struct zt_echocanparam params[MAX_ECHOCANPARAMS];
+	struct zt_echocanparam params[ZT_MAX_ECHOCANPARAMS];
 	int ret;
 	unsigned long flags;
 
-	if (ecp->param_count > MAX_ECHOCANPARAMS)
+	if (ecp->param_count > ZT_MAX_ECHOCANPARAMS)
 		return -E2BIG;
 
 	if (ecp->tap_length == 0) {

Modified: branches/1.4/zaptel.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel.h?view=diff&rev=3596&r1=3595&r2=3596
==============================================================================
--- branches/1.4/zaptel.h (original)
+++ branches/1.4/zaptel.h Wed Jan  2 14:58:58 2008
@@ -875,6 +875,8 @@
 	int ringcadence[ZT_MAX_CADENCE];
 };
 
+#define ZT_MAX_ECHOCANPARAMS 8
+
 struct zt_echocanparam {
 	char name[16];
 	unsigned int value;




More information about the zaptel-commits mailing list