|
|
@ -264,25 +264,24 @@ void ast_unregister_atexit(void (*func)(void));
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \brief Standard localuser struct definition.
|
|
|
|
* \brief Standard localuser struct definition.
|
|
|
|
*
|
|
|
|
* used to keep track of channels using a given resource.
|
|
|
|
* 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 localuser {
|
|
|
|
struct ast_channel *chan; \
|
|
|
|
struct ast_channel *chan;
|
|
|
|
struct localuser *next; \
|
|
|
|
struct localuser *next;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define STANDARD_LOCAL_USER /* unused and deprecated now */
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \brief The localuser declaration.
|
|
|
|
* \brief The localuser declaration.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This macro should be used in combination with #STANDARD_LOCAL_USER. It
|
|
|
|
* This creates a localuser mutex and the head of a list of localusers
|
|
|
|
* creates a localuser mutex and several other variables used for keeping the
|
|
|
|
* that is used for keeping track of channels using a resource, as well
|
|
|
|
* use count.
|
|
|
|
* as the use count.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* <b>Sample Usage:</b>
|
|
|
|
* <b>Sample Usage:</b>
|
|
|
|
* \code
|
|
|
|
* \code
|
|
|
|
* STANDARD_LOCAL_USER;
|
|
|
|
|
|
|
|
* LOCAL_USER_DECL;
|
|
|
|
* LOCAL_USER_DECL;
|
|
|
|
* \endcode
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|