]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
Update exported types and functions annotations
authorSimon Rozman <simon@rozman.si>
Fri, 1 Feb 2019 10:51:39 +0000 (11:51 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 5 Feb 2019 11:59:42 +0000 (12:59 +0100)
Signed-off-by: Simon Rozman <simon@rozman.si>
setupapi/types_windows.go

index bf7d67be5f0b9aa522c701ad5ce75fb88ec2f574..a5bda6dcb2039d7b8034c5d8ef4bfd5ac7f31b7d 100644 (file)
@@ -9,6 +9,7 @@ import (
        "golang.org/x/sys/windows"
 )
 
+// DIGCF flags controll what is included in the device information set built by SetupDiGetClassDevs
 type DIGCF uint32
 
 const (
@@ -19,9 +20,10 @@ const (
        DIGCF_DEVICEINTERFACE DIGCF = 0x00000010
 )
 
+// DevInfo holds reference to device information set
 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 {
        if h != DevInfo(windows.InvalidHandle) {
                return SetupDiDestroyDeviceInfoList(h)