From: Simon Rozman Date: Fri, 1 Feb 2019 10:51:39 +0000 (+0100) Subject: Update exported types and functions annotations X-Git-Tag: 0.0.20190409~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e18d01e66f4949ee64651177b2ade7199893c1;p=thirdparty%2Fwireguard-go.git Update exported types and functions annotations Signed-off-by: Simon Rozman --- diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go index bf7d67b..a5bda6d 100644 --- a/setupapi/types_windows.go +++ b/setupapi/types_windows.go @@ -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)