Casey Dahlin | 3122cdf | 2016-06-23 14:19:37 -0700 | [diff] [blame] | 1 | /* |
| 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 Yang | f44871a | 2018-11-16 22:47:31 -0800 | [diff] [blame] | 20 | #include <android-base/macros.h> |
| 21 | |
Casey Dahlin | 3122cdf | 2016-06-23 14:19:37 -0700 | [diff] [blame] | 22 | const char* kADBServiceType = "_adb._tcp"; |
Lingfeng Yang | f44871a | 2018-11-16 22:47:31 -0800 | [diff] [blame] | 23 | const char* kADBSecurePairingServiceType = "_adb_secure_pairing._tcp"; |
| 24 | const char* kADBSecureConnectServiceType = "_adb_secure_connect._tcp"; |
| 25 | |
Lingfeng Yang | 9f4fff3 | 2018-11-26 17:31:39 -0800 | [diff] [blame] | 26 | const int kADBTransportServiceRefIndex = 0; |
| 27 | const int kADBSecurePairingServiceRefIndex = 1; |
| 28 | const int kADBSecureConnectServiceRefIndex = 2; |
| 29 | |
Lingfeng Yang | f44871a | 2018-11-16 22:47:31 -0800 | [diff] [blame] | 30 | const char* kADBDNSServices[] = { |
| 31 | kADBServiceType, |
| 32 | kADBSecurePairingServiceType, |
| 33 | kADBSecureConnectServiceType, |
| 34 | }; |
| 35 | |
| 36 | const int kNumADBDNSServices = arraysize(kADBDNSServices); |
Casey Dahlin | 3122cdf | 2016-06-23 14:19:37 -0700 | [diff] [blame] | 37 | |
| 38 | #endif |