[Freeswitch-svn] [commit] r5182 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Mon May 14 20:05:32 EDT 2007


Author: anthm
Date: Mon May 14 20:05:32 2007
New Revision: 5182

Modified:
   freeswitch/trunk/src/include/switch_core.h
   freeswitch/trunk/src/switch_core_session.c

Log:
update

Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h	(original)
+++ freeswitch/trunk/src/include/switch_core.h	Mon May 14 20:05:32 2007
@@ -690,7 +690,7 @@
   \param session the session to check
   \return the number of events
 */
-SWITCH_DECLARE(int32_t) switch_core_session_event_count(switch_core_session_t *session);
+SWITCH_DECLARE(uint32_t) switch_core_session_event_count(switch_core_session_t *session);
 
 /*! 
   \brief DE-Queue an event on a given session
@@ -714,7 +714,7 @@
   \param session the session to check
   \return the number of events
 */
-SWITCH_DECLARE(int32_t) switch_core_session_private_event_count(switch_core_session_t *session);
+SWITCH_DECLARE(uint32_t) switch_core_session_private_event_count(switch_core_session_t *session);
 
 /*! 
   \brief DE-Queue a private event on a given session

Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c	(original)
+++ freeswitch/trunk/src/switch_core_session.c	Mon May 14 20:05:32 2007
@@ -500,13 +500,13 @@
 	return status;
 }
 
-SWITCH_DECLARE(int32_t) switch_core_session_event_count(switch_core_session_t *session)
+SWITCH_DECLARE(uint32_t) switch_core_session_event_count(switch_core_session_t *session)
 {
 	if (session->event_queue) {
-		return (int32_t) switch_queue_size(session->event_queue);
+		return switch_queue_size(session->event_queue);
 	}
 
-	return -1;
+	return 0;
 }
 
 SWITCH_DECLARE(switch_status_t) switch_core_session_dequeue_event(switch_core_session_t *session, switch_event_t **event)
@@ -547,13 +547,13 @@
 	return status;
 }
 
-SWITCH_DECLARE(int32_t) switch_core_session_private_event_count(switch_core_session_t *session)
+SWITCH_DECLARE(uint32_t) switch_core_session_private_event_count(switch_core_session_t *session)
 {
 	if (session->private_event_queue) {
-		return (int32_t) switch_queue_size(session->private_event_queue);
+		return switch_queue_size(session->private_event_queue);
 	}
-
-	return -1;
+	
+	return 0;
 }
 
 SWITCH_DECLARE(switch_status_t) switch_core_session_dequeue_private_event(switch_core_session_t *session, switch_event_t **event)



More information about the Freeswitch-svn mailing list