X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6208b3a77644afe5c7c28688cd6d7554a0281953..9651a78787b922916bd390c70e9a71702939fe34:/adlist.h diff --git a/adlist.h b/adlist.h index 4d32fef5..9b5d5593 100644 --- a/adlist.h +++ b/adlist.h @@ -51,7 +51,6 @@ typedef struct list { void (*free)(void *ptr); int (*match)(void *ptr, void *key); unsigned int len; - listIter iter; } list; /* Functions implemented as macros */ @@ -82,9 +81,8 @@ void listReleaseIterator(listIter *iter); list *listDup(list *orig); listNode *listSearchKey(list *list, void *key); listNode *listIndex(list *list, int index); -void listRewind(list *list); -void listRewindTail(list *list); -listNode *listYield(list *list); +void listRewind(list *list, listIter *li); +void listRewindTail(list *list, listIter *li); /* Directions for iterators */ #define AL_START_HEAD 0