]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
allow generating most cdefs for lua
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 15 Dec 2016 15:42:24 +0000 (16:42 +0100)
committerOndřej Surý <ondrej@sury.org>
Mon, 19 Dec 2016 09:17:38 +0000 (10:17 +0100)
commit06b0d3d4bf6c9ef7153db832bed381d5a591a213
tree14fb7bf68297689acefc207d29f92c745a8fc4b2
parentb6cbf35d4a2ffa957c957c6dfb73307606dc286d
allow generating most cdefs for lua

Motivation: maintaining these by hand in kres.lua is tricky, as just
inserting or reordering the structures can do anything and isn't
detected in general.  For example, `rr_array_t::at` has always
"missed a star".

A couple libknot structure fields have apparently changed name since
the old definitions were written; in most cases I renamed them in *.lua.

The file daemon/lua/kres-gen.lua will be regenerated only if explicitly
deleted.  That requires building with debug symbols and gdb on $PATH.
12 files changed:
daemon/daemon.mk
daemon/lua/kres-gen.lua [new file with mode: 0644]
daemon/lua/kres-gen.sh [new file with mode: 0755]
daemon/lua/kres.lua
lib/README.rst
lib/lib.mk
lib/rplan.h
modules/policy/README.rst
modules/policy/zonefile.lua
modules/predict/predict.lua
scripts/gen-cdefs.sh [new file with mode: 0755]
scripts/kresd-host.lua