OLD | NEW |
1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* From dev/ppb_host_resolver_dev.idl modified Thu Jun 20 12:08:29 2013. */ | 6 /* From dev/ppb_host_resolver_dev.idl modified Thu Jun 20 12:08:29 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ |
9 #define PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ |
10 | 10 |
11 #include "ppapi/c/dev/ppb_net_address_dev.h" | |
12 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
17 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
18 #include "ppapi/c/pp_var.h" | 17 #include "ppapi/c/pp_var.h" |
| 18 #include "ppapi/c/ppb_net_address.h" |
19 | 19 |
20 #define PPB_HOSTRESOLVER_DEV_INTERFACE_0_1 "PPB_HostResolver(Dev);0.1" | 20 #define PPB_HOSTRESOLVER_DEV_INTERFACE_0_1 "PPB_HostResolver(Dev);0.1" |
21 #define PPB_HOSTRESOLVER_DEV_INTERFACE PPB_HOSTRESOLVER_DEV_INTERFACE_0_1 | 21 #define PPB_HOSTRESOLVER_DEV_INTERFACE PPB_HOSTRESOLVER_DEV_INTERFACE_0_1 |
22 | 22 |
23 /** | 23 /** |
24 * @file | 24 * @file |
25 * This file defines the <code>PPB_HostResolver_Dev</code> interface. | 25 * This file defines the <code>PPB_HostResolver_Dev</code> interface. |
26 */ | 26 */ |
27 | 27 |
28 | 28 |
(...skipping 22 matching lines...) Expand all Loading... |
51 * @addtogroup Structs | 51 * @addtogroup Structs |
52 * @{ | 52 * @{ |
53 */ | 53 */ |
54 /** | 54 /** |
55 * <code>PP_HostResolver_Hint_Dev</code> represents hints for host resolution. | 55 * <code>PP_HostResolver_Hint_Dev</code> represents hints for host resolution. |
56 */ | 56 */ |
57 struct PP_HostResolver_Hint_Dev { | 57 struct PP_HostResolver_Hint_Dev { |
58 /** | 58 /** |
59 * Network address family. | 59 * Network address family. |
60 */ | 60 */ |
61 PP_NetAddress_Family_Dev family; | 61 PP_NetAddress_Family family; |
62 /** | 62 /** |
63 * Combination of flags from <code>PP_HostResolver_Flags_Dev</code>. | 63 * Combination of flags from <code>PP_HostResolver_Flags_Dev</code>. |
64 */ | 64 */ |
65 int32_t flags; | 65 int32_t flags; |
66 }; | 66 }; |
67 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_HostResolver_Hint_Dev, 8); | 67 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_HostResolver_Hint_Dev, 8); |
68 /** | 68 /** |
69 * @} | 69 * @} |
70 */ | 70 */ |
71 | 71 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 * <code>Resolve()</code> call failed. | 152 * <code>Resolve()</code> call failed. |
153 */ | 153 */ |
154 uint32_t (*GetNetAddressCount)(PP_Resource host_resolver); | 154 uint32_t (*GetNetAddressCount)(PP_Resource host_resolver); |
155 /** | 155 /** |
156 * Gets a network address. | 156 * Gets a network address. |
157 * | 157 * |
158 * @param[in] host_resolver A <code>PP_Resource</code> corresponding to a host | 158 * @param[in] host_resolver A <code>PP_Resource</code> corresponding to a host |
159 * resolver. | 159 * resolver. |
160 * @param[in] index An index indicating which address to return. | 160 * @param[in] index An index indicating which address to return. |
161 * | 161 * |
162 * @return A <code>PPB_NetAddress_Dev</code> resource on success; 0 if there | 162 * @return A <code>PPB_NetAddress</code> resource on success; 0 if there is a |
163 * is a pending <code>Resolve()</code> call or the previous | 163 * pending <code>Resolve()</code> call or the previous <code>Resolve()</code> |
164 * <code>Resolve()</code> call failed, or the specified index is out of range. | 164 * call failed, or the specified index is out of range. |
165 */ | 165 */ |
166 PP_Resource (*GetNetAddress)(PP_Resource host_resolver, uint32_t index); | 166 PP_Resource (*GetNetAddress)(PP_Resource host_resolver, uint32_t index); |
167 }; | 167 }; |
168 | 168 |
169 typedef struct PPB_HostResolver_Dev_0_1 PPB_HostResolver_Dev; | 169 typedef struct PPB_HostResolver_Dev_0_1 PPB_HostResolver_Dev; |
170 /** | 170 /** |
171 * @} | 171 * @} |
172 */ | 172 */ |
173 | 173 |
174 #endif /* PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ */ | 174 #endif /* PPAPI_C_DEV_PPB_HOST_RESOLVER_DEV_H_ */ |
175 | 175 |
OLD | NEW |