aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/module.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-15 19:07:48 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-15 19:07:48 +0000
commitee948b14c3c98f858e4b3afc3c89cb7ebdeb287c (patch)
tree8e4a0b00cfb9cd3354b85ad78d6d7b5b350eb1b9 /include/asterisk/module.h
parent0896ace3047f5431400c2849bbcf6907066ea952 (diff)
now that there are no modules that define their own version of
'struct localuser' (see issue #6216), redefine STANDARD_LOCAL_USER to empty, and define the localuser structure in module.h (issue #6494) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10223 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/module.h')
-rw-r--r--include/asterisk/module.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index d9d01b251..2af08533c 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -264,25 +264,24 @@ void ast_unregister_atexit(void (*func)(void));
/*!
* \brief Standard localuser struct definition.
- *
- * This macro defines a localuser struct. The channel.h file must be included
- * to use this macro because it refrences ast_channel.
+ * used to keep track of channels using a given resource.
*/
-#define STANDARD_LOCAL_USER struct localuser { \
- struct ast_channel *chan; \
- struct localuser *next; \
- }
+struct localuser {
+ struct ast_channel *chan;
+ struct localuser *next;
+};
+
+#define STANDARD_LOCAL_USER /* unused and deprecated now */
/*!
* \brief The localuser declaration.
*
- * This macro should be used in combination with #STANDARD_LOCAL_USER. It
- * creates a localuser mutex and several other variables used for keeping the
- * use count.
+ * This creates a localuser mutex and the head of a list of localusers
+ * that is used for keeping track of channels using a resource, as well
+ * as the use count.
*
* <b>Sample Usage:</b>
* \code
- * STANDARD_LOCAL_USER;
* LOCAL_USER_DECL;
* \endcode
*/