fix bindings

This commit is contained in:
chayleaf 2024-08-13 16:09:29 +07:00
parent da7f82a6dd
commit 4259085e0f
Signed by: chayleaf
GPG key ID: 78171AD46227E68E
4 changed files with 6934 additions and 224 deletions

16
dummy.h
View file

@ -1,4 +1,20 @@
#include "config.h" #include "config.h"
#include "util/log.h"
#include "util/module.h"
#include "util/netevent.h"
#include "util/regional.h"
#include "util/config_file.h"
#include "util/data/msgreply.h"
#include "util/data/packed_rrset.h"
#include "util/data/dname.h"
#include "util/storage/lruhash.h"
#include "services/cache/dns.h" #include "services/cache/dns.h"
#include "services/localzone.h" #include "services/localzone.h"
#include "dynlibmod/dynlibmod.h" #include "dynlibmod/dynlibmod.h"
#include "services/mesh.h"
#include "iterator/iter_delegpt.h"
#include "iterator/iter_hints.h"
#include "iterator/iter_utils.h"
#include "sldns/wire2str.h"
#include "sldns/str2wire.h"
#include "sldns/pkthdr.h"

View file

@ -21,4 +21,4 @@ radix_trie = "0.2.1"
serde = { version = "1.0.205", features = ["derive"] } serde = { version = "1.0.205", features = ["derive"] }
serde_json = "1.0.122" serde_json = "1.0.122"
smallvec = "1.13.2" smallvec = "1.13.2"
unbound-mod = { path = "../unbound-mod", default-features = false } unbound-mod = { path = "../unbound-mod" }

View file

@ -21,10 +21,10 @@
cp ${./dummy.h} ./dummy.h cp ${./dummy.h} ./dummy.h
opts=() opts=()
for file in **/*.h; do for file in **/*.h; do
opts+=(--allowlist-file "$PWD/$file") opts+=(--allowlist-file ".*/$file")
done done
bindgen --no-layout-tests "''${opts[@]}" dummy.h -- -I "$PWD" > "$out" bindgen --no-layout-tests "''${opts[@]}" dummy.h -- -I "$PWD" $(grep ^CPPFLAGS= config.log | sed "s/.*='//;s/'//" | head -c-1 && grep ^CFLAGS= config.log | sed "s/.*-pthread//;s/'//") > "$out"
''; '';
}); });
unbound-mod = let unbound-mod = let

File diff suppressed because it is too large Load diff