Skip to content

Commit

Permalink
Merge pull request #1 from grandcentrix/feature/testability
Browse files Browse the repository at this point in the history
Change public access modifiers to open
  • Loading branch information
snod authored Mar 22, 2017
2 parents b3f0915 + 30365f8 commit b20c040
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions GCXMulticastDNSKit/Discovery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ private class DiscoveryItem {


/// a structure to enapsulate the result of a service discovery, this is returned
@objc(GCXDiscoveryService) public class DiscoveryService: NSObject {
@objc(GCXDiscoveryService) open class DiscoveryService: NSObject {

/// the configuration used to search
public let configuration: DiscoveryConfiguration

/// the found service
public let netService: NetService

init(configuration: DiscoveryConfiguration, netService: NetService) {
public init(configuration: DiscoveryConfiguration, netService: NetService) {
self.configuration = configuration
self.netService = netService
super.init()
Expand Down Expand Up @@ -120,7 +120,7 @@ private class DiscoveryItem {

/// the class to use to discover service on the network. Initialize a new instance with an array of
/// configurations and start the search.
@objc(GCXDiscovery) public class Discovery: NSObject {
@objc(GCXDiscovery) open class Discovery: NSObject {


/// the default search domain, empty string means .local.
Expand All @@ -141,9 +141,9 @@ private class DiscoveryItem {


/// the completion closures
fileprivate var discoverHandler: DiscoveryDiscoverHandler?
fileprivate var failHandler: DiscoveryFailHandler?
fileprivate var serviceRemovedHandler: DiscoveryServiceRemovedHandler?
public var discoverHandler: DiscoveryDiscoverHandler?
public var failHandler: DiscoveryFailHandler?
public var serviceRemovedHandler: DiscoveryServiceRemovedHandler?

/// the designated initializer. creates a new discovery for the specified configurations
///
Expand Down
2 changes: 1 addition & 1 deletion GCXMulticastDNSKit/DiscoveryConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import Foundation

@objc(GCXDiscoveryConfiguration) public class DiscoveryConfiguration: NSObject {
@objc(GCXDiscoveryConfiguration) open class DiscoveryConfiguration: NSObject {
public let serviceType: String
public var serviceNamePrefix: String?

Expand Down

0 comments on commit b20c040

Please sign in to comment.