add a func to check for connected and authorized

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13100 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-21 13:57:31 +00:00
parent f94ea75494
commit 720a9796a6
2 changed files with 12 additions and 0 deletions

View File

@ -2336,6 +2336,16 @@ int ldl_handle_running(ldl_handle_t *handle)
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);

View File

@ -591,6 +591,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);
int ldl_handle_connected(ldl_handle_t *handle);
int ldl_handle_authorized(ldl_handle_t *handle);
/*!