aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/types_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 02:56:31 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 02:56:31 +0100
commit223685875faa568d97ff1d5324fe994d24f618e7 (patch)
tree49ced972571b0fda56ef9f4ee63bd5aea13819a1 /setupapi/types_windows.go
parentsetupapi: Pass pointers instead of values (diff)
downloadwireguard-go-223685875faa568d97ff1d5324fe994d24f618e7.tar.xz
wireguard-go-223685875faa568d97ff1d5324fe994d24f618e7.zip
setupapi: Do not export the toGo/toWindows functions
Diffstat (limited to '')
-rw-r--r--setupapi/types_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go
index 1fb9a8f..7d16d43 100644
--- a/setupapi/types_windows.go
+++ b/setupapi/types_windows.go
@@ -326,7 +326,7 @@ type SP_DRVINFO_DATA struct {
DriverVersion uint64
}
-func (data *SP_DRVINFO_DATA) ToGo() *DrvInfoData {
+func (data *SP_DRVINFO_DATA) toGo() *DrvInfoData {
return &DrvInfoData{
DriverType: data.DriverType,
Description: windows.UTF16ToString(data.Description[:]),
@@ -373,7 +373,7 @@ type DrvInfoData struct {
DriverVersion uint64
}
-func (DriverInfoData *DrvInfoData) ToWindows() (data *SP_DRVINFO_DATA, err error) {
+func (DriverInfoData *DrvInfoData) toWindows() (data *SP_DRVINFO_DATA, err error) {
data = &SP_DRVINFO_DATA{
DriverType: DriverInfoData.DriverType,
DriverDate: DriverInfoData.DriverDate,