diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-10-25 13:21:24 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-12-10 17:20:26 -0500 |
commit | 18c06c0836306c194e5f89e37d2f3913b3bf01e4 (patch) | |
tree | c991c0a4fa484733c14822769f71f04d90492711 /common/collection/collection.h | |
parent | 7faf7764c8b99bd51e952f24350dcdb05f9ab78e (diff) | |
download | sssd-18c06c0836306c194e5f89e37d2f3913b3bf01e4.tar.gz sssd-18c06c0836306c194e5f89e37d2f3913b3bf01e4.tar.xz sssd-18c06c0836306c194e5f89e37d2f3913b3bf01e4.zip |
COLLECTION Create reference to the top level collection
This patch adds ability to create a reference to the top
level collection.
Previously one could get reference only to collection
inside other collection. With this change it becomes
possible to have two pointers to the same top level
collection from multiple places.
COLLECTION Adding comment.
COLLECTION: Some tracing
Diffstat (limited to 'common/collection/collection.h')
-rw-r--r-- | common/collection/collection.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/collection/collection.h b/common/collection/collection.h index 2e2fe642f..665d5f00c 100644 --- a/common/collection/collection.h +++ b/common/collection/collection.h @@ -686,8 +686,10 @@ int col_is_item_in_collection(struct collection_item *ci, /* Collection to fin int *found); /* Boolean that turns to nonzero if the match is found */ -/* Get collection - get a pointer to a collection included into another collection */ -/* Delete extracted collection after use to decrease reference count. */ +/* Get collection - get a pointer to a collection included into another collection. + * If the collection_to_find is NULL function reterns a reference to the top level collection. + * Delete extracted collection after use to decrease reference count. + */ int col_get_collection_reference(struct collection_item *ci, /* High level collection */ struct collection_item **acceptor, /* The pointer that will accept extracted handle */ const char *collection_to_find); /* Name to of the collection */ |