summaryrefslogtreecommitdiffstats
path: root/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
commit67c5c2d2f02e0c90e13b4463b2f1aac458767483 (patch)
tree4033fbd5dd9e30fa1e398c58be1acac89f457c78 /collection/collection_priv.h
parentd54321a3935f8dd62a0cf7281cbdaf96e7c6e294 (diff)
downloadding-libs-67c5c2d2f02e0c90e13b4463b2f1aac458767483.tar.gz
ding-libs-67c5c2d2f02e0c90e13b4463b2f1aac458767483.tar.xz
ding-libs-67c5c2d2f02e0c90e13b4463b2f1aac458767483.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 'collection/collection_priv.h')
-rw-r--r--collection/collection_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/collection/collection_priv.h b/collection/collection_priv.h
index fc11a1f..699479a 100644
--- a/collection/collection_priv.h
+++ b/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;
};