aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/module.h
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-18 15:42:48 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-18 15:42:48 +0000
commit8b2bdbe6c641da83023e85fe108c73be0de6c004 (patch)
treeca9bd0bd2ffacf73e80bf759789d981e6b921cf7 /include/asterisk/module.h
parent08260a724107bdad06c95cde5ae5204c0721d88c (diff)
allows for use of the originate function from
the cli patch 5847 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8186 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/module.h')
-rw-r--r--include/asterisk/module.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index afb90ce24..ec01ba115 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -290,6 +290,10 @@ void ast_unregister_atexit(void (*func)(void));
static struct localuser *localusers = NULL; \
static int localusecnt = 0;
+#define STANDARD_USECOUNT_DECL \
+ AST_MUTEX_DEFINE_STATIC(localuser_lock); \
+ static int localusecnt = 0;
+
#define STANDARD_INCREMENT_USECOUNT \
ast_mutex_lock(&localuser_lock); \
localusecnt++; \