virtio-input: add linux/input.h
Linux input layer (evdev) header file. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
33aa30cafc
commit
2fe7c31832
1198
include/standard-headers/linux/input.h
Normal file
1198
include/standard-headers/linux/input.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -31,7 +31,7 @@ fi
|
||||||
cp_virtio() {
|
cp_virtio() {
|
||||||
from=$1
|
from=$1
|
||||||
to=$2
|
to=$2
|
||||||
virtio=$(find "$from" -name '*virtio*h')
|
virtio=$(find "$from" -name '*virtio*h' -o -name "input.h")
|
||||||
if [ "$virtio" ]; then
|
if [ "$virtio" ]; then
|
||||||
rm -rf "$to"
|
rm -rf "$to"
|
||||||
mkdir -p "$to"
|
mkdir -p "$to"
|
||||||
|
@ -40,6 +40,7 @@ cp_virtio() {
|
||||||
grep '#include' "$f" | grep -v -e 'linux/virtio' \
|
grep '#include' "$f" | grep -v -e 'linux/virtio' \
|
||||||
-e 'linux/types' \
|
-e 'linux/types' \
|
||||||
-e 'linux/if_ether' \
|
-e 'linux/if_ether' \
|
||||||
|
-e 'sys/' \
|
||||||
> /dev/null
|
> /dev/null
|
||||||
then
|
then
|
||||||
echo "Unexpected #include in input file $f".
|
echo "Unexpected #include in input file $f".
|
||||||
|
@ -48,6 +49,7 @@ cp_virtio() {
|
||||||
|
|
||||||
header=$(basename "$f");
|
header=$(basename "$f");
|
||||||
sed -e 's/__u\([0-9][0-9]*\)/uint\1_t/g' \
|
sed -e 's/__u\([0-9][0-9]*\)/uint\1_t/g' \
|
||||||
|
-e 's/__s\([0-9][0-9]*\)/int\1_t/g' \
|
||||||
-e 's/__le\([0-9][0-9]*\)/uint\1_t/g' \
|
-e 's/__le\([0-9][0-9]*\)/uint\1_t/g' \
|
||||||
-e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
|
-e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
|
||||||
-e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \
|
-e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \
|
||||||
|
|
Loading…
Reference in a new issue