diff options
Diffstat (limited to 'llist.h')
-rw-r--r-- | llist.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -7,23 +7,23 @@ /* The head of the linked list. Use this in the structure that shall * contain the head of the linked list */ -#define FLX_LLIST_HEAD(t,name) t *name +#define AVAHI_LLIST_HEAD(t,name) t *name /* The pointers in the linked list's items. Use this in the item structure */ -#define FLX_LLIST_FIELDS(t,name) t *name##_next, *name##_prev +#define AVAHI_LLIST_FIELDS(t,name) t *name##_next, *name##_prev /* Initialize the list's head */ -#define FLX_LLIST_HEAD_INIT(t,head) do { (head) = NULL; } while(0) +#define AVAHI_LLIST_HEAD_INIT(t,head) do { (head) = NULL; } while(0) /* Initialize a list item */ -#define FLX_LLIST_INIT(t,name,item) do { \ +#define AVAHI_LLIST_INIT(t,name,item) do { \ t *_item = (item); \ g_assert(_item); \ _item->name##_prev = _item->name##_next = NULL; \ } while(0) /* Prepend an item to the list */ -#define FLX_LLIST_PREPEND(t,name,head,item) do { \ +#define AVAHI_LLIST_PREPEND(t,name,head,item) do { \ t **_head = &(head), *_item = (item); \ g_assert(_item); \ if ((_item->name##_next = *_head)) \ @@ -33,7 +33,7 @@ } while (0) /* Remove an item from the list */ -#define FLX_LLIST_REMOVE(t,name,head,item) do { \ +#define AVAHI_LLIST_REMOVE(t,name,head,item) do { \ t **_head = &(head), *_item = (item); \ g_assert(_item); \ if (_item->name##_next) \ |