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:
parent
f94ea75494
commit
720a9796a6
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue