summaryrefslogtreecommitdiffstats
path: root/lib/rplan.h
diff options
context:
space:
mode:
authorGrigorii Demidov <grigorii.demidov@nic.cz>2017-05-12 10:22:45 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2017-06-01 16:27:16 +0200
commita5b14c25b5a1f1f9547179535be97b451a8fe68b (patch)
tree72818a6cf9b37c0725c332738184e4c04585b68b /lib/rplan.h
parentlib/resove: WIP some improvements in zone cut detection in forward mode (diff)
downloadknot-resolver-a5b14c25b5a1f1f9547179535be97b451a8fe68b.tar.xz
knot-resolver-a5b14c25b5a1f1f9547179535be97b451a8fe68b.zip
lib/resolve: cleanup
Diffstat (limited to 'lib/rplan.h')
-rw-r--r--lib/rplan.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rplan.h b/lib/rplan.h
index ce5c2f6c..94382fd3 100644
--- a/lib/rplan.h
+++ b/lib/rplan.h
@@ -179,3 +179,19 @@ bool kr_rplan_satisfies(struct kr_query *closure, const knot_dname_t *name, uint
KR_EXPORT KR_PURE
struct kr_query *kr_rplan_resolved(struct kr_rplan *rplan);
+/** Return query predecessor. */
+KR_EXPORT KR_PURE
+struct kr_query *kr_rplan_next(struct kr_query *qry);
+
+/**
+ * Check if a given query already resolved.
+ * @param rplan plan instance
+ * @param parent query parent (or NULL)
+ * @param name resolved name
+ * @param cls resolved class
+ * @param type resolved type
+ * @return query instance or NULL
+ */
+KR_EXPORT KR_PURE
+struct kr_query *kr_rplan_find_resolved(struct kr_rplan *rplan, struct kr_query *parent,
+ const knot_dname_t *name, uint16_t cls, uint16_t type);