diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-06-11 10:24:25 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-07-01 09:17:39 -0400 |
commit | 76280b68ecc34b8056bf26ec8146de6dd38ee2f3 (patch) | |
tree | 29d1a1b48e92c505af3306f22118fbdd64551962 /collection/collection_priv.h | |
parent | cfadc2dbe9a3b530f924dff398b76c70ebc382e0 (diff) | |
download | ding-libs2-76280b68ecc34b8056bf26ec8146de6dd38ee2f3.tar.gz ding-libs2-76280b68ecc34b8056bf26ec8146de6dd38ee2f3.tar.xz ding-libs2-76280b68ecc34b8056bf26ec8146de6dd38ee2f3.zip |
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.
Diffstat (limited to 'collection/collection_priv.h')
-rw-r--r-- | collection/collection_priv.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdint.h> + /* 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 - |