mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
7c6d8bec3f
While we are tweaking all of the copyright headers, let's take the opportunity to ensure there is always a blank line after the copyright header for consistency. (Almost all files already follow this style.) This includes a slightly ugly regex to allow the end of a C-style comment block after the end of the copyright: /* * Example comment block */ <-- this line Change-Id: Idfd0855861e5ecb3d33afae942fdba908af0dcff Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3892521 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com>
46 lines
1.5 KiB
Bash
Executable file
46 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Regenerate libvda bindgen bindings.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/../.."
|
|
|
|
source tools/impl/bindgen-common.sh
|
|
|
|
bindgen_generate \
|
|
--allowlist-type='video_.*' \
|
|
"${BINDGEN_PLATFORM2}/arc/vm/libvda/libvda_common.h" \
|
|
> media/libvda/src/bindings.rs
|
|
|
|
bindgen_generate \
|
|
--raw-line 'pub use crate::bindings::*;' \
|
|
--allowlist-function 'initialize' \
|
|
--allowlist-function 'deinitialize' \
|
|
--allowlist-function 'get_vda_capabilities' \
|
|
--allowlist-function 'init_decode_session' \
|
|
--allowlist-function 'close_decode_session' \
|
|
--allowlist-function 'vda_.*' \
|
|
--allowlist-type 'vda_.*' \
|
|
--blocklist-type 'video_.*' \
|
|
"${BINDGEN_PLATFORM2}/arc/vm/libvda/libvda_decode.h" \
|
|
-- \
|
|
-I "${BINDGEN_PLATFORM2}" \
|
|
> media/libvda/src/decode/bindings.rs
|
|
|
|
bindgen_generate \
|
|
--raw-line 'pub use crate::bindings::*;' \
|
|
--allowlist-function 'initialize_encode' \
|
|
--allowlist-function 'deinitialize_encode' \
|
|
--allowlist-function 'get_vea_capabilities' \
|
|
--allowlist-function 'init_encode_session' \
|
|
--allowlist-function 'close_encode_session' \
|
|
--allowlist-function 'vea_.*' \
|
|
--allowlist-type 'vea_.*' \
|
|
--blocklist-type 'video_.*' \
|
|
"${BINDGEN_PLATFORM2}/arc/vm/libvda/libvda_encode.h" \
|
|
-- \
|
|
-I "${BINDGEN_PLATFORM2}" \
|
|
> media/libvda/src/encode/bindings.rs
|