summaryrefslogtreecommitdiffstats
path: root/netwerk/dns/mdns/libmdns/components.conf
blob: 6e64140c820edd841d2e1eb9e65930d1a8ebdfed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Classes = [
    {
        'cid': '{14a50f2b-7ff6-48a5-88e3-615fd111f5d3}',
        'contract_ids': ['@mozilla.org/toolkit/components/mdnsresponder/dns-info;1'],
        'type': 'mozilla::net::nsDNSServiceInfo',
        'headers': ['/netwerk/dns/mdns/libmdns/nsDNSServiceInfo.h'],
    },
]

if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'cocoa':
    Classes += [
        {
            'cid': '{f9346d98-f27a-4e89-b744-493843416480}',
            'contract_ids': ['@mozilla.org/toolkit/components/mdnsresponder/dns-sd;1'],
            'jsm': 'resource://gre/modules/DNSServiceDiscovery.jsm',
            'constructor': 'nsDNSServiceDiscovery',
        },
    ]