summaryrefslogtreecommitdiffstats
path: root/common/collection/collection_priv.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-07-09 13:02:45 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-15 11:19:45 -0400
commit1a91062d7d82407a6e376b62b29dca709170a66b (patch)
treef2ead880fe67a3991bdf2f998bfc70baf571ffeb /common/collection/collection_priv.h
parentdf8b16d7d55d97001ed71f629fc21511ec9f8d3b (diff)
downloadsssd-1a91062d7d82407a6e376b62b29dca709170a66b.tar.gz
sssd-1a91062d7d82407a6e376b62b29dca709170a66b.tar.xz
sssd-1a91062d7d82407a6e376b62b29dca709170a66b.zip
COLLECTION Adding flat traversal & copy
The collection is hearachical. The flattening of the collection was not implemented before both for traversal and copying. This patch introduces functionality to traverse or iterate through collection as flat set and also copy collection into another flattening it and automatically resolving conflicts. Also imptoved tracability and fixed memory leak in unbind iterator code.
Diffstat (limited to 'common/collection/collection_priv.h')
-rw-r--r--common/collection/collection_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/collection/collection_priv.h b/common/collection/collection_priv.h
index fc11a1fa3..699479a33 100644
--- a/common/collection/collection_priv.h
+++ b/common/collection/collection_priv.h
@@ -57,6 +57,7 @@ struct collection_iterator {
struct collection_item **stack;
unsigned stack_size;
unsigned stack_depth;
+ unsigned item_level;
int flags;
struct collection_item *end_item;
};