]> git.saurik.com Git - redis.git/blame - src/ziplist.h
Remove client from list of unblocked clients when it is free'd
[redis.git] / src / ziplist.h
CommitLineData
11ac6ff6
PN
1#define ZIPLIST_HEAD 0
2#define ZIPLIST_TAIL 1
c7019f70
PN
3
4unsigned char *ziplistNew(void);
b6eb9703 5unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where);
c03206fd 6unsigned char *ziplistIndex(unsigned char *zl, int index);
8632fb30
PN
7unsigned char *ziplistNext(unsigned char *zl, unsigned char *p);
8unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p);
b6eb9703
PN
9unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval);
10unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned char *s, unsigned int slen);
6a8e35ad 11unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p);
c7019f70 12unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num);
b6eb9703 13unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen);
4812cf28
PN
14unsigned int ziplistLen(unsigned char *zl);
15unsigned int ziplistSize(unsigned char *zl);