| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 private/ppb_net_address_private.idl, | 6 /* From private/ppb_net_address_private.idl, |
| 7 * modified Wed Jan 4 09:10:03 2012. | 7 * modified Wed Jan 4 11:09:00 2012. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ |
| 12 | 12 |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_module.h" | 15 #include "ppapi/c/pp_module.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| 17 #include "ppapi/c/pp_var.h" | 17 #include "ppapi/c/pp_var.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 */ | 42 */ |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * @addtogroup Interfaces | 45 * @addtogroup Interfaces |
| 46 * @{ | 46 * @{ |
| 47 */ | 47 */ |
| 48 /** | 48 /** |
| 49 * The <code>PPB_NetAddress_Private</code> interface provides operations on | 49 * The <code>PPB_NetAddress_Private</code> interface provides operations on |
| 50 * network addresses. | 50 * network addresses. |
| 51 */ | 51 */ |
| 52 struct PPB_NetAddress_Private { | 52 struct PPB_NetAddress_Private_0_1 { |
| 53 /** | 53 /** |
| 54 * Returns PP_TRUE if the two addresses are equal (host and port). | 54 * Returns PP_TRUE if the two addresses are equal (host and port). |
| 55 */ | 55 */ |
| 56 PP_Bool (*AreEqual)(const struct PP_NetAddress_Private* addr1, | 56 PP_Bool (*AreEqual)(const struct PP_NetAddress_Private* addr1, |
| 57 const struct PP_NetAddress_Private* addr2); | 57 const struct PP_NetAddress_Private* addr2); |
| 58 /** | 58 /** |
| 59 * Returns PP_TRUE if the two addresses refer to the same host. | 59 * Returns PP_TRUE if the two addresses refer to the same host. |
| 60 */ | 60 */ |
| 61 PP_Bool (*AreHostsEqual)(const struct PP_NetAddress_Private* addr1, | 61 PP_Bool (*AreHostsEqual)(const struct PP_NetAddress_Private* addr1, |
| 62 const struct PP_NetAddress_Private* addr2); | 62 const struct PP_NetAddress_Private* addr2); |
| 63 /** | 63 /** |
| 64 * Returns a human-readable description of the network address, optionally | 64 * Returns a human-readable description of the network address, optionally |
| 65 * including the port (e.g., "192.168.0.1", "192.168.0.1:99", or "[::1]:80"), | 65 * including the port (e.g., "192.168.0.1", "192.168.0.1:99", or "[::1]:80"), |
| 66 * or an undefined var on failure. | 66 * or an undefined var on failure. |
| 67 */ | 67 */ |
| 68 struct PP_Var (*Describe)(PP_Module module, | 68 struct PP_Var (*Describe)(PP_Module module, |
| 69 const struct PP_NetAddress_Private* addr, | 69 const struct PP_NetAddress_Private* addr, |
| 70 PP_Bool include_port); | 70 PP_Bool include_port); |
| 71 /** | 71 /** |
| 72 * Replaces the port in the given source address. Returns PP_TRUE on success. | 72 * Replaces the port in the given source address. Returns PP_TRUE on success. |
| 73 */ | 73 */ |
| 74 PP_Bool (*ReplacePort)(const struct PP_NetAddress_Private* src_addr, | 74 PP_Bool (*ReplacePort)(const struct PP_NetAddress_Private* src_addr, |
| 75 uint16_t port, | 75 uint16_t port, |
| 76 struct PP_NetAddress_Private* dest_addr); | 76 struct PP_NetAddress_Private* dest_addr); |
| 77 /** | 77 /** |
| 78 * Gets the "any" address (for IPv4 or IPv6); for use with UDP Bind. | 78 * Gets the "any" address (for IPv4 or IPv6); for use with UDP Bind. |
| 79 */ | 79 */ |
| 80 void (*GetAnyAddress)(PP_Bool is_ipv6, struct PP_NetAddress_Private* addr); | 80 void (*GetAnyAddress)(PP_Bool is_ipv6, struct PP_NetAddress_Private* addr); |
| 81 }; | 81 }; |
| 82 |
| 83 typedef struct PPB_NetAddress_Private_0_1 PPB_NetAddress_Private; |
| 82 /** | 84 /** |
| 83 * @} | 85 * @} |
| 84 */ | 86 */ |
| 85 | 87 |
| 86 #endif /* PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ */ | 88 #endif /* PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ */ |
| 87 | 89 |
| OLD | NEW |