summaryrefslogtreecommitdiffstats
path: root/third_party/rust/alsa-sys/regenerate_bindings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/alsa-sys/regenerate_bindings.sh')
-rwxr-xr-xthird_party/rust/alsa-sys/regenerate_bindings.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/rust/alsa-sys/regenerate_bindings.sh b/third_party/rust/alsa-sys/regenerate_bindings.sh
new file mode 100755
index 0000000000..a1d33d6c02
--- /dev/null
+++ b/third_party/rust/alsa-sys/regenerate_bindings.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+bindgen --size_t-is-usize --no-recursive-whitelist --no-prepend-enum-name --no-layout-tests \
+--generate "functions,types" --whitelist-function="snd_.*" --whitelist-type="_?snd_.*" \
+/usr/include/alsa/asoundlib.h -o src/generated.rs