Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: ppapi/c/private/ppb_net_address_private.h

Issue 9398003: Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private value instead of uint1… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1b76cfdf46932f62e5dddb931342082d7a4a1425 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 14:02:57 2012.
*/
#ifndef PPAPI_C_PRIVATE_PPB_NET_ADDRESS_PRIVATE_H_
@@ -27,6 +27,29 @@
/**
+ * @addtogroup Enums
+ * @{
+ */
+typedef enum {
+ /**
+ * The address family is unspecified.
+ */
+ PP_ADDRESSFAMILY_UNSPECIFIED = 0,
+ /**
+ * The Internet Protocol version 4 (IPv4) address family.
+ */
+ PP_ADDRESSFAMILY_IPV4 = 1,
+ /**
+ * The Internet Protocol version 6 (IPv6) address family.
+ */
+ PP_ADDRESSFAMILY_IPV6 = 2
+} PP_AddressFamily_Private;
viettrungluu 2012/02/15 01:43:03 I'm not sure I like this name a lot. (I might have
yzshen1 2012/02/15 18:40:55 I did the change, but without the '_' between NetA
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_AddressFamily_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_AddressFamily_Private (*GetFamily)(
+ const struct PP_NetAddress_Private* addr);
/**
* Gets the port. The port is returned in host byte order.
*/

Powered by Google App Engine
This is Rietveld 408576698