1 /* 2 * Copyright (C) 2022 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 package android.net.mdns.aidl; 18 19 /** 20 * Get service address information. 21 * This information combine all arguments that used by both request and callback. 22 * Arguments are used by request: 23 * - id 24 * - hostname 25 * - interfaceIdx 26 * 27 * Arguments are used by callback: 28 * - id 29 * - hostname 30 * - interfaceIdx 31 * - netId 32 * - address 33 * - result 34 * 35 * {@hide} 36 */ 37 @JavaOnlyImmutable 38 @JavaDerive(equals=true, toString=true) 39 parcelable GetAddressInfo { 40 /** 41 * The operation ID. 42 */ 43 int id; 44 45 /** 46 * The getting address result. 47 */ 48 int result; 49 50 /** 51 * The fully qualified domain name of the host to be queried for. 52 */ 53 @utf8InCpp String hostname; 54 55 /** 56 * The service address info, it's IPv4 or IPv6 addres. 57 */ 58 @utf8InCpp String address; 59 60 /** 61 * The interface index on which to issue the query. 0 indicates "all interfaces". 62 */ 63 int interfaceIdx; 64 65 /** 66 * The net id to which the answers pertain. 67 */ 68 int netId; 69 } 70