blob: cc22581462cd03f3d8418ab57a4a855506304aba [file] [log] [blame]
Casey Dahlin3122cdf2016-06-23 14:19:37 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _ADB_MDNS_H_
18#define _ADB_MDNS_H_
19
Lingfeng Yangf44871a2018-11-16 22:47:31 -080020#include <android-base/macros.h>
21
Casey Dahlin3122cdf2016-06-23 14:19:37 -070022const char* kADBServiceType = "_adb._tcp";
Lingfeng Yangf44871a2018-11-16 22:47:31 -080023const char* kADBSecurePairingServiceType = "_adb_secure_pairing._tcp";
24const char* kADBSecureConnectServiceType = "_adb_secure_connect._tcp";
25
Lingfeng Yang9f4fff32018-11-26 17:31:39 -080026const int kADBTransportServiceRefIndex = 0;
27const int kADBSecurePairingServiceRefIndex = 1;
28const int kADBSecureConnectServiceRefIndex = 2;
29
Lingfeng Yangf44871a2018-11-16 22:47:31 -080030const char* kADBDNSServices[] = {
31 kADBServiceType,
32 kADBSecurePairingServiceType,
33 kADBSecureConnectServiceType,
34};
35
36const int kNumADBDNSServices = arraysize(kADBDNSServices);
Casey Dahlin3122cdf2016-06-23 14:19:37 -070037
38#endif