From 7bf4da7dbf124a3a8824263a73859aec3364a5ac Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Wed, 5 Apr 2017 23:09:44 -0500 Subject: [PATCH] Updated for Swift 3.1 --- Sources/BluetoothLinux/GATTServer.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Sources/BluetoothLinux/GATTServer.swift b/Sources/BluetoothLinux/GATTServer.swift index de0aed0..a2b2e17 100644 --- a/Sources/BluetoothLinux/GATTServer.swift +++ b/Sources/BluetoothLinux/GATTServer.swift @@ -24,10 +24,11 @@ public final class GATTServer { public let maximumPreparedWrites: Int - // MARK: - Private Properties - - private let connection: ATTConnection + // Don't modify + public let connection: ATTConnection + // MARK: - Private Properties + private var preparedWrites = [PreparedWrite]() // MARK: - Initialization @@ -44,12 +45,14 @@ public final class GATTServer { // MARK: - Methods /// Performs the actual IO for sending data. + @inline(__always) public func read() throws { try connection.read() } /// Performs the actual IO for recieving data. + @inline(__always) public func write() throws -> Bool { return try connection.write()