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

Side by Side Diff: ppapi/c/private/ppb_network_list_private.h

Issue 23806003: Use PP_ArrayOutput and PPB_NetAddress in PPB_NetworkList_Private.. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_network_list_private.idl, 6 /* From private/ppb_network_list_private.idl,
7 * modified Thu Mar 1 16:24:33 2012. 7 * modified Fri Aug 30 12:04:19 2013.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ 10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ 11 #define PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
12 12
13 #include "ppapi/c/pp_array_output.h"
13 #include "ppapi/c/pp_bool.h" 14 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 17 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h" 18 #include "ppapi/c/pp_var.h"
18 #include "ppapi/c/private/ppb_net_address_private.h"
19 19
20 #define PPB_NETWORKLIST_PRIVATE_INTERFACE_0_2 "PPB_NetworkList_Private;0.2" 20 #define PPB_NETWORKLIST_PRIVATE_INTERFACE_0_3 "PPB_NetworkList_Private;0.3"
21 #define PPB_NETWORKLIST_PRIVATE_INTERFACE PPB_NETWORKLIST_PRIVATE_INTERFACE_0_2 21 #define PPB_NETWORKLIST_PRIVATE_INTERFACE PPB_NETWORKLIST_PRIVATE_INTERFACE_0_3
22 22
23 /** 23 /**
24 * @file 24 * @file
25 * This file defines the <code>PPB_NetworkList_Private</code> interface. 25 * This file defines the <code>PPB_NetworkList_Private</code> interface.
26 */ 26 */
27 27
28 28
29 /** 29 /**
30 * @addtogroup Enums 30 * @addtogroup Enums
31 * @{ 31 * @{
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * @addtogroup Interfaces 75 * @addtogroup Interfaces
76 * @{ 76 * @{
77 */ 77 */
78 /** 78 /**
79 * The <code>PPB_NetworkList_Private</code> is used to represent a 79 * The <code>PPB_NetworkList_Private</code> is used to represent a
80 * list of network interfaces and their configuration. The content of 80 * list of network interfaces and their configuration. The content of
81 * the list is immutable. The current networks configuration can be 81 * the list is immutable. The current networks configuration can be
82 * received using the <code>PPB_NetworkMonitor_Private</code> 82 * received using the <code>PPB_NetworkMonitor_Private</code>
83 * interface. 83 * interface.
84 */ 84 */
85 struct PPB_NetworkList_Private_0_2 { 85 struct PPB_NetworkList_Private_0_3 {
86 /** 86 /**
87 * Determines if the specified <code>resource</code> is a 87 * Determines if the specified <code>resource</code> is a
88 * <code>NetworkList</code> object. 88 * <code>NetworkList</code> object.
89 * 89 *
90 * @param[in] resource A <code>PP_Resource</code> resource. 90 * @param[in] resource A <code>PP_Resource</code> resource.
91 * 91 *
92 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is 92 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
93 * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code> 93 * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code>
94 * otherwise. 94 * otherwise.
95 */ 95 */
(...skipping 12 matching lines...) Expand all
108 * @return Returns type of the network interface with the specified 108 * @return Returns type of the network interface with the specified
109 * <code>index</code>. 109 * <code>index</code>.
110 */ 110 */
111 PP_NetworkListType_Private (*GetType)(PP_Resource resource, uint32_t index); 111 PP_NetworkListType_Private (*GetType)(PP_Resource resource, uint32_t index);
112 /** 112 /**
113 * @return Returns current state of the network interface with the 113 * @return Returns current state of the network interface with the
114 * specified <code>index</code>. 114 * specified <code>index</code>.
115 */ 115 */
116 PP_NetworkListState_Private (*GetState)(PP_Resource resource, uint32_t index); 116 PP_NetworkListState_Private (*GetState)(PP_Resource resource, uint32_t index);
117 /** 117 /**
118 * Gets list of IP addresses for the network interface with the 118 * Gets list of IP addresses for a network interface.
119 * specified <code>index</code> and stores them in
120 * <code>addresses</code>. If the caller didn't allocate sufficient
121 * space to store all addresses, then only the first
122 * <code>count</code> addresses are filled in.
123 * 119 *
124 * @return Returns total number of IP addresses assigned to the 120 * @param[in] resource A <code>PP_Resource</code> corresponding to a
125 * network interface or a negative error code. 121 * network list.
122 * @param[in] index Index of the network interface.
123 * @param[in] output An output array which will receive
124 * <code>PPB_NetAddress</code> resources on success. Please note that the
125 * ref count of those resources has already been increased byr the
126 * caller.
127 *
128 * @return An error code from <code>pp_errors.h</code>.
126 */ 129 */
127 int32_t (*GetIpAddresses)(PP_Resource resource, 130 int32_t (*GetIpAddresses)(PP_Resource resource,
128 uint32_t index, 131 uint32_t index,
129 struct PP_NetAddress_Private addresses[], 132 struct PP_ArrayOutput output);
130 uint32_t count);
131 /** 133 /**
132 * @return Returns display name for the network interface with the 134 * @return Returns display name for the network interface with the
133 * specified <code>index</code>. 135 * specified <code>index</code>.
134 */ 136 */
135 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index); 137 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index);
136 /** 138 /**
137 * @return Returns MTU for the network interface with the specified 139 * @return Returns MTU for the network interface with the specified
138 * <code>index</code> or 0 if MTU is unknown. 140 * <code>index</code> or 0 if MTU is unknown.
139 */ 141 */
140 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index); 142 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index);
141 }; 143 };
142 144
143 typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private; 145 typedef struct PPB_NetworkList_Private_0_3 PPB_NetworkList_Private;
144 /** 146 /**
145 * @} 147 * @}
146 */ 148 */
147 149
148 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */ 150 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */
149 151
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698