mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
setupapi: Do not export the toGo/toWindows functions
This commit is contained in:
parent
652158ec3c
commit
223685875f
@ -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")
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user