[Freeswitch-svn] [commit] r13100 - freeswitch/trunk/libs/libdingaling/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Apr 21 06:57:31 PDT 2009


Author: anthm
Date: Tue Apr 21 08:57:31 2009
New Revision: 13100

Log:
add a func to check for connected and authorized

Modified:
   freeswitch/trunk/libs/libdingaling/src/libdingaling.c
   freeswitch/trunk/libs/libdingaling/src/libdingaling.h

Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.c
==============================================================================
--- freeswitch/trunk/libs/libdingaling/src/libdingaling.c	(original)
+++ freeswitch/trunk/libs/libdingaling/src/libdingaling.c	Tue Apr 21 08:57:31 2009
@@ -2336,6 +2336,16 @@
 	return ldl_test_flag(handle, LDL_FLAG_RUNNING) ? 1 : 0;
 }
 
+int ldl_handle_connected(ldl_handle_t *handle)
+{
+	return ldl_test_flag(handle, LDL_FLAG_CONNECTED) ? 1 : 0;
+}
+
+int ldl_handle_authorized(ldl_handle_t *handle)
+{
+	return ldl_test_flag(handle, LDL_FLAG_AUTHORIZED) ? 1 : 0;
+}
+
 void ldl_handle_stop(ldl_handle_t *handle)
 {
 	ldl_clear_flag_locked(handle, LDL_FLAG_RUNNING);

Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.h
==============================================================================
--- freeswitch/trunk/libs/libdingaling/src/libdingaling.h	(original)
+++ freeswitch/trunk/libs/libdingaling/src/libdingaling.h	Tue Apr 21 08:57:31 2009
@@ -591,6 +591,8 @@
 void ldl_handle_stop(ldl_handle_t *handle);
 
 int ldl_handle_running(ldl_handle_t *handle);
+int ldl_handle_connected(ldl_handle_t *handle);
+int ldl_handle_authorized(ldl_handle_t *handle);
 
 
 /*!



More information about the Freeswitch-svn mailing list