[asterisk-commits] mmichelson: branch group/CCSS r224444 - /team/group/CCSS/main/ccss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Oct 18 16:34:05 CDT 2009
Author: mmichelson
Date: Sun Oct 18 16:34:02 2009
New Revision: 224444
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=224444
Log:
Move cc_ref and cc_unref macros up to the top of the file.
Modified:
team/group/CCSS/main/ccss.c
Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=224444&r1=224443&r2=224444
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Sun Oct 18 16:34:02 2009
@@ -64,6 +64,9 @@
static struct ast_cc_monitor *root_monitor;
static struct ast_taskprocessor *cc_core_taskprocessor;
+#define cc_ref(obj, debug) ({ao2_t_ref((obj), +1, (debug)); (obj);})
+#define cc_unref(obj, debug) ({ao2_t_ref((obj), -1, (debug)); NULL;})
+
/* Parsed configuration value for cc_max_requests */
static unsigned int global_cc_max_requests;
/* The actual number of CC requests in the system */
@@ -615,8 +618,6 @@
return callbacks;
}
-#define cc_ref(obj, debug) ({ao2_t_ref((obj), +1, (debug)); (obj);})
-#define cc_unref(obj, debug) ({ao2_t_ref((obj), -1, (debug)); NULL;})
static void destroy_link(struct ast_cc_monitor_link *link)
{
ast_log(LOG_NOTICE, "Destroying link with parent %s and child %s\n",
More information about the asterisk-commits
mailing list