mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 02:20:53 +00:00
* dark mode & stream overlay * removed all redundant imports * update for the new xcode version with fixes for the new 'implicitly retains self warning' * reworked the overlay view * cleaning up unused variables * small corrections
29 lines
725 B
Objective-C
29 lines
725 B
Objective-C
//
|
|
// DiscoveryManager.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 1/1/15.
|
|
// Copyright (c) 2015 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "MDNSManager.h"
|
|
#import "TemporaryHost.h"
|
|
|
|
@protocol DiscoveryCallback <NSObject>
|
|
|
|
- (void) updateAllHosts:(NSArray*)hosts;
|
|
|
|
@end
|
|
|
|
@interface DiscoveryManager : NSObject <MDNSCallback>
|
|
|
|
- (id) initWithHosts:(NSArray*)hosts andCallback:(id<DiscoveryCallback>) callback;
|
|
- (void) startDiscovery;
|
|
- (void) stopDiscovery;
|
|
- (void) stopDiscoveryBlocking;
|
|
- (BOOL) addHostToDiscovery:(TemporaryHost*)host;
|
|
- (void) removeHostFromDiscovery:(TemporaryHost*)host;
|
|
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(TemporaryHost*, NSString*))callback;
|
|
|
|
@end
|