[svn-commits] tzafrir: branch tzafrir/sync r2227 - /team/tzafrir/sync/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Feb 25 14:20:50 MST 2007


Author: tzafrir
Date: Sun Feb 25 15:20:50 2007
New Revision: 2227

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2227
Log:
The change in zaptel: add a span method called sync_tick.
If sync_tick is not null, the zaptel master span calls it for the span 
on every tick.

This is indended to allow other spans to synchronize from the master span. 

Modified:
    team/tzafrir/sync/zaptel.c
    team/tzafrir/sync/zaptel.h
    team/tzafrir/sync/zconfig.h

Modified: team/tzafrir/sync/zaptel.c
URL: http://svn.digium.com/view/zaptel/team/tzafrir/sync/zaptel.c?view=diff&rev=2227&r1=2226&r2=2227
==============================================================================
--- team/tzafrir/sync/zaptel.c (original)
+++ team/tzafrir/sync/zaptel.c Sun Feb 25 15:20:50 2007
@@ -6631,6 +6631,10 @@
 	int x,y,z;
 	unsigned long flags;
 
+#ifdef	ZAPTEL_SYNC_TICK
+	if(span->sync_tick)
+		span->sync_tick(span, span == master);
+#endif
 #if 1
 	for (x=0;x<span->channels;x++) {
 		spin_lock_irqsave(&span->chans[x].lock, flags);

Modified: team/tzafrir/sync/zaptel.h
URL: http://svn.digium.com/view/zaptel/team/tzafrir/sync/zaptel.h?view=diff&rev=2227&r1=2226&r2=2227
==============================================================================
--- team/tzafrir/sync/zaptel.h (original)
+++ team/tzafrir/sync/zaptel.h Sun Feb 25 15:20:50 2007
@@ -1376,6 +1376,11 @@
 	/* Opt: Enable maintenance modes */
 	int (*maint)(struct zt_span *span, int mode);
 
+#ifdef	ZAPTEL_SYNC_TICK
+	/* Opt: send sync to spans */
+	int (*sync_tick)(struct zt_span *span, int is_master);
+#endif
+
 	/* ====  Channel Callback Operations ==== */
 	/* Opt: Set signalling type (if appropriate) */
 	int (*chanconfig)(struct zt_chan *chan, int sigtype);

Modified: team/tzafrir/sync/zconfig.h
URL: http://svn.digium.com/view/zaptel/team/tzafrir/sync/zconfig.h?view=diff&rev=2227&r1=2226&r2=2227
==============================================================================
--- team/tzafrir/sync/zconfig.h (original)
+++ team/tzafrir/sync/zconfig.h Sun Feb 25 15:20:50 2007
@@ -176,5 +176,6 @@
  * Most applications will want this commented out.
  */
 /* #define FXSFLASH */
+#define ZAPTEL_SYNC_TICK
 
 #endif



More information about the svn-commits mailing list