mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 17:26:03 +00:00
add new func to the core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9208 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8c99670d54
commit
b734a677d4
@ -1628,7 +1628,7 @@ SWITCH_DECLARE(void) switch_core_set_globals(void);
|
|||||||
\return TRUE or FALSE
|
\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_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(switch_hash_index_t *) switch_core_mime_index(void);
|
||||||
SWITCH_DECLARE(const char *) switch_core_mime_ext2type(const char *ext);
|
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);
|
SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext);
|
||||||
|
@ -968,6 +968,14 @@ SWITCH_DECLARE(uint8_t) switch_core_session_compare(switch_core_session_t *a, sw
|
|||||||
return (uint8_t) (a->endpoint_interface == b->endpoint_interface);
|
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)
|
SWITCH_DECLARE(char *) switch_core_session_get_uuid(switch_core_session_t *session)
|
||||||
{
|
{
|
||||||
return session->uuid_str;
|
return session->uuid_str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user