X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c7019f7019a7ded425e700f391263227e259bbcb..0f3dfa87bc8870c1da6867b7e2d9d70f7e21fc93:/ziplist.h diff --git a/ziplist.h b/ziplist.h index 4b2d1c93..08035dd5 100644 --- a/ziplist.h +++ b/ziplist.h @@ -2,11 +2,15 @@ #define ZIPLIST_TAIL 1 unsigned char *ziplistNew(void); -unsigned char *ziplistPush(unsigned char *zl, unsigned char *entry, unsigned int elen, int where); +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, unsigned int index); +unsigned char *ziplistIndex(unsigned char *zl, 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 *ziplistDelete(unsigned char *zl, unsigned char **p); +unsigned char *ziplistPrev(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, int direction); unsigned char *ziplistDeleteRange(unsigned char *zl, unsigned int index, unsigned int num); -unsigned int ziplistCompare(unsigned char *p, unsigned char *entry, unsigned int elen); \ No newline at end of file +unsigned int ziplistCompare(unsigned char *p, char *entry, unsigned int elen); +unsigned int ziplistLen(unsigned char *zl); +unsigned int ziplistSize(unsigned char *zl);