git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9208
d0543943-73ff-0310-b7d9-
9358b9ac24b2
\return TRUE or FALSE
*/
SWITCH_DECLARE(uint8_t) switch_core_session_compare(switch_core_session_t *a, switch_core_session_t *b);
-
+SWITCH_DECLARE(uint8_t) switch_core_session_check_interface(switch_core_session_t *session, const switch_endpoint_interface_t *endpoint_interface);
SWITCH_DECLARE(switch_hash_index_t *) switch_core_mime_index(void);
SWITCH_DECLARE(const char *) switch_core_mime_ext2type(const char *ext);
SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext);
return (uint8_t) (a->endpoint_interface == b->endpoint_interface);
}
+SWITCH_DECLARE(uint8_t) switch_core_session_check_interface(switch_core_session_t *session, const switch_endpoint_interface_t *endpoint_interface)
+{
+ switch_assert(session != NULL);
+ switch_assert(endpoint_interface != NULL);
+
+ return (uint8_t) (session->endpoint_interface == endpoint_interface);
+}
+
SWITCH_DECLARE(char *) switch_core_session_get_uuid(switch_core_session_t *session)
{
return session->uuid_str;