]> git.saurik.com Git - redis.git/commitdiff
added header ziplist.h
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Sat, 22 May 2010 14:25:18 +0000 (16:25 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Sat, 29 May 2010 19:10:16 +0000 (21:10 +0200)
ziplist.h

index bfc1854a6858c4679a9b8ac4e19522a0efdb9ec1..4b2d1c937314b85fa1e4ca2352b771a719bb5782 100644 (file)
--- a/ziplist.h
+++ b/ziplist.h
@@ -1,2 +1,12 @@
 #define ZIPLIST_HEAD 0
 #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 *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);
\ No newline at end of file