mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
refactor node allocation and make a copy of userdata in case the session gets killed before the logger module gets the node
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14555 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -61,7 +61,7 @@ SWITCH_BEGIN_EXTERN_C
|
||||
switch_time_t timestamp;
|
||||
/*! A pointer to where the actual content of the message starts (skipping past the preformatted portion) */
|
||||
char *content;
|
||||
const char *userdata;
|
||||
char *userdata;
|
||||
/* To maintain abi, only add new elements to the end of this struct and do not delete any elements */
|
||||
switch_text_channel_t channel;
|
||||
} switch_log_node_t;
|
||||
@@ -143,6 +143,9 @@ SWITCH_DECLARE(switch_log_level_t) switch_log_str2level(_In_z_ const char *str);
|
||||
SWITCH_DECLARE(uint32_t) switch_log_str2mask(_In_z_ const char *str);
|
||||
#define switch_log_check_mask(_mask, _level) (_mask & (1 << _level))
|
||||
|
||||
SWITCH_DECLARE(switch_log_node_t*) switch_log_node_alloc();
|
||||
SWITCH_DECLARE(void) switch_log_node_free(switch_log_node_t **node);
|
||||
|
||||
///\}
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user