Index: ppapi/api/private/ppb_network_list_private.idl |
diff --git a/ppapi/api/private/ppb_network_list_private.idl b/ppapi/api/private/ppb_network_list_private.idl |
index 8ec330fb8883639c53fe43855e6711f77dfc2825..7400fb9672881b1136f01a505ee44462e68605d1 100644 |
--- a/ppapi/api/private/ppb_network_list_private.idl |
+++ b/ppapi/api/private/ppb_network_list_private.idl |
@@ -10,7 +10,7 @@ |
[generate_thunk] |
label Chrome { |
- M19 = 0.2 |
+ M31 = 0.3 |
}; |
/** |
@@ -76,12 +76,20 @@ interface PPB_NetworkList_Private { |
PP_Bool IsNetworkList([in] PP_Resource resource); |
/** |
+ * Gets number of interfaces in the list. |
+ * |
yzshen1
2013/09/04 17:40:26
nit: to be consistent, please consider adding a pa
Sergey Ulanov
2013/09/04 18:43:08
Done.
|
* @return Returns number of available network interfaces or 0 if |
* the list has never been updated. |
*/ |
uint32_t GetCount([in] PP_Resource resource); |
/** |
+ * Gets name of a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * |
* @return Returns name for the network interface with the specified |
* <code>index</code>. |
*/ |
@@ -89,6 +97,12 @@ interface PPB_NetworkList_Private { |
[in] uint32_t index); |
/** |
+ * Gets type of a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * |
* @return Returns type of the network interface with the specified |
* <code>index</code>. |
*/ |
@@ -97,6 +111,12 @@ interface PPB_NetworkList_Private { |
[in] uint32_t index); |
/** |
+ * Gets state of a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * |
* @return Returns current state of the network interface with the |
* specified <code>index</code>. |
*/ |
@@ -105,22 +125,29 @@ interface PPB_NetworkList_Private { |
[in] uint32_t index); |
/** |
- * Gets list of IP addresses for the network interface with the |
- * specified <code>index</code> and stores them in |
- * <code>addresses</code>. If the caller didn't allocate sufficient |
- * space to store all addresses, then only the first |
- * <code>count</code> addresses are filled in. |
+ * Gets list of IP addresses for a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * @param[in] output An output array which will receive |
+ * <code>PPB_NetAddress</code> resources on success. Please note that the |
+ * ref count of those resources has already been increased by 1 for the |
+ * caller. |
* |
- * @return Returns total number of IP addresses assigned to the |
- * network interface or a negative error code. |
+ * @return An error code from <code>pp_errors.h</code>. |
*/ |
- int32_t GetIpAddresses( |
- [in] PP_Resource resource, |
- [in] uint32_t index, |
- [inout, size_is(count)] PP_NetAddress_Private[] addresses, |
- [in] uint32_t count); |
+ int32_t GetIpAddresses([in] PP_Resource resource, |
+ [in] uint32_t index, |
+ [in] PP_ArrayOutput output); |
/** |
+ * Gets display name of a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * |
* @return Returns display name for the network interface with the |
* specified <code>index</code>. |
*/ |
@@ -128,6 +155,12 @@ interface PPB_NetworkList_Private { |
[in] uint32_t index); |
/** |
+ * Gets MTU (Maximum Transmission Unit) of a network interface. |
+ * |
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a |
+ * network list. |
+ * @param[in] index Index of the network interface. |
+ * |
* @return Returns MTU for the network interface with the specified |
* <code>index</code> or 0 if MTU is unknown. |
*/ |