]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
setupapi: Do not export the toGo/toWindows functions
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Feb 2019 01:56:31 +0000 (02:56 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Feb 2019 01:56:31 +0000 (02:56 +0100)
setupapi/setupapi_windows_test.go
setupapi/types_windows.go

index 2325164952eae17ec18fddf01bfc502425b94609..e6b00c936b1e1dad5de2655ca1f2b93c77ce395a 100644 (file)
@@ -169,7 +169,7 @@ func TestDevInfo_BuildDriverInfoList(t *testing.T) {
                                continue
                        }
 
-                       if driverData2, err2 := driverData.ToGo().ToWindows(); err2 != nil || *driverData2 != *driverData {
+                       if driverData2, err2 := driverData.toGo().toWindows(); err2 != nil || *driverData2 != *driverData {
                                t.Error("Error converting between SP_DRVINFO_DATA and DrvInfoData")
                        }
 
index 1fb9a8fce04d2ddf898c5487d7e9c95702d5ac73..7d16d43d2d8061d164ee11d1fcc02f26c22e5c65 100644 (file)
@@ -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,