summaryrefslogtreecommitdiffstats
path: root/common/collection/collection_priv.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-06-11 10:24:25 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-01 09:17:39 -0400
commit77c350b05bf4a2ec35512699d3450490ba9d6aff (patch)
tree0de356caacdb1e55de01b8f62ed0f859bd924b7d /common/collection/collection_priv.h
parentf89f2f91cc3ff455041b1ca887904e860de6c896 (diff)
downloadsssd-77c350b05bf4a2ec35512699d3450490ba9d6aff.tar.gz
sssd-77c350b05bf4a2ec35512699d3450490ba9d6aff.tar.xz
sssd-77c350b05bf4a2ec35512699d3450490ba9d6aff.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 'common/collection/collection_priv.h')
-rw-r--r--common/collection/collection_priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/collection/collection_priv.h b/common/collection/collection_priv.h
index 38d9012a6..18688f9dd 100644
--- a/common/collection/collection_priv.h
+++ b/common/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
-