From c08fd275bf8c45dc09084f104521cbff04eab25b Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Fri, 13 Mar 2015 01:12:35 +0000 Subject: Logger: Convert 'struct ast_callid' to unsigned int. Switch logger callid's from AO2 objects to simple integers. This helps in two ways. Copying integers is faster than referencing AO2 objects, so this will result in a small reduction in logger overhead. This also erases the possibility of an infinate loop caused by an invalid callid in threadstorage. ASTERISK-24833 #comment Committed callid conversion to trunk. Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/4466/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@432834 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index b6755e256..6dd3ac49c 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -4046,12 +4046,12 @@ void ast_channel_tech_set(struct ast_channel *chan, const struct ast_channel_tec enum ast_channel_adsicpe ast_channel_adsicpe(const struct ast_channel *chan); void ast_channel_adsicpe_set(struct ast_channel *chan, enum ast_channel_adsicpe value); enum ast_channel_state ast_channel_state(const struct ast_channel *chan); -struct ast_callid *ast_channel_callid(const struct ast_channel *chan); +ast_callid ast_channel_callid(const struct ast_channel *chan); /*! * \pre chan is locked */ -void ast_channel_callid_set(struct ast_channel *chan, struct ast_callid *value); +void ast_channel_callid_set(struct ast_channel *chan, ast_callid value); /* XXX Internal use only, make sure to move later */ void ast_channel_state_set(struct ast_channel *chan, enum ast_channel_state); -- cgit v1.2.3