[zaptel-commits] tzafrir: branch tzafrir/syncing r1478 - /team/tzafrir/syncing/

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sun Sep 24 16:53:06 MST 2006


Author: tzafrir
Date: Sun Sep 24 18:53:06 2006
New Revision: 1478

URL: http://svn.digium.com/view/zaptel?rev=1478&view=rev
Log:
The required interface change: an extra span method, do_sync .
Called at the end of zt_receive

Modified:
    team/tzafrir/syncing/zaptel.c
    team/tzafrir/syncing/zaptel.h

Modified: team/tzafrir/syncing/zaptel.c
URL: http://svn.digium.com/view/zaptel/team/tzafrir/syncing/zaptel.c?rev=1478&r1=1477&r2=1478&view=diff
==============================================================================
--- team/tzafrir/syncing/zaptel.c (original)
+++ team/tzafrir/syncing/zaptel.c Sun Sep 24 18:53:06 2006
@@ -6827,6 +6827,14 @@
 			}
 		}
 		spin_unlock_irqrestore(&bigzaplock, flagso);			
+		
+		/* sync other spans */
+		for (x=0; x < ZT_MAX_SPANS; x++) {
+			struct zt_span  *curr = spans[x];
+
+			if (curr && curr->do_sync)
+				curr->do_sync(curr);
+		}
 	}
 #endif
 	return 0;

Modified: team/tzafrir/syncing/zaptel.h
URL: http://svn.digium.com/view/zaptel/team/tzafrir/syncing/zaptel.h?rev=1478&r1=1477&r2=1478&view=diff
==============================================================================
--- team/tzafrir/syncing/zaptel.h (original)
+++ team/tzafrir/syncing/zaptel.h Sun Sep 24 18:53:06 2006
@@ -1411,6 +1411,8 @@
 #ifdef CONFIG_DEVFS_FS
 	devfs_handle_t dhandle;  /* Directory name */
 #endif	
+	/* called by sync master on end of zt_receive */
+	int (*do_sync)(struct zt_span *span);
 	/* If the watchdog detects no received data, it will call the
 	   watchdog routine */
 	int (*watchdog)(struct zt_span *span, int cause);



More information about the zaptel-commits mailing list