summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_endpoint.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-06-01 11:41:38 +0000
committerBenny Prijono <bennylp@teluu.com>2006-06-01 11:41:38 +0000
commitad70abbdad70cbc5e0c61b41531783290fe08f48 (patch)
tree329b30cede67acca24de9ea14cee1b80fe76eaa0 /pjsip/include/pjsip/sip_endpoint.h
parenta8f85a3825b8b3806de0801cfc981c77577eb211 (diff)
Added pjsip_endpt_handle_events2(), which has an additional argument to report how many events are caught in the poll
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@486 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_endpoint.h')
-rw-r--r--pjsip/include/pjsip/sip_endpoint.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_endpoint.h b/pjsip/include/pjsip/sip_endpoint.h
index c9163ed8..f25c7493 100644
--- a/pjsip/include/pjsip/sip_endpoint.h
+++ b/pjsip/include/pjsip/sip_endpoint.h
@@ -116,6 +116,21 @@ PJ_DECL(pj_status_t) pjsip_endpt_handle_events( pjsip_endpoint *endpt,
/**
+ * Handle events with additional info about number of events that
+ * have been handled.
+ *
+ * @param endpt The endpoint.
+ * @param max_timeout Maximum time to wait for events, or NULL to wait forever
+ * until event is received.
+ * @param count Optional argument to receive the number of events that
+ * have been handled by the function.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjsip_endpt_handle_events2(pjsip_endpoint *endpt,
+ const pj_time_val *max_timeout,
+ unsigned *count);
+/**
* Schedule timer to endpoint's timer heap. Application must poll the endpoint
* periodically (by calling #pjsip_endpt_handle_events) to ensure that the
* timer events are handled in timely manner. When the timeout for the timer