Skip to content

Commit a1ad5b0

Browse files
committed
macOS: remove unnecessary typedef includes
1 parent c4a19ee commit a1ad5b0

File tree

5 files changed

+2
-150
lines changed

5 files changed

+2
-150
lines changed

java-does-usb/jextract/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The resulting code is then committed to the source code repository. Before the c
2626
- `--include-typedef mystruct` if `mystruct` is actually a `struct`.
2727
- `--include-typedef mytypedef` if `mytypedef` is a `typedef` for a primitive type.
2828

29+
- *jextract* resolves all _typedef_s to their actual types. So this library does not use any _--include-typedef_ option. And there does not seem any obvious use for it.
30+
2931

3032
## Linux
3133

java-does-usb/jextract/macos/gen_macos.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ $JEXTRACT --output ../../src/main/java \
4242
--include-constant kIOReturnExclusiveAccess \
4343
--include-var kCFRunLoopDefaultMode \
4444
--include-struct IOCFPlugInInterfaceStruct \
45-
--include-typedef IOCFPlugInInterface \
4645
--include-function IOObjectRelease \
4746
--include-function IOIteratorNext \
4847
--include-function IOCreatePlugInInterfaceForService \
@@ -53,12 +52,10 @@ $JEXTRACT --output ../../src/main/java \
5352
--include-function IOServiceAddMatchingNotification \
5453
--include-function IOServiceMatching \
5554
--include-struct IOUSBDeviceStruct187 \
56-
--include-typedef IOUSBDeviceInterface187 \
5755
--include-constant kIOUSBFindInterfaceDontCare \
5856
--include-struct IOUSBFindInterfaceRequest \
5957
--include-struct IOUSBDevRequest \
6058
--include-struct IOUSBInterfaceStruct190 \
61-
--include-typedef IOUSBInterfaceInterface190 \
6259
--include-constant kIOUSBTransactionTimeout \
6360
--include-constant kIOReturnAborted \
6461
--include-constant kIOUSBPipeStalled \

java-does-usb/src/main/java/net/codecrete/usb/macos/gen/iokit/IOCFPlugInInterface.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

java-does-usb/src/main/java/net/codecrete/usb/macos/gen/iokit/IOUSBDeviceInterface187.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

java-does-usb/src/main/java/net/codecrete/usb/macos/gen/iokit/IOUSBInterfaceInterface190.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)