add ldl_handle_running

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13085 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-20 17:30:21 +00:00
parent 32e2fddef3
commit 900f820810
2 changed files with 7 additions and 0 deletions

View File

@ -2331,6 +2331,11 @@ void ldl_handle_run(ldl_handle_t *handle)
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);

View File

@ -590,6 +590,8 @@ void ldl_handle_run(ldl_handle_t *handle);
*/
void ldl_handle_stop(ldl_handle_t *handle);
int ldl_handle_running(ldl_handle_t *handle);
/*!
\brief Destroy a libDingaLing handle