mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
get uuid from apr-utils for channel events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@190 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -59,6 +59,8 @@ extern "C" {
|
||||
#include <apr_strings.h>
|
||||
#include <apr_network_io.h>
|
||||
#include <apr_poll.h>
|
||||
#include <apr_queue.h>
|
||||
#include <apr_uuid.h>
|
||||
#include <assert.h>
|
||||
#include <sqlite3.h>
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ SWITCH_DECLARE(switch_memory_pool *) switch_core_session_get_pool(switch_core_se
|
||||
SWITCH_DECLARE(void) pbx_core_session_signal_state_change(switch_core_session *session);
|
||||
SWITCH_DECLARE(char *) switch_core_strdup(switch_memory_pool *pool, char *todup);
|
||||
SWITCH_DECLARE(switch_core_db *) switch_core_db_open_file(char *filename);
|
||||
SWITCH_DECLARE(char *) switch_core_session_get_uuid(switch_core_session *session);
|
||||
|
||||
#define SWITCH_CORE_DB "core"
|
||||
#define switch_core_db_handle() switch_core_db_open_file(SWITCH_CORE_DB)
|
||||
|
||||
@@ -65,7 +65,7 @@ typedef enum {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define SWITCH_UUID_FORMATTED_LENGTH APR_UUID_FORMATTED_LENGTH
|
||||
#define SWITCH_CHANNEL_CONSOLE SWITCH_CHANNEL_ID_CONSOLE, __FILE__, __FUNCTION__, __LINE__
|
||||
#define SWITCH_CHANNEL_CONSOLE_CLEAN SWITCH_CHANNEL_ID_CONSOLE_CLEAN, __FILE__, __FUNCTION__, __LINE__
|
||||
#define SWITCH_CHANNEL_EVENT SWITCH_CHANNEL_ID_EVENT, __FILE__, __FUNCTION__, __LINE__
|
||||
@@ -193,6 +193,8 @@ typedef switch_status (*switch_api_function)(char *in, char *out, size_t outlen)
|
||||
The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions
|
||||
any other apr code should be as hidden as possible.
|
||||
*/
|
||||
typedef apr_uuid_t switch_uuid_t;
|
||||
typedef apr_queue_t switch_queue_t;
|
||||
typedef apr_hash_t switch_hash;
|
||||
typedef apr_pool_t switch_memory_pool;
|
||||
typedef apr_thread_t switch_thread;
|
||||
@@ -226,6 +228,9 @@ typedef apr_hash_index_t switch_hash_index_t;
|
||||
#define switch_thread_cond_broadcast apr_thread_cond_broadcast
|
||||
#define switch_thread_cond_destroy apr_thread_cond_destroy
|
||||
|
||||
#define switch_uuid_format apr_uuid_format
|
||||
#define switch_uuid_get apr_uuid_get
|
||||
#define switch_uuid_parse apr_uuid_parse
|
||||
#define switch_queue_create apr_queue_create
|
||||
#define switch_queue_interrupt_all apr_queue_interrupt_all
|
||||
#define switch_queue_pop apr_queue_pop
|
||||
|
||||
Reference in New Issue
Block a user