Index: ppapi/c/private/ppb_net_address_private.h |
diff --git a/ppapi/c/private/ppb_net_address_private.h b/ppapi/c/private/ppb_net_address_private.h |
index a414fbe6d042e5f6568f8ef82c4c73b419d4ddf1..2929681327ef10bf2aaa669dacc98cd63d1b6163 100644 |
--- a/ppapi/c/private/ppb_net_address_private.h |
+++ b/ppapi/c/private/ppb_net_address_private.h |
@@ -4,7 +4,7 @@ |
*/ |
/* From private/ppb_net_address_private.idl, |
- * modified Sun Feb 5 10:36:30 2012. |
+ * modified Tue Feb 14 17:56:23 2012. |
*/ |
#ifndef PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_ |
@@ -27,6 +27,29 @@ |
/** |
+ * @addtogroup Enums |
+ * @{ |
+ */ |
+typedef enum { |
+ /** |
+ * The address family is unspecified. |
+ */ |
+ PP_NETADDRESSFAMILY_UNSPECIFIED = 0, |
+ /** |
+ * The Internet Protocol version 4 (IPv4) address family. |
+ */ |
+ PP_NETADDRESSFAMILY_IPV4 = 1, |
+ /** |
+ * The Internet Protocol version 6 (IPv6) address family. |
+ */ |
+ PP_NETADDRESSFAMILY_IPV6 = 2 |
+} PP_NetAddressFamily_Private; |
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetAddressFamily_Private, 4); |
+/** |
+ * @} |
+ */ |
+ |
+/** |
* @addtogroup Structs |
* @{ |
*/ |
@@ -82,7 +105,8 @@ struct PPB_NetAddress_Private_1_0 { |
/** |
* Gets the address family. |
*/ |
- uint16_t (*GetFamily)(const struct PP_NetAddress_Private* addr); |
+ PP_NetAddressFamily_Private (*GetFamily)( |
+ const struct PP_NetAddress_Private* addr); |
/** |
* Gets the port. The port is returned in host byte order. |
*/ |