[Asterisk-cvs] asterisk/include/asterisk sched.h,1.8,1.9

kpfleming kpfleming
Mon Aug 22 18:53:01 CDT 2005


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

Modified Files:
	sched.h 
Log Message:
add preliminary support for SIP timers (issue #4359)


Index: sched.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/sched.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- sched.h	15 Jul 2005 23:00:47 -0000	1.8
+++ sched.h	22 Aug 2005 22:55:06 -0000	1.9
@@ -62,10 +62,27 @@
  * Schedule an event to take place at some point in the future.  callback 
  * will be called with data as the argument, when milliseconds into the
  * future (approximately)
+ * If callback returns 0, no further events will be re-scheduled
  * Returns a schedule item ID on success, -1 on failure
  */
 extern int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, void *data);
 
+/*!Adds a scheduled event */
+/*! 
+ * \param con Schduler context to add
+ * \param when how many milliseconds to wait for event to occur
+ * \param callback function to call when the amount of time expires
+ * \param data data to pass to the callback
+ * \param variable If true, the result value of callback function will be 
+ *       used for rescheduling
+ * Schedule an event to take place at some point in the future.  callback 
+ * will be called with data as the argument, when milliseconds into the
+ * future (approximately)
+ * If callback returns 0, no further events will be re-scheduled
+ * Returns a schedule item ID on success, -1 on failure
+ */
+extern int ast_sched_add_variable(struct sched_context *con, int when, ast_sched_cb callback, void *data, int variable);
+
 /*! Deletes a scheduled event */
 /*!
  * \param con scheduling context to delete item from




More information about the svn-commits mailing list