diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-01-11 05:05:13 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-01-11 05:05:13 +0000 |
commit | 752e3c8938f4a8502e670069c2b268ffa087865d (patch) | |
tree | ceb066c0872c3ecc99f78948f5f857ec0ceee4e8 /include | |
parent | e0d4fcfb55dfc3ffef430c7eb853a0f061431647 (diff) |
- add AST_LIST_HEAD_NOLOCK_STATIC, similar to AST_LIST_HEAD_STATIC, but without the lock!
- store registered channel backends using linked list macros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/linkedlists.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index ef54ed444..2d73f8258 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -129,6 +129,20 @@ struct name { \ }; /*! + \brief Defines a structure to be used to hold a list of specified type, statically initialized. + + This is the same as AST_LIST_HEAD_STATIC, except without the lock included. +*/ +#define AST_LIST_HEAD_NOLOCK_STATIC(name, type) \ +struct name { \ + struct type *first; \ + struct type *last; \ +} name = { \ + .first = NULL, \ + .last = NULL, \ +}; + +/*! \brief Initializes a list head structure with a specified first entry. \param head This is a pointer to the list head structure \param entry pointer to the list entry that will become the head of the list |