[asterisk-commits] trunk r10223 - /trunk/include/asterisk/module.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 15 12:07:52 MST 2006


Author: russell
Date: Wed Feb 15 13:07:48 2006
New Revision: 10223

URL: http://svn.digium.com/view/asterisk?rev=10223&view=rev
Log:
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)

Modified:
    trunk/include/asterisk/module.h

Modified: trunk/include/asterisk/module.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/module.h?rev=10223&r1=10222&r2=10223&view=diff
==============================================================================
--- trunk/include/asterisk/module.h (original)
+++ trunk/include/asterisk/module.h Wed Feb 15 13:07:48 2006
@@ -264,25 +264,24 @@
 
 /*! 
  * \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.
- */
-#define STANDARD_LOCAL_USER struct localuser { \
-						struct ast_channel *chan; \
-						struct localuser *next; \
-					     }
+ * used to keep track of channels using a given resource.
+ */
+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
  */



More information about the asterisk-commits mailing list