]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Pass a `DNSQuestion` object to Lua hooks 4564/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Oct 2016 12:17:39 +0000 (14:17 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Oct 2016 12:17:39 +0000 (14:17 +0200)
commitba21fcfedc103f12b6a8eadc17f2797b6d7ffb7b
tree6f027d6b0b07a11616c333695615d8d1c2a3d22e
parent2c7a53756e784efe6f3c8b8b4810323b272e7aad
rec: Pass a `DNSQuestion` object to Lua hooks

The main motivation is to get rid of the huge number of parameters
passed to our Lua hooks, and to make it easy to access new values
from every hook. It also prevents copying the `DNSName` and
`ComboAddress` for every Lua hook.
I'm still wondering whether we actually need to make `dq` a shared
pointer, or if we couldn't just allocate it on the stack.
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc