mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990458 - Part 1: add updateNetworkInterface() API in idl. r=edgar
This commit is contained in:
parent
5083a09cbd
commit
6682966738
@ -21,8 +21,8 @@ interface nsINetworkInterface : nsISupports
|
|||||||
/**
|
/**
|
||||||
* Current network state, one of the NETWORK_STATE_* constants.
|
* Current network state, one of the NETWORK_STATE_* constants.
|
||||||
*
|
*
|
||||||
* When this changes, network interface implementations notify the
|
* When this changes, network interface implementations notify with
|
||||||
* 'network-interface-state-changed' observer notification.
|
* updateNetworkInterface() API.
|
||||||
*/
|
*/
|
||||||
readonly attribute long state;
|
readonly attribute long state;
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ interface nsINetworkInterface : nsISupports
|
|||||||
/**
|
/**
|
||||||
* Manage network interfaces.
|
* Manage network interfaces.
|
||||||
*/
|
*/
|
||||||
[scriptable, uuid(3ea50550-4b3c-11e3-8f96-0800200c9a66)]
|
[scriptable, uuid(f3193805-c070-4d23-bd5c-a439eb8610c3)]
|
||||||
interface nsINetworkManager : nsISupports
|
interface nsINetworkManager : nsISupports
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -113,6 +113,20 @@ interface nsINetworkManager : nsISupports
|
|||||||
*/
|
*/
|
||||||
void registerNetworkInterface(in nsINetworkInterface network);
|
void registerNetworkInterface(in nsINetworkInterface network);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the routes and DNSes according the state of the given network.
|
||||||
|
*
|
||||||
|
* Consumers will be notified with the 'network-connection-state-changed'
|
||||||
|
* observer notification.
|
||||||
|
*
|
||||||
|
* Throws an exception if the specified network interface object isn't
|
||||||
|
* registered.
|
||||||
|
*
|
||||||
|
* @param network
|
||||||
|
* Network interface to update.
|
||||||
|
*/
|
||||||
|
void updateNetworkInterface(in nsINetworkInterface network);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregister the given network interface from the network manager.
|
* Unregister the given network interface from the network manager.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user