[Freeswitch-svn] [commit] r13085 - freeswitch/trunk/libs/libdingaling/src
FreeSWITCH SVN
anthm at freeswitch.org
Mon Apr 20 10:30:21 PDT 2009
Author: anthm
Date: Mon Apr 20 12:30:21 2009
New Revision: 13085
Log:
add ldl_handle_running
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 Mon Apr 20 12:30:21 2009
@@ -2331,6 +2331,11 @@
ldl_clear_flag_locked(handle, LDL_FLAG_RUNNING);
}
+int ldl_handle_running(ldl_handle_t *handle)
+{
+ return ldl_test_flag(handle, LDL_FLAG_RUNNING) ? 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 Mon Apr 20 12:30:21 2009
@@ -590,6 +590,8 @@
*/
void ldl_handle_stop(ldl_handle_t *handle);
+int ldl_handle_running(ldl_handle_t *handle);
+
/*!
\brief Destroy a libDingaLing handle
More information about the Freeswitch-svn
mailing list