summaryrefslogtreecommitdiff
path: root/tests/headers/dynamic_loading_with_allowlist.hpp
diff options
context:
space:
mode:
authorMarcel Hlopko <hlopko@google.com>2021-02-11 08:58:46 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-02-18 17:25:13 +0100
commit0e25962c4e69aef647e7275fa7bc7545dbb8cd0b (patch)
treef51e49624d79a707069bbfdeb0f15b78219cec94 /tests/headers/dynamic_loading_with_allowlist.hpp
parente59aa9218b0e862cbaed319582bf0b692dfacde2 (diff)
Rename whitelist -> allowlist and blacklist -> blocklist
For the commandline arguments I added undocumented aliases to old flags, to stay backwards compatible.
Diffstat (limited to 'tests/headers/dynamic_loading_with_allowlist.hpp')
-rw-r--r--tests/headers/dynamic_loading_with_allowlist.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/headers/dynamic_loading_with_allowlist.hpp b/tests/headers/dynamic_loading_with_allowlist.hpp
new file mode 100644
index 00000000..995fbdd5
--- /dev/null
+++ b/tests/headers/dynamic_loading_with_allowlist.hpp
@@ -0,0 +1,16 @@
+// bindgen-flags: --dynamic-loading TestLib --allowlist-function baz --allowlist-function foo --allowlist-function bazz
+
+class X {
+ int _x;
+
+ public:
+ X(int x);
+
+ void some_function();
+ void some_other_function();
+};
+
+int foo(void *x);
+int bar(void *x);
+int baz(void *x);
+int bazz(int, ...);