diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/system/gonk/nsINetworkInterfaceListService.idl | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/system/gonk/nsINetworkInterfaceListService.idl')
-rw-r--r-- | dom/system/gonk/nsINetworkInterfaceListService.idl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dom/system/gonk/nsINetworkInterfaceListService.idl b/dom/system/gonk/nsINetworkInterfaceListService.idl new file mode 100644 index 000000000..0c224842e --- /dev/null +++ b/dom/system/gonk/nsINetworkInterfaceListService.idl @@ -0,0 +1,40 @@ +/* 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 "nsISupports.idl" + +interface nsINetworkInfo; + +[scriptable, uuid(55779d32-1e28-4f43-af87-09d04bc3cce9)] +interface nsINetworkInterfaceList : nsISupports +{ + /** + * Number of the network interfaces that is available. + */ + long getNumberOfInterface(); + + /** + * Get the i-th interface info info from the list. + * @param interfaceIndex index of interface, from 0 to number of interface - 1. + */ + nsINetworkInfo getInterfaceInfo(in long interfaceIndex); +}; + +[scriptable, uuid(21d7fc8b-28c4-4a4f-a15e-1f9defbc2cec)] +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); + const long LIST_NOT_INCLUDE_DUN_INTERFACES = (1 << 3); + const long LIST_NOT_INCLUDE_FOTA_INTERFACES = (1 << 4); + + /** + * 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); +}; |