summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-01-18 15:42:48 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-01-18 15:42:48 +0000
commitc8147343079125f7487151f6b6950fe5624c238e (patch)
treeca9bd0bd2ffacf73e80bf759789d981e6b921cf7 /include/asterisk
parent8dc9457bb7d080ee23ffd1981f2af252e8bdeb17 (diff)
allows for use of the originate function from
the cli patch 5847 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-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++; \