88package net .codecrete .usb .macos ;
99
1010import net .codecrete .usb .common .ForeignMemory ;
11- import net .codecrete .usb .macos .gen .iokit .IOUSBDeviceInterface100 ;
11+ import net .codecrete .usb .macos .gen .iokit .IOUSBDeviceInterface182 ;
1212import net .codecrete .usb .macos .gen .iokit .IOUSBInterfaceInterface190 ;
1313
1414import java .lang .foreign .MemorySegment ;
@@ -29,60 +29,60 @@ private static MemorySegment getVtable(MemorySegment self) {
2929
3030 // HRESULT (STDMETHODCALLTYPE *QueryInterface)(void *thisPointer, REFIID iid, LPVOID *ppv);
3131 public static int QueryInterface (MemorySegment self , MemorySegment iid , MemorySegment ppv ) {
32- return IOUSBDeviceInterface100 .QueryInterface (getVtable (self ), SegmentScope .global ()).apply (self , iid , ppv );
32+ return IOUSBDeviceInterface182 .QueryInterface (getVtable (self ), SegmentScope .global ()).apply (self , iid , ppv );
3333 }
3434
3535 // ULONG (STDMETHODCALLTYPE *AddRef)(void *thisPointer);
3636 public static int AddRef (MemorySegment self ) {
37- return IOUSBDeviceInterface100 .AddRef (getVtable (self ), SegmentScope .global ()).apply (self );
37+ return IOUSBDeviceInterface182 .AddRef (getVtable (self ), SegmentScope .global ()).apply (self );
3838 }
3939
4040 // ULONG (STDMETHODCALLTYPE *Release)(void *thisPointer)
4141 public static int Release (MemorySegment self ) {
42- return IOUSBDeviceInterface100 .Release (getVtable (self ), SegmentScope .global ()).apply (self );
42+ return IOUSBDeviceInterface182 .Release (getVtable (self ), SegmentScope .global ()).apply (self );
4343 }
4444
4545 // IOReturn (* CreateDeviceAsyncEventSource)(void* self, CFRunLoopSourceRef* source);
4646 public static int CreateDeviceAsyncEventSource (MemorySegment self , MemorySegment source ) {
47- return IOUSBDeviceInterface100 .CreateDeviceAsyncEventSource (getVtable (self ), SegmentScope .global ()).apply (self , source );
47+ return IOUSBDeviceInterface182 .CreateDeviceAsyncEventSource (getVtable (self ), SegmentScope .global ()).apply (self , source );
4848 }
4949
5050 // CFRunLoopSourceRef (* GetDeviceAsyncEventSource)(void* self);
5151 public static MemorySegment GetDeviceAsyncEventSource (MemorySegment self ) {
52- return IOUSBDeviceInterface100 .GetDeviceAsyncEventSource (getVtable (self ), SegmentScope .global ()).apply (self );
52+ return IOUSBDeviceInterface182 .GetDeviceAsyncEventSource (getVtable (self ), SegmentScope .global ()).apply (self );
5353 }
5454
55- // IOReturn (*USBDeviceOpen )(void *self);
56- public static int USBDeviceOpen (MemorySegment self ) {
57- return IOUSBDeviceInterface100 . USBDeviceOpen (getVtable (self ), SegmentScope .global ()).apply (self );
55+ // IOReturn (*USBDeviceOpenSeize )(void *self);
56+ public static int USBDeviceOpenSeize (MemorySegment self ) {
57+ return IOUSBDeviceInterface182 . USBDeviceOpenSeize (getVtable (self ), SegmentScope .global ()).apply (self );
5858 }
5959
6060 // IOReturn (*USBDeviceClose)(void *self);
6161 public static int USBDeviceClose (MemorySegment self ) {
62- return IOUSBDeviceInterface100 .USBDeviceClose (getVtable (self ), SegmentScope .global ()).apply (self );
62+ return IOUSBDeviceInterface182 .USBDeviceClose (getVtable (self ), SegmentScope .global ()).apply (self );
6363 }
6464
6565 // IOReturn (*GetConfigurationDescriptorPtr)(void *self, UInt8 configIndex, IOUSBConfigurationDescriptorPtr *desc);
6666 public static int GetConfigurationDescriptorPtr (MemorySegment self , byte configIndex , MemorySegment descHolder ) {
67- return IOUSBDeviceInterface100 .GetConfigurationDescriptorPtr (getVtable (self ), SegmentScope .global ()).apply (self , configIndex , descHolder );
67+ return IOUSBDeviceInterface182 .GetConfigurationDescriptorPtr (getVtable (self ), SegmentScope .global ()).apply (self , configIndex , descHolder );
6868 }
6969
7070 // IOReturn (*SetConfiguration)(void *self, UInt8 configNum);
7171 public static int SetConfiguration (MemorySegment self , byte configValue ) {
72- return IOUSBDeviceInterface100 .SetConfiguration (getVtable (self ), SegmentScope .global ()).apply (self ,
72+ return IOUSBDeviceInterface182 .SetConfiguration (getVtable (self ), SegmentScope .global ()).apply (self ,
7373 configValue );
7474 }
7575
7676 // IOReturn (*CreateInterfaceIterator)(void *self, IOUSBFindInterfaceRequest *req, io_iterator_t *iter);
7777 public static int CreateInterfaceIterator (MemorySegment self , MemorySegment req , MemorySegment iter ) {
78- return IOUSBDeviceInterface100 .CreateInterfaceIterator (getVtable (self ), SegmentScope .global ()).apply (self ,
78+ return IOUSBDeviceInterface182 .CreateInterfaceIterator (getVtable (self ), SegmentScope .global ()).apply (self ,
7979 req , iter );
8080 }
8181
8282 // IOReturn (* DeviceRequestAsync)(void* self, IOUSBDevRequest* req, IOAsyncCallback1 callback, void* refCon);
8383 public static int DeviceRequestAsync (MemorySegment self , MemorySegment deviceRequest , MemorySegment callback ,
8484 MemorySegment refCon ) {
85- return IOUSBDeviceInterface100 .DeviceRequestAsync (getVtable (self ), SegmentScope .global ()).apply (self ,
85+ return IOUSBDeviceInterface182 .DeviceRequestAsync (getVtable (self ), SegmentScope .global ()).apply (self ,
8686 deviceRequest , callback , refCon );
8787 }
8888
0 commit comments