diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-08 15:21:46 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-22 15:56:53 +1000 |
commit | fcafe825751bef99f4c0b36250ca6f15f127502f (patch) | |
tree | b5ca3fbaf326d36b9c79358a07ee85645eb1501a /include/input.h | |
parent | 79ca7c0b5786a02a80a1c40ed475e928da7c82b3 (diff) |
Add null-terminated list interface.
This is a set of macros to provide a struct list-alike interface for classic
linked lists such as the XF86OptionRec or the DeviceIntRec. The typical
format for these is to have a "struct foo *next" pointer in each struct foo
and walk through those. These macros provide a few basic functions to add to,
remove from and iterate through these lists.
While struct list is in some ways more flexible, switching legacy code to
use struct list is not alway viable. These macros at least reduce the amount
of open-coded lists.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include/input.h')
0 files changed, 0 insertions, 0 deletions