X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c03206fdf1dc0241d97204aba813c13b82f40d6e..6a8e35ad9252f1ea1ff0a449af52aef1f71815f8:/ziplist.h diff --git a/ziplist.h b/ziplist.h index 29be0b40..e8522182 100644 --- a/ziplist.h +++ b/ziplist.h @@ -5,8 +5,10 @@ unsigned char *ziplistNew(void); unsigned char *ziplistPush(unsigned char *zl, char *s, unsigned int slen, int where); unsigned char *ziplistPop(unsigned char *zl, sds *target, int where); unsigned char *ziplistIndex(unsigned char *zl, int index); -unsigned char *ziplistNext(unsigned char *p); +unsigned char *ziplistNext(unsigned char *zl, unsigned char *p); +unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p); unsigned int ziplistGet(unsigned char *p, char **sstr, unsigned int *slen, long long *sval); +unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, char *s, unsigned int slen); unsigned char *ziplistDelete(unsigned char *zl, unsigned char **p); unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num); unsigned int ziplistCompare(unsigned char *p, char *entry, unsigned int elen);