Skip to content
Snippets Groups Projects
Commit 67ffae03 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add CMixIncreaseParallelNodeRegistration wrapper

parent 38013570
No related branches found
No related tags found
2 merge requests!129Update Bindings,!102Release 1.0.0
This commit is part of merge request !129. Comments created here will be created in the context of that merge request.
...@@ -8,6 +8,7 @@ public struct CMix { ...@@ -8,6 +8,7 @@ public struct CMix {
public var getNodeRegistrationStatus: CMixGetNodeRegistrationStatus public var getNodeRegistrationStatus: CMixGetNodeRegistrationStatus
public var hasRunningProcesses: CMixHasRunningProcesses public var hasRunningProcesses: CMixHasRunningProcesses
public var getRunningProcesses: CMixGetRunningProcesses public var getRunningProcesses: CMixGetRunningProcesses
public var increaseParallelNodeRegistration: CMixIncreaseParallelNodeRegistration
public var networkFollowerStatus: CMixNetworkFollowerStatus public var networkFollowerStatus: CMixNetworkFollowerStatus
public var startNetworkFollower: CMixStartNetworkFollower public var startNetworkFollower: CMixStartNetworkFollower
public var stopNetworkFollower: CMixStopNetworkFollower public var stopNetworkFollower: CMixStopNetworkFollower
...@@ -28,6 +29,7 @@ extension CMix { ...@@ -28,6 +29,7 @@ extension CMix {
getNodeRegistrationStatus: .live(bindingsCMix), getNodeRegistrationStatus: .live(bindingsCMix),
hasRunningProcesses: .live(bindingsCMix), hasRunningProcesses: .live(bindingsCMix),
getRunningProcesses: .live(bindingsCMix), getRunningProcesses: .live(bindingsCMix),
increaseParallelNodeRegistration: .live(bindingsCMix),
networkFollowerStatus: .live(bindingsCMix), networkFollowerStatus: .live(bindingsCMix),
startNetworkFollower: .live(bindingsCMix), startNetworkFollower: .live(bindingsCMix),
stopNetworkFollower: .live(bindingsCMix), stopNetworkFollower: .live(bindingsCMix),
...@@ -49,6 +51,7 @@ extension CMix { ...@@ -49,6 +51,7 @@ extension CMix {
getNodeRegistrationStatus: .unimplemented, getNodeRegistrationStatus: .unimplemented,
hasRunningProcesses: .unimplemented, hasRunningProcesses: .unimplemented,
getRunningProcesses: .unimplemented, getRunningProcesses: .unimplemented,
increaseParallelNodeRegistration: .unimplemented,
networkFollowerStatus: .unimplemented, networkFollowerStatus: .unimplemented,
startNetworkFollower: .unimplemented, startNetworkFollower: .unimplemented,
stopNetworkFollower: .unimplemented, stopNetworkFollower: .unimplemented,
......
import Bindings
import XCTestDynamicOverlay
public struct CMixIncreaseParallelNodeRegistration {
public var run: (Int) throws -> Void
public func callAsFunction(num: Int) throws {
try run(num)
}
}
extension CMixIncreaseParallelNodeRegistration {
public static func live(_ bindingsCMix: BindingsCmix) -> CMixIncreaseParallelNodeRegistration {
CMixIncreaseParallelNodeRegistration(
run: bindingsCMix.increaseParallelNodeRegistration
)
}
}
extension CMixIncreaseParallelNodeRegistration {
public static let unimplemented = CMixIncreaseParallelNodeRegistration(
run: XCTestDynamicOverlay.unimplemented("\(Self.self)")
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment