]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add a func to check for connected and authorized
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Apr 2009 13:57:31 +0000 (13:57 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Apr 2009 13:57:31 +0000 (13:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13100 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/src/libdingaling.c
libs/libdingaling/src/libdingaling.h

index e16fd7962352c42bfa3c9c83d69a845c46efafaa..0a26440153b5d59545a9fe533fb45578a0e963ce 100644 (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);
index 6b1c988f84be9397daadbb27bc8d4cd3c9964270..3c9ae20177756a1a620e866846408986212874c5 100644 (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);
 
 
 /*!