From 76280b68ecc34b8056bf26ec8146de6dd38ee2f3 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Thu, 11 Jun 2009 10:24:25 -0400 Subject: Adding INSERT into collection functionality. Add was always insterting at the end of the collection. With this change one can control where the item is inserted and deal with the duplicates too. Also one now can extract items from collection using absolute and relative disposition. Using more advanced hashing function. --- collection/collection_priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'collection/collection_priv.h') diff --git a/collection/collection_priv.h b/collection/collection_priv.h index 38d9012..18688f9 100644 --- a/collection/collection_priv.h +++ b/collection/collection_priv.h @@ -22,6 +22,8 @@ #ifndef COLLECTION_PRIV_H #define COLLECTION_PRIV_H +#include + /* Define real strcutures */ /* Structure that holds one property. * This structure should never be assumed and used directly other than @@ -43,6 +45,7 @@ struct collection_item { int type; int length; void *data; + uint64_t phash; }; @@ -67,4 +70,3 @@ struct collection_header { }; #endif - -- cgit