Skip to content

Commit 6a72e22

Browse files
committed
v1.0.1
- Corrected the visibility of every Event's `var` because they're not visible to consuming code without being explicitly marked as `public` (annoyingly)
1 parent 220ff84 commit 6a72e22

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Sources/SerialSwift/Events/SerialPortClosedEvent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import EventDrivenSwift
1313
Dispatched any time a Serial Interface opens
1414
*/
1515
public struct SerialPortClosedEvent: Eventable {
16-
var refTime: UInt64
17-
var serial: Serialable?
16+
public var refTime: UInt64
17+
public var serial: Serialable?
1818
}

Sources/SerialSwift/Events/SerialPortDataReceivedEvent.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import EventDrivenSwift
1313
Dispatched any time a Serial Interface receives data from the peripheral device
1414
*/
1515
public struct SerialPortDataReceivedEvent: Eventable {
16-
var refTime: UInt64
17-
var serial: Serialable?
18-
var data: Data
16+
public var refTime: UInt64
17+
public var serial: Serialable?
18+
public var data: Data
1919
}

Sources/SerialSwift/Events/SerialPortErrorEvent.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import EventDrivenSwift
1313
Dispatched any time a Serial Interface error occurs
1414
*/
1515
public struct SerialPortErrorEvent: Eventable {
16-
var refTime: UInt64
17-
var serial: Serialable?
18-
var error: Error
16+
public var refTime: UInt64
17+
public var serial: Serialable?
18+
public var error: Error
1919
}

Sources/SerialSwift/Events/SerialPortOpenedEvent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import EventDrivenSwift
1313
Dispatched any time a Serial Interface opens
1414
*/
1515
public struct SerialPortOpenedEvent: Eventable {
16-
var refTime: UInt64
17-
var serial: Serialable?
16+
public var refTime: UInt64
17+
public var serial: Serialable?
1818
}

Sources/SerialSwift/Events/SerialPortRemovedEvent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ import EventDrivenSwift
1313
Dispatched any time a Serial Interface is removed from the system
1414
*/
1515
public struct SerialPortRemovedEvent: Eventable {
16-
var refTime: UInt64
17-
var serial: Serialable?
16+
public var refTime: UInt64
17+
public var serial: Serialable?
1818
}

0 commit comments

Comments
 (0)