automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@41003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge script
2006-08-24 20:01:23 +00:00
parent 26eba15ec8
commit a8350ac22f
3 changed files with 20 additions and 5 deletions

View File

@@ -429,6 +429,23 @@ struct { \
} \
} while (0)
/*!
\brief Appends a whole list to the tail of a list.
\param head This is a pointer to the list head structure
\param list This is a pointer to the list to be appended.
\param field This is the name of the field (declared using AST_LIST_ENTRY())
used to link entries of this list together.
*/
#define AST_LIST_APPEND_LIST(head, list, field) do { \
if (!(head)->first) { \
(head)->first = (list)->first; \
(head)->last = (list)->last; \
} else { \
(head)->last->field.next = (list)->first; \
(head)->last = (list)->last; \
} \
} while (0)
/*!
\brief Removes and returns the head entry from a list.
\param head This is a pointer to the list head structure