Pepper_42_C_interfaces
|
#include <ppb_network_monitor.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance) |
int32_t(* | UpdateNetworkList )(PP_Resource network_monitor, PP_Resource *network_list, struct PP_CompletionCallback callback) |
PP_Bool(* | IsNetworkMonitor )(PP_Resource resource) |
The PPB_NetworkMonitor
allows to get network interfaces configuration and monitor network configuration changes.
Permissions: Apps permission socket
with subrule network-state
is required for UpdateNetworkList()
. For more details about network communication permissions, please see: http://developer.chrome.com/apps/app_network.html
Definition at line 40 of file ppb_network_monitor.h.
PP_Resource(* PPB_NetworkMonitor_1_0::Create)(PP_Instance instance) |
Creates a Network Monitor resource.
[in] | instance | A PP_Instance identifying one instance of a module. |
PP_Resource
corresponding to a network monitor or 0 on failure. Definition at line 50 of file ppb_network_monitor.h.
PP_Bool(* PPB_NetworkMonitor_1_0::IsNetworkMonitor)(PP_Resource resource) |
Determines if the specified resource
is a NetworkMonitor
object.
[in] | resource | A PP_Resource resource. |
PP_TRUE
if resource
is a PPB_NetworkMonitor
, PP_FALSE
otherwise. Definition at line 80 of file ppb_network_monitor.h.
int32_t(* PPB_NetworkMonitor_1_0::UpdateNetworkList)(PP_Resource network_monitor, PP_Resource *network_list, struct PP_CompletionCallback callback) |
Gets current network configuration. When called for the first time, completes as soon as the current network configuration is received from the browser. Each consequent call will wait for network list changes, returning a new PPB_NetworkList
resource every time.
[in] | network_monitor | A PP_Resource corresponding to a network monitor. |
[out] | network_list | The PPB_NetworkList |
[in] | callback |
|
An int32_t containing an error code from pp_errors.h
. PP_ERROR_NOACCESS
will be returned if the caller doesn't have required permissions.
Definition at line 68 of file ppb_network_monitor.h.