mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-17 21:54:10 +00:00

--size_t-is-usize has been deprecated for a while and is removed in bindgen 0.64 Signed-off-by: Christine Caulfield <ccaulfie@redhat.com> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
29 lines
600 B
Bash
Executable File
29 lines
600 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2021-2023 Red Hat, Inc. All rights reserved.
|
|
#
|
|
# Authors: Christine Caulfield <ccaulfie@redhat.com>
|
|
# Fabio M. Di Nitto <fabbione@kronosnet.org>
|
|
#
|
|
# This software licensed under GPL-2.0+
|
|
#
|
|
#
|
|
# Regerate the FFI bindings in src/sys from the current headers
|
|
#
|
|
|
|
srcheader="$1"
|
|
dstrs="$2"
|
|
filter="$3"
|
|
shift; shift; shift
|
|
|
|
bindgen \
|
|
--no-prepend-enum-name \
|
|
--no-layout-tests \
|
|
--no-doc-comments \
|
|
--generate functions,types \
|
|
--fit-macro-constant-types \
|
|
--allowlist-var=$filter.* \
|
|
--allowlist-type=.* \
|
|
--allowlist-function=.* \
|
|
$srcheader -o $dstrs "$@"
|