Skip to content

Commit 0818205

Browse files
committed
Update syscalls
1 parent a21a039 commit 0818205

2 files changed

Lines changed: 522 additions & 2 deletions

File tree

Sources/AndroidHardware/Syscalls.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func stub() -> Never {
1717
fatalError("Not running on Android")
1818
}
1919

20-
typealias ALooper_callbackFunc = @convention(c) (Int32, Int32, UnsafeMutableRawPointer?) -> Int32
20+
public typealias ALooper_callbackFunc = @convention(c) (Int32, Int32, UnsafeMutableRawPointer?) -> Int32
2121

2222
// MARK: - ASensorEvent
2323

@@ -29,7 +29,7 @@ typealias ALooper_callbackFunc = @convention(c) (Int32, Int32, UnsafeMutableRawP
2929
* version(4) + sensor(4) + type(4) + reserved0(4) +
3030
* timestamp(8) + data_union(64) + flags(4) + reserved1(12)
3131
*/
32-
public struct ASensorEvent {
32+
public struct ASensorEvent: Sendable {
3333
public var version: Int32 // sizeof(struct ASensorEvent)
3434
public var sensor: Int32 // sensor identifier
3535
public var type: Int32 // sensor type

0 commit comments

Comments
 (0)