- Updated import paths in multiple files to point to the new repository at git.savin.nyc/alex/go-winrt. - Removed old import paths referencing saltosystems/winrt-go. - Ensured consistency across all affected files in the Bluetooth Generic Attribute Profile and Foundation packages.
60 lines
1.8 KiB
Go
60 lines
1.8 KiB
Go
// Code generated by winrt-go-gen. DO NOT EDIT.
|
|
|
|
//go:build windows
|
|
|
|
//nolint:all
|
|
package advertisement
|
|
|
|
import (
|
|
"syscall"
|
|
"unsafe"
|
|
|
|
"git.savin.nyc/alex/go-winrt/windows/devices/bluetooth"
|
|
"github.com/go-ole/go-ole"
|
|
)
|
|
|
|
const SignatureBluetoothLEAdvertisementWatcherStoppedEventArgs string = "rc(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs;{dd40f84d-e7b9-43e3-9c04-0685d085fd8c})"
|
|
|
|
type BluetoothLEAdvertisementWatcherStoppedEventArgs struct {
|
|
ole.IUnknown
|
|
}
|
|
|
|
func (impl *BluetoothLEAdvertisementWatcherStoppedEventArgs) GetError() (bluetooth.BluetoothError, error) {
|
|
itf := impl.MustQueryInterface(ole.NewGUID(GUIDiBluetoothLEAdvertisementWatcherStoppedEventArgs))
|
|
defer itf.Release()
|
|
v := (*iBluetoothLEAdvertisementWatcherStoppedEventArgs)(unsafe.Pointer(itf))
|
|
return v.GetError()
|
|
}
|
|
|
|
const GUIDiBluetoothLEAdvertisementWatcherStoppedEventArgs string = "dd40f84d-e7b9-43e3-9c04-0685d085fd8c"
|
|
const SignatureiBluetoothLEAdvertisementWatcherStoppedEventArgs string = "{dd40f84d-e7b9-43e3-9c04-0685d085fd8c}"
|
|
|
|
type iBluetoothLEAdvertisementWatcherStoppedEventArgs struct {
|
|
ole.IInspectable
|
|
}
|
|
|
|
type iBluetoothLEAdvertisementWatcherStoppedEventArgsVtbl struct {
|
|
ole.IInspectableVtbl
|
|
|
|
GetError uintptr
|
|
}
|
|
|
|
func (v *iBluetoothLEAdvertisementWatcherStoppedEventArgs) VTable() *iBluetoothLEAdvertisementWatcherStoppedEventArgsVtbl {
|
|
return (*iBluetoothLEAdvertisementWatcherStoppedEventArgsVtbl)(unsafe.Pointer(v.RawVTable))
|
|
}
|
|
|
|
func (v *iBluetoothLEAdvertisementWatcherStoppedEventArgs) GetError() (bluetooth.BluetoothError, error) {
|
|
var out bluetooth.BluetoothError
|
|
hr, _, _ := syscall.SyscallN(
|
|
v.VTable().GetError,
|
|
uintptr(unsafe.Pointer(v)), // this
|
|
uintptr(unsafe.Pointer(&out)), // out bluetooth.BluetoothError
|
|
)
|
|
|
|
if hr != 0 {
|
|
return bluetooth.BluetoothErrorSuccess, ole.NewError(hr)
|
|
}
|
|
|
|
return out, nil
|
|
}
|