mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-11 11:30:07 +08:00
Update exported types and functions annotations
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
45959c116a
commit
25e18d01e6
@@ -9,6 +9,7 @@ import (
|
|||||||
"golang.org/x/sys/windows"
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// DIGCF flags controll what is included in the device information set built by SetupDiGetClassDevs
|
||||||
type DIGCF uint32
|
type DIGCF uint32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -19,9 +20,10 @@ const (
|
|||||||
DIGCF_DEVICEINTERFACE DIGCF = 0x00000010
|
DIGCF_DEVICEINTERFACE DIGCF = 0x00000010
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// DevInfo holds reference to device information set
|
||||||
type DevInfo windows.Handle
|
type DevInfo windows.Handle
|
||||||
|
|
||||||
// SetupDiDestroyDeviceInfoList function deletes a device information set and frees all associated memory.
|
// Close function deletes a device information set and frees all associated memory.
|
||||||
func (h DevInfo) Close() error {
|
func (h DevInfo) Close() error {
|
||||||
if h != DevInfo(windows.InvalidHandle) {
|
if h != DevInfo(windows.InvalidHandle) {
|
||||||
return SetupDiDestroyDeviceInfoList(h)
|
return SetupDiDestroyDeviceInfoList(h)
|
||||||
|
Reference in New Issue
Block a user