aboutsummaryrefslogtreecommitdiffstats
path: root/src/cynagora.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-10-24 19:24:33 +0200
committerJose Bollo <jose.bollo@iot.bzh>2019-10-25 13:55:28 +0200
commitde2f16aeefe44b27f870e2b6d964b0fc11aa1b93 (patch)
treef51a48d1e02203cb7240eea52ab452a53425fe98 /src/cynagora.h
parentdf80ab073c4b6c668e5ebedac01a0cfda7ff7c69 (diff)
Implements sub queries of agents
Change-Id: I30e40521d8f8a2694df00a5c9f55adfe748fbd68 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/cynagora.h')
-rw-r--r--src/cynagora.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cynagora.h b/src/cynagora.h
index 167b9bc..7ae166a 100644
--- a/src/cynagora.h
+++ b/src/cynagora.h
@@ -499,3 +499,23 @@ cynagora_agent_reply(
cynagora_query_t *query,
cynagora_value_t *value
);
+
+/**
+ * Check a rule as a sub query of the agent
+ *
+ * @param query the related agent query
+ * @param key the key to check
+ * @param force if true forbids cache check
+ * @param callback the callback to handle the asynchronous reply
+ * @param closure the closure to the callback
+ * @return 0 on success or a negative -errno code
+ */
+extern
+int
+cynagora_agent_subquery_async(
+ cynagora_query_t *query,
+ const cynagora_key_t *key,
+ int force,
+ cynagora_async_check_cb_t *callback,
+ void *closure
+);