1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2009 Apple Computer, Inc. All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include "nsISupports.idl"
20 interface IDNSSDService;
23 [scriptable, function, uuid(27346495-A1ED-458A-A5BC-587DF9A26B4F)]
24 interface IDNSSDBrowseListener : nsISupports
27 onBrowse( in IDNSSDService service, in boolean add, in long interfaceIndex, in long error, in AString serviceName, in AString regtype, in AString domain );
31 [scriptable, function, uuid(6620E18F-47F3-47C6-941F-126A5FD4FCF7)]
32 interface IDNSSDResolveListener : nsISupports
35 onResolve( in IDNSSDService service, in long interfaceIndex, in long error, in AString fullname, in AString host, in short port, in AString path );
39 [scriptable, uuid(3A3539FF-F8D8-40B4-8D02-5EA73C51FA12)]
40 interface IDNSSDService : nsISupports
43 browse( in long interfaceIndex, in AString regtype, in AString domain, in IDNSSDBrowseListener listener );
46 resolve( in long interfaceIndex, in AString name, in AString regtype, in AString domain, in IDNSSDResolveListener listener );