Add common linked list implementation
authorRan Benita <ran234@gmail.com>
Mon, 16 Jul 2012 08:06:33 +0000 (11:06 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 18 Jul 2012 09:56:13 +0000 (12:56 +0300)
commitb6e2a56dc0672fb4d1008828aab0dba00ecee630
treef00c731e3162d27338e959be0c13109fb5e4a0bb
parent0a6f9ccde26ab8d003b4294aab972ae695843a98
Add common linked list implementation

Taken from xserver/include/list.h. The changes made are:
* Drop the xorg_ prefix and some typedef from the end.
* Rename _for_each_entry macros to just _foreach (like darray).
* Rename list_is_empty to list_empty (like darray).
* Add a list_replace function which we use later.

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
src/list.h [new file with mode: 0644]
src/xkb-priv.h