From 250b9795f3670981f5e276773307e9638ec0aee2 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 1 May 2020 06:57:23 +0200 Subject: setupapi: extend struct size constant definitions for arm(64) Signed-off-by: Simon Rozman --- tun/wintun/setupapi/types32_windows.go | 13 +++++++++++++ tun/wintun/setupapi/types64_windows.go | 13 +++++++++++++ tun/wintun/setupapi/types_windows_386.go | 11 ----------- tun/wintun/setupapi/types_windows_amd64.go | 11 ----------- 4 files changed, 26 insertions(+), 22 deletions(-) create mode 100644 tun/wintun/setupapi/types32_windows.go create mode 100644 tun/wintun/setupapi/types64_windows.go delete mode 100644 tun/wintun/setupapi/types_windows_386.go delete mode 100644 tun/wintun/setupapi/types_windows_amd64.go diff --git a/tun/wintun/setupapi/types32_windows.go b/tun/wintun/setupapi/types32_windows.go new file mode 100644 index 0000000..bacde58 --- /dev/null +++ b/tun/wintun/setupapi/types32_windows.go @@ -0,0 +1,13 @@ +// +build 386 arm + +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + */ + +package setupapi + +const ( + sizeofDevInfoListDetailData uint32 = 550 + sizeofDrvInfoDetailData uint32 = 1570 +) diff --git a/tun/wintun/setupapi/types64_windows.go b/tun/wintun/setupapi/types64_windows.go new file mode 100644 index 0000000..d5c8b37 --- /dev/null +++ b/tun/wintun/setupapi/types64_windows.go @@ -0,0 +1,13 @@ +// +build amd64 arm64 + +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + */ + +package setupapi + +const ( + sizeofDevInfoListDetailData uint32 = 560 + sizeofDrvInfoDetailData uint32 = 1584 +) diff --git a/tun/wintun/setupapi/types_windows_386.go b/tun/wintun/setupapi/types_windows_386.go deleted file mode 100644 index 132f921..0000000 --- a/tun/wintun/setupapi/types_windows_386.go +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: MIT - * - * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. - */ - -package setupapi - -const ( - sizeofDevInfoListDetailData uint32 = 550 - sizeofDrvInfoDetailData uint32 = 1570 -) diff --git a/tun/wintun/setupapi/types_windows_amd64.go b/tun/wintun/setupapi/types_windows_amd64.go deleted file mode 100644 index d4dd65c..0000000 --- a/tun/wintun/setupapi/types_windows_amd64.go +++ /dev/null @@ -1,11 +0,0 @@ -/* SPDX-License-Identifier: MIT - * - * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. - */ - -package setupapi - -const ( - sizeofDevInfoListDetailData uint32 = 560 - sizeofDrvInfoDetailData uint32 = 1584 -) -- cgit v1.2.3-59-g8ed1b