Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsINetworkManager.idl" |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(b44d74db-c9d6-41dd-98ae-a56918d6e6ad)] |
michael@0 | 9 | interface nsINetworkInterfaceList : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | /** |
michael@0 | 12 | * Number of the network interfaces that is available. |
michael@0 | 13 | */ |
michael@0 | 14 | long getNumberOfInterface(); |
michael@0 | 15 | |
michael@0 | 16 | /** |
michael@0 | 17 | * Get the i-th interface from the list. |
michael@0 | 18 | * @param interfaceIndex index of interface, from 0 to number of interface - 1. |
michael@0 | 19 | */ |
michael@0 | 20 | nsINetworkInterface getInterface(in long interfaceIndex); |
michael@0 | 21 | }; |
michael@0 | 22 | |
michael@0 | 23 | [scriptable, uuid(ee0e7cd7-1baa-44fd-86cb-f70acb549163)] |
michael@0 | 24 | interface nsINetworkInterfaceListService : nsISupports |
michael@0 | 25 | { |
michael@0 | 26 | const long LIST_NOT_INCLUDE_MMS_INTERFACES = (1 << 0); |
michael@0 | 27 | const long LIST_NOT_INCLUDE_SUPL_INTERFACES = (1 << 1); |
michael@0 | 28 | const long LIST_NOT_INCLUDE_IMS_INTERFACES = (1 << 2); |
michael@0 | 29 | const long LIST_NOT_INCLUDE_DUN_INTERFACES = (1 << 3); |
michael@0 | 30 | |
michael@0 | 31 | /** |
michael@0 | 32 | * Obtain a list of network interfaces that satisfy the specified condition. |
michael@0 | 33 | * @param condition flags that specify the interfaces to be returned. This |
michael@0 | 34 | * can be OR combination of LIST_* flags, or zero to make all available |
michael@0 | 35 | * interfaces returned. |
michael@0 | 36 | */ |
michael@0 | 37 | nsINetworkInterfaceList getDataInterfaceList(in long condition); |
michael@0 | 38 | }; |