]> git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/FirefoxExtension/IDNSSDService.idl
mDNSResponder-878.270.2.tar.gz
[apple/mdnsresponder.git] / Clients / FirefoxExtension / IDNSSDService.idl
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2009 Apple Computer, Inc. All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 #include "nsISupports.idl"
19
20 interface IDNSSDService;
21
22
23 [scriptable, function, uuid(27346495-A1ED-458A-A5BC-587DF9A26B4F)]
24 interface IDNSSDBrowseListener : nsISupports
25 {
26 void
27 onBrowse( in IDNSSDService service, in boolean add, in long interfaceIndex, in long error, in AString serviceName, in AString regtype, in AString domain );
28 };
29
30
31 [scriptable, function, uuid(6620E18F-47F3-47C6-941F-126A5FD4FCF7)]
32 interface IDNSSDResolveListener : nsISupports
33 {
34 void
35 onResolve( in IDNSSDService service, in long interfaceIndex, in long error, in AString fullname, in AString host, in short port, in AString path );
36 };
37
38
39 [scriptable, uuid(3A3539FF-F8D8-40B4-8D02-5EA73C51FA12)]
40 interface IDNSSDService : nsISupports
41 {
42 IDNSSDService
43 browse( in long interfaceIndex, in AString regtype, in AString domain, in IDNSSDBrowseListener listener );
44
45 IDNSSDService
46 resolve( in long interfaceIndex, in AString name, in AString regtype, in AString domain, in IDNSSDResolveListener listener );
47
48 void
49 stop();
50 };