mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Declare a protocol for GNUstep specific delegate methods in NSNetServices.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32426 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7cf4d2bb21
commit
821962705e
3 changed files with 51 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-03-01 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
* Source/GSNetServices.h
|
||||
* Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h:
|
||||
Declare a protocol for GNUstep specific delegate methods in
|
||||
NSNetServices.
|
||||
|
||||
2011-02-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSAutoreleasePool.m:
|
||||
|
|
|
@ -78,4 +78,38 @@
|
|||
*/
|
||||
- (NSString*) fullServiceName;
|
||||
@end
|
||||
|
||||
|
||||
@protocol GSNetServiceDelegate <NSNetServiceDelegate>
|
||||
#ifdef __clang__
|
||||
@optional
|
||||
#else
|
||||
@end
|
||||
@interface NSObject (GSNetServiceDelegateMethods)
|
||||
#endif // __clang__
|
||||
|
||||
/**
|
||||
* Notifies the delegate that the addresses for the <var>service</var> have
|
||||
* changed.
|
||||
*/
|
||||
- (void)netService: (NSNetService*)service
|
||||
didUpdateAddresses: (NSArray*)addresses;
|
||||
|
||||
/**
|
||||
* Notifies the delegate that the record of the <var>type</var> given
|
||||
* has changed.
|
||||
*/
|
||||
- (void)netService: (NSNetService*)service
|
||||
didUpdateRecordData: (id)newData
|
||||
forRecordType: (NSString*)type;
|
||||
|
||||
/**
|
||||
* Notifies the delegate that there was a problem when trying to monitor a
|
||||
* resource record of <var>type</var> for updates.
|
||||
*/
|
||||
- (void)netService: (NSNetService*)service
|
||||
didNotMonitor: (NSDictionary*)errorDict
|
||||
forRecordType: (NSString*)type;
|
||||
@end
|
||||
|
||||
#endif // GS_USE_AVAHI
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#define EXPOSE_NSNetService_IVARS 1
|
||||
#define EXPOSE_NSNetServiceBrowser_IVARS 1
|
||||
#import "Foundation/NSNetServices.h"
|
||||
#import "GNUstepBase/NSNetServices+GNUstepBase.h"
|
||||
|
||||
// Subclasses using mDNSResponder:
|
||||
|
||||
|
@ -113,6 +114,8 @@ NSString* GSNetServiceDotTerminatedNSStringFromString(const char* string);
|
|||
name: (NSString*)name
|
||||
avahiIfIndex: (int)anIfIndex
|
||||
avahiProtocol: (int)aProtocol;
|
||||
|
||||
- (id<NSObject,GSNetServiceDelegate>)delegate;
|
||||
@end
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue