[Asterisk-cvs] libpri-matt prisched.c,1.3,1.4

mattf at lists.digium.com mattf at lists.digium.com
Fri Jan 14 10:51:25 CST 2005


Update of /usr/cvsroot/libpri-matt
In directory mongoose.digium.com:/tmp/cvs-serv28738

Modified Files:
	prisched.c 
Log Message:
More cleanup routines for ADPUs


Index: prisched.c
===================================================================
RCS file: /usr/cvsroot/libpri-matt/prisched.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- prisched.c	30 Dec 2004 14:23:55 -0000	1.3
+++ prisched.c	14 Jan 2005 16:55:14 -0000	1.4
@@ -153,3 +153,20 @@
 	return 0;
 }
 
+int pri_call_adpu_queue_cleanup(q931_call *call)
+{
+	struct adpu_event *cur_event = NULL, free_event = NULL;
+
+	if (call->adpus) {
+		cur_event = call->adpus;
+		while (cur_event) {
+			/* TODO: callbacks, some way of giving return res on status of adpu */
+			free_event = cur_event;
+			free(free_event);
+			cur_event = cur_event->next;
+		}
+		call->adpus = NULL;
+	}
+
+	return 0;
+}




More information about the svn-commits mailing list