X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/4812cf287347b035c113f8afdc964a007e7744a4..bcfb387694534aa5f2f8ffb3cc12ea6a5f55b092:/ziplist.h diff --git a/ziplist.h b/ziplist.h index fecfe9b6..31125725 100644 --- a/ziplist.h +++ b/ziplist.h @@ -2,13 +2,14 @@ #define ZIPLIST_TAIL 1 unsigned char *ziplistNew(void); -unsigned char *ziplistPush(unsigned char *zl, unsigned char *entry, unsigned int elen, int where); -unsigned char *ziplistPop(unsigned char *zl, sds *target, int where); -unsigned char *ziplistIndex(unsigned char *zl, unsigned int index); -unsigned char *ziplistNext(unsigned char *p); -unsigned int ziplistGet(unsigned char *p, unsigned char **e, unsigned int *elen, long long *v); +unsigned char *ziplistPush(unsigned char *zl, unsigned char *s, unsigned int slen, int where); +unsigned char *ziplistIndex(unsigned char *zl, int index); +unsigned char *ziplistNext(unsigned char *zl, unsigned char *p); +unsigned char *ziplistPrev(unsigned char *zl, unsigned char *p); +unsigned int ziplistGet(unsigned char *p, unsigned char **sval, unsigned int *slen, long long *lval); +unsigned char *ziplistInsert(unsigned char *zl, unsigned char *p, unsigned 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, unsigned char *entry, unsigned int elen); +unsigned int ziplistCompare(unsigned char *p, unsigned char *s, unsigned int slen); unsigned int ziplistLen(unsigned char *zl); unsigned int ziplistSize(unsigned char *zl);