summaryrefslogtreecommitdiffstats
path: root/lib/rplan.h
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2020-04-02 09:01:11 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2020-04-02 14:35:43 +0200
commit55d3aa0a57f900ea1a9fe099505bc724cbaadcb4 (patch)
tree25ddb5d12f458980353f68360c89e8d1668eb78e /lib/rplan.h
parentmodules/policy: make actions usable in postrules (diff)
downloadknot-resolver-55d3aa0a57f900ea1a9fe099505bc724cbaadcb4.tar.xz
knot-resolver-55d3aa0a57f900ea1a9fe099505bc724cbaadcb4.zip
policy: fix qry parameter in postrules
Some rules need it and it was nil until now.
Diffstat (limited to 'lib/rplan.h')
-rw-r--r--lib/rplan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rplan.h b/lib/rplan.h
index 7ac29471..c2888726 100644
--- a/lib/rplan.h
+++ b/lib/rplan.h
@@ -121,6 +121,8 @@ struct kr_rplan {
as the last is the next one to solve,
and they may be inter-dependent. */
kr_qarray_t resolved; /**< List of resolved queries. */
+ struct kr_query *initial; /**< The initial query (also in pending or resolved). */
+
struct kr_request *request; /**< Parent resolution request. */
knot_mm_t *pool; /**< Temporary memory pool. */
uint32_t next_uid; /**< Next value for kr_query::uid (incremental). */