From: Colin Vidal Date: Mon, 27 Oct 2025 21:15:39 +0000 (+0100) Subject: new: dev: introduce cfg_obj_clone to clone a config tree X-Git-Tag: v9.21.15~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d951cedd0213ac549756f529fd9fd5511e5f1c93;p=thirdparty%2Fbind9.git new: dev: introduce cfg_obj_clone to clone a config tree Introduce `cfg_obj_clone` which takes a `cfg_obj_t` node and clones it. it allocates a new node, copies its scalar values and recursively allocates child nodes, copying their scalar values as well and so on. Internally, a new method `cfg_copyfunc_t` copy is added in `cfg_rep_t`, which enables implementing a copy function specific for each representation type a node can hold. This is pre-require work for MR !11121 !11122 !11123 Merge branch 'colin/effective-config-clone' into 'main' See merge request isc-projects/bind9!11124 --- d951cedd0213ac549756f529fd9fd5511e5f1c93