Code

store: Added child matchers.
[sysdb.git] / src / include / core / store.h
index e3b3387151ef38b66ec7f32f745304abaff10391..9304acfa79e1f7761928a76dad17e161d02db09f 100644 (file)
@@ -411,6 +411,14 @@ sdb_store_attr_matcher(const char *name, const char *value, _Bool re);
 sdb_store_matcher_t *
 sdb_store_isnull_matcher(const char *attr_name);
 
+/*
+ * sdb_store_child_matcher:
+ * Creates a matcher matching an object's children of the specified type. It
+ * matches if *any* of those children match 'm'.
+ */
+sdb_store_matcher_t *
+sdb_store_child_matcher(int type, sdb_store_matcher_t *m);
+
 /*
  * sdb_store_lt_matcher, sdb_store_le_matcher, sdb_store_eq_matcher,
  * sdb_store_ge_matcher, sdb_store_gt_matcher: