mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsINetworkManager.idl"
|
|
#include "nsISupports.idl"
|
|
|
|
[scriptable, uuid(b44d74db-c9d6-41dd-98ae-a56918d6e6ad)]
|
|
interface nsINetworkInterfaceList : nsISupports
|
|
{
|
|
/**
|
|
* Number of the network interfaces that is available.
|
|
*/
|
|
long getNumberOfInterface();
|
|
|
|
/**
|
|
* Get the i-th interface from the list.
|
|
* @param interfaceIndex index of interface, from 0 to number of interface - 1.
|
|
*/
|
|
nsINetworkInterface getInterface(in long interfaceIndex);
|
|
};
|
|
|
|
[scriptable, uuid(e3cf9355-086e-46e3-bb3d-378bd58d578b)]
|
|
interface nsINetworkInterfaceListService : nsISupports
|
|
{
|
|
const long LIST_NOT_INCLUDE_MMS_INTERFACES = (1 << 0);
|
|
const long LIST_NOT_INCLUDE_SUPL_INTERFACES = (1 << 1);
|
|
const long LIST_NOT_INCLUDE_IMS_INTERFACES = (1 << 2);
|
|
|
|
/**
|
|
* Obtain a list of network interfaces that satisfy the specified condition.
|
|
* @param condition flags that specify the interfaces to be returned. This
|
|
* can be OR combination of LIST_* flags, or zero to make all available
|
|
* interfaces returned.
|
|
*/
|
|
nsINetworkInterfaceList getDataInterfaceList(in long condition);
|
|
};
|