[Asterisk-cvs] asterisk/include/asterisk sched.h,1.4,1.5

markster at lists.digium.com markster at lists.digium.com
Fri Mar 4 20:11:32 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv22819/include/asterisk

Modified Files:
	sched.h 
Log Message:
Remove accidental libpri dependency (bug #3714)


Index: sched.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/sched.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sched.h	15 Jan 2005 23:48:12 -0000	1.4
+++ sched.h	5 Mar 2005 02:08:37 -0000	1.5
@@ -102,6 +102,24 @@
  */
 extern void ast_sched_dump(struct sched_context *con);
 
+/*
+ *! Convenience macro for objects and reference (add)
+ *
+ */
+#define ast_sched_add_object(obj,con,when,callback) ast_sched_add((con),(when),(callback), ASTOBJ_REF((obj)))
+
+/*
+ *! Convenience macro for objects and reference (del)
+ *
+ */
+#define ast_sched_del_object(obj,destructor,con,id) do { \
+	if ((id) > -1) { \
+		ast_sched_del((con),(id)); \
+		(id) = -1; \
+		ASTOBJ_UNREF((obj),(destructor)); \
+	} \
+} while(0)
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif




More information about the svn-commits mailing list