Skip to content

Commit

Permalink
macOS: remove unnecessary typedef includes
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Feb 20, 2024
1 parent c4a19ee commit a1ad5b0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 150 deletions.
2 changes: 2 additions & 0 deletions java-does-usb/jextract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ The resulting code is then committed to the source code repository. Before the c
- `--include-typedef mystruct` if `mystruct` is actually a `struct`.
- `--include-typedef mytypedef` if `mytypedef` is a `typedef` for a primitive type.

- *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.


## Linux

Expand Down
3 changes: 0 additions & 3 deletions java-does-usb/jextract/macos/gen_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ $JEXTRACT --output ../../src/main/java \
--include-constant kIOReturnExclusiveAccess \
--include-var kCFRunLoopDefaultMode \
--include-struct IOCFPlugInInterfaceStruct \
--include-typedef IOCFPlugInInterface \
--include-function IOObjectRelease \
--include-function IOIteratorNext \
--include-function IOCreatePlugInInterfaceForService \
Expand All @@ -53,12 +52,10 @@ $JEXTRACT --output ../../src/main/java \
--include-function IOServiceAddMatchingNotification \
--include-function IOServiceMatching \
--include-struct IOUSBDeviceStruct187 \
--include-typedef IOUSBDeviceInterface187 \
--include-constant kIOUSBFindInterfaceDontCare \
--include-struct IOUSBFindInterfaceRequest \
--include-struct IOUSBDevRequest \
--include-struct IOUSBInterfaceStruct190 \
--include-typedef IOUSBInterfaceInterface190 \
--include-constant kIOUSBTransactionTimeout \
--include-constant kIOReturnAborted \
--include-constant kIOUSBPipeStalled \
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a1ad5b0

Please sign in to comment.