~ubuntu-branches/ubuntu/wily/gnustep-base/wily

« back to all changes in this revision

Viewing changes to Headers/Additions/GNUstepBase/NSNetServices+GNUstepBase.h

  • Committer: Package Import Robot
  • Author(s): Yavor Doganov
  • Date: 2011-09-15 12:31:15 UTC
  • mfrom: (1.2.11 upstream) (8.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20110915123115-rmvsia9z0211izvq
Tags: 1.22.1-1
* New upstream release:
  + Fixes implicit declaration of function (Closes: #629216).
* debian/rules (v_make): Set to 2.6.1.
  (install-common): Do not delete non-existent .swp file.
* debian/control.m4 (Build-Depends): Remove gobjc; gnustep-make now
  depends on it.
  (libgnustep-base-dev) <Depends>: Likewise.
  (Suggests): Remove; completely pointless.
* debian/control: Regenerate.
* debian/patches/avoid-nsl-linkage.patch: Refresh.
* debian/patches/autoreconf.patch: Regenerate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Declarations of GNUstep extensions to NSNetService.
2
 
   Copyright (C) 2010 Free Software Foundation, Inc.
3
 
 
4
 
   Written by:  Niels Grewe <niels.grewe@halbordnung.de>
5
 
   Date: March 2010
6
 
   
7
 
   This file is part of the GNUstep Base Library.
8
 
 
9
 
   This library is free software; you can redistribute it and/or
10
 
   modify it under the terms of the GNU Lesser General Public
11
 
   License as published by the Free Software Foundation; either
12
 
   version 2 of the License, or (at your option) any later version.
13
 
   
14
 
   This library is distributed in the hope that it will be useful,
15
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
   Library General Public License for more details.
18
 
   
19
 
   You should have received a copy of the GNU Lesser General Public
20
 
   License along with this library; if not, write to the Free
21
 
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
 
   Boston, MA 02111 USA.
23
 
   */ 
24
 
 
25
 
#import <Foundation/NSNetServices.h>
26
 
#import <GNUstepBase/GSConfig.h>
27
 
 
28
 
/*
29
 
 * Only enable extensions if the Avahi API is used. The mDNS based NSNetService
30
 
 * doesn't support them yet.
31
 
 */
32
 
#if GS_USE_AVAHI==1
33
 
@interface NSNetService (GNUstepBase)
34
 
/**
35
 
 * Starts monitoring the service represented by the receiver for changes in a
36
 
 * resource record of <code>recordType</code>. The delegate must either
37
 
 * implement a -netService:didUpateFOORecordData: method, where "FOO" is the
38
 
 * record type monitored, or the generic
39
 
 * -netService:didUpdateRecordData:forRecordType: method.
40
 
 */
41
 
- (void) startMonitoringForRecordType: (NSString*)recordType;
42
 
 
43
 
/**
44
 
 * Stops monitoring for the specified record type.
45
 
 */
46
 
- (void) stopMonitoringForRecordType: (NSString*)recordType;
47
 
 
48
 
/**
49
 
 * Adds the service record for a service set up for publishing. The return value
50
 
 * of this method indicates whether the record was successfully added. The
51
 
 * record will only be published when -publish is called and it is thus
52
 
 * considered an error to call this method on a published service.
53
 
 */
54
 
- (BOOL) addServiceRecord;
55
 
 
56
 
/**
57
 
 * Sets <code>data</code> as the value of a resource record of the specified
58
 
 * <code>type</code>. The return value of this method indicates whether the
59
 
 * record was successfully added. The record will only be published when
60
 
 * -publish is called and it is thus considered an error to call this method on
61
 
 * a published service. (But it is possible to add a new record to a published
62
 
 * NSNetService by creating a new NSNetService instance with the same name,
63
 
 * type, domain and port parameters and publish only the new record in that
64
 
 * service.)
65
 
 */
66
 
- (BOOL) addRecordData: (NSData*)data
67
 
         forRecordType: (NSString*)type;
68
 
 
69
 
/**
70
 
 * Returns the record data for the specified record type. If there is only one
71
 
 * such record, the return value will be an NSData object, otherwise it will be
72
 
 * an NSArray.
73
 
 */
74
 
- (id) recordDataForRecordType: (NSString*)type;
75
 
 
76
 
/**
77
 
 * Returns the full name (including, name, type, and domain) of the service.
78
 
 */
79
 
- (NSString*) fullServiceName;
80
 
@end
81
 
#endif // GS_USE_AVAHI