| Index: ppapi/c/private/ppb_network_list_private.h
|
| diff --git a/ppapi/c/private/ppb_network_list_private.h b/ppapi/c/private/ppb_network_list_private.h
|
| deleted file mode 100644
|
| index 2cba36262b0abf0761a4ef138d0617ef5639bcc3..0000000000000000000000000000000000000000
|
| --- a/ppapi/c/private/ppb_network_list_private.h
|
| +++ /dev/null
|
| @@ -1,149 +0,0 @@
|
| -/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| - * Use of this source code is governed by a BSD-style license that can be
|
| - * found in the LICENSE file.
|
| - */
|
| -
|
| -/* From private/ppb_network_list_private.idl,
|
| - * modified Thu Mar 1 16:24:33 2012.
|
| - */
|
| -
|
| -#ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
|
| -#define PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
|
| -
|
| -#include "ppapi/c/pp_bool.h"
|
| -#include "ppapi/c/pp_macros.h"
|
| -#include "ppapi/c/pp_resource.h"
|
| -#include "ppapi/c/pp_stdint.h"
|
| -#include "ppapi/c/pp_var.h"
|
| -#include "ppapi/c/private/ppb_net_address_private.h"
|
| -
|
| -#define PPB_NETWORKLIST_PRIVATE_INTERFACE_0_2 "PPB_NetworkList_Private;0.2"
|
| -#define PPB_NETWORKLIST_PRIVATE_INTERFACE PPB_NETWORKLIST_PRIVATE_INTERFACE_0_2
|
| -
|
| -/**
|
| - * @file
|
| - * This file defines the <code>PPB_NetworkList_Private</code> interface.
|
| - */
|
| -
|
| -
|
| -/**
|
| - * @addtogroup Enums
|
| - * @{
|
| - */
|
| -/**
|
| - * Type of a network interface.
|
| - */
|
| -typedef enum {
|
| - /**
|
| - * Type of the network interface is not known.
|
| - */
|
| - PP_NETWORKLIST_UNKNOWN = 0,
|
| - /**
|
| - * Wired Ethernet network.
|
| - */
|
| - PP_NETWORKLIST_ETHERNET = 1,
|
| - /**
|
| - * Wireless Wi-Fi network.
|
| - */
|
| - PP_NETWORKLIST_WIFI = 2,
|
| - /**
|
| - * Cellular network (e.g. LTE).
|
| - */
|
| - PP_NETWORKLIST_CELLULAR = 3
|
| -} PP_NetworkListType_Private;
|
| -PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4);
|
| -
|
| -/**
|
| - * State of a network interface.
|
| - */
|
| -typedef enum {
|
| - /**
|
| - * Network interface is down.
|
| - */
|
| - PP_NETWORKLIST_DOWN = 0,
|
| - /**
|
| - * Network interface is up.
|
| - */
|
| - PP_NETWORKLIST_UP = 1
|
| -} PP_NetworkListState_Private;
|
| -PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListState_Private, 4);
|
| -/**
|
| - * @}
|
| - */
|
| -
|
| -/**
|
| - * @addtogroup Interfaces
|
| - * @{
|
| - */
|
| -/**
|
| - * The <code>PPB_NetworkList_Private</code> is used to represent a
|
| - * list of network interfaces and their configuration. The content of
|
| - * the list is immutable. The current networks configuration can be
|
| - * received using the <code>PPB_NetworkMonitor_Private</code>
|
| - * interface.
|
| - */
|
| -struct PPB_NetworkList_Private_0_2 {
|
| - /**
|
| - * Determines if the specified <code>resource</code> is a
|
| - * <code>NetworkList</code> object.
|
| - *
|
| - * @param[in] resource A <code>PP_Resource</code> resource.
|
| - *
|
| - * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
|
| - * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code>
|
| - * otherwise.
|
| - */
|
| - PP_Bool (*IsNetworkList)(PP_Resource resource);
|
| - /**
|
| - * @return Returns number of available network interfaces or 0 if
|
| - * the list has never been updated.
|
| - */
|
| - uint32_t (*GetCount)(PP_Resource resource);
|
| - /**
|
| - * @return Returns name for the network interface with the specified
|
| - * <code>index</code>.
|
| - */
|
| - struct PP_Var (*GetName)(PP_Resource resource, uint32_t index);
|
| - /**
|
| - * @return Returns type of the network interface with the specified
|
| - * <code>index</code>.
|
| - */
|
| - PP_NetworkListType_Private (*GetType)(PP_Resource resource, uint32_t index);
|
| - /**
|
| - * @return Returns current state of the network interface with the
|
| - * specified <code>index</code>.
|
| - */
|
| - PP_NetworkListState_Private (*GetState)(PP_Resource resource, 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.
|
| - *
|
| - * @return Returns total number of IP addresses assigned to the
|
| - * network interface or a negative error code.
|
| - */
|
| - int32_t (*GetIpAddresses)(PP_Resource resource,
|
| - uint32_t index,
|
| - struct PP_NetAddress_Private addresses[],
|
| - uint32_t count);
|
| - /**
|
| - * @return Returns display name for the network interface with the
|
| - * specified <code>index</code>.
|
| - */
|
| - struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index);
|
| - /**
|
| - * @return Returns MTU for the network interface with the specified
|
| - * <code>index</code> or 0 if MTU is unknown.
|
| - */
|
| - uint32_t (*GetMTU)(PP_Resource resource, uint32_t index);
|
| -};
|
| -
|
| -typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private;
|
| -/**
|
| - * @}
|
| - */
|
| -
|
| -#endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */
|
| -
|
|
|