summaryrefslogtreecommitdiffstats
path: root/collection
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-08-14 15:05:12 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-20 15:47:34 -0400
commit1a0231e8d9162a5fe568436f9db0248ddf691e63 (patch)
tree9a62afb4f677c397f4b8f55cf5667940f94c7a17 /collection
parentaaea92f5620e6eca30a5ca155397a749271d3208 (diff)
downloadding-libs2-1a0231e8d9162a5fe568436f9db0248ddf691e63.tar.gz
ding-libs2-1a0231e8d9162a5fe568436f9db0248ddf691e63.tar.xz
ding-libs2-1a0231e8d9162a5fe568436f9db0248ddf691e63.zip
ELAPI: Adding concept of targets
The targets are the destinations which caller wants to send the events to. The sinks are now on the second level under targets and constitute a so called fail over chain for a target. Such approach eliminates the need for complex routing function. The dispatcher keeps the list of targets in a collection. The element in the collection is the target context. Also gispatcher keeps the list of the sinks in a separate collection. Each target context has a list of the sinks associated with this target. But those are just pointers (at least for now) to the sinks form the list kept by dispatcher. I had to add some internal debug callbacks to be able to see that all the internals of the dispatcher are actually in order. See the conttent of config file for more comments. Also see information posted on SSSD wiki. https://fedorahosted.org/sssd/wiki/WikiPage/ELAPIInterface
Diffstat (limited to 'collection')
-rw-r--r--collection/collection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/collection/collection.h b/collection/collection.h
index 6868cb6..e9533a4 100644
--- a/collection/collection.h
+++ b/collection/collection.h
@@ -443,6 +443,9 @@ int col_get_item_and_do(struct collection_item *ci, /* A collection of items */
* while the pointer to its data is in use.
* Working with the internals of the collection item structure directly
* may cause problems in future if the internal implementation changes.
+ * The caller needs to be aware that function does not return
+ * error if item is not found. The caller needs to check if
+ * item is not NULL to determine whether something was found.
*/
int col_get_item(struct collection_item *ci, /* Collection to find things in */
const char *property_to_find, /* Name to match */