Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / NetworkOptions.webidl
blob09702ceae40c1aba794ddf200a7cf3c5f28fd619
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /**
6 * This dictionnary holds the parameters sent to the network worker.
7 */
8 dictionary NetworkCommandOptions
10   long id = 0;                        // opaque id.
11   DOMString cmd = "";                 // the command name.
12   DOMString ifname;                   // for "removeNetworkRoute", "setDNS",
13                                       //     "setDefaultRouteAndDNS", "removeDefaultRoute"
14                                       //     "addHostRoute", "removeHostRoute"
15                                       //     "removeHostRoutes".
16   DOMString ip;                       // for "removeNetworkRoute", "setWifiTethering".
17   unsigned long prefixLength;         // for "removeNetworkRoute".
18   DOMString domain;                   // for "setDNS"
19   sequence<DOMString> dnses;          // for "setDNS", "setDefaultRouteAndDNS".
20   DOMString oldIfname;                // for "setDefaultRouteAndDNS".
21   DOMString gateway;                  // for "addSecondaryRoute", "removeSecondaryRoute".
22   sequence<DOMString> gateways;       // for "setDefaultRouteAndDNS", "removeDefaultRoute".
23   DOMString mode;                     // for "setWifiOperationMode".
24   boolean report;                     // for "setWifiOperationMode".
25   boolean isAsync;                    // for "setWifiOperationMode".
26   boolean enabled;                    // for "setDhcpServer".
27   DOMString wifictrlinterfacename;    // for "setWifiTethering".
28   DOMString internalIfname;           // for "setWifiTethering".
29   DOMString externalIfname;           // for "setWifiTethering".
30   boolean enable;                     // for "setWifiTethering".
31   DOMString ssid;                     // for "setWifiTethering".
32   DOMString security;                 // for "setWifiTethering".
33   DOMString key;                      // for "setWifiTethering".
34   DOMString prefix;                   // for "setWifiTethering", "setDhcpServer".
35   DOMString link;                     // for "setWifiTethering", "setDhcpServer".
36   sequence<DOMString> interfaceList;  // for "setWifiTethering".
37   DOMString wifiStartIp;              // for "setWifiTethering".
38   DOMString wifiEndIp;                // for "setWifiTethering".
39   DOMString usbStartIp;               // for "setWifiTethering".
40   DOMString usbEndIp;                 // for "setWifiTethering".
41   DOMString dns1;                     // for "setWifiTethering".
42   DOMString dns2;                     // for "setWifiTethering".
43   long threshold;                     // for "setNetworkInterfaceAlarm",
44                                       //     "enableNetworkInterfaceAlarm".
45   DOMString startIp;                  // for "setDhcpServer".
46   DOMString endIp;                    // for "setDhcpServer".
47   DOMString serverIp;                 // for "setDhcpServer".
48   DOMString maskLength;               // for "setDhcpServer".
49   DOMString preInternalIfname;        // for "updateUpStream".
50   DOMString preExternalIfname;        // for "updateUpStream".
51   DOMString curInternalIfname;        // for "updateUpStream".
52   DOMString curExternalIfname;        // for "updateUpStream".
55 /**
56 * This dictionary holds the parameters sent back to NetworkService.js.
58 dictionary NetworkResultOptions
60   long id = 0;                        // opaque id.
61   boolean ret = false;                // for sync command.
62   boolean broadcast = false;          // for netd broadcast message.
63   DOMString topic = "";               // for netd broadcast message.
64   DOMString reason = "";              // for netd broadcast message.
66   long resultCode = 0;                // for all commands.
67   DOMString resultReason = "";        // for all commands.
68   boolean error = false;              // for all commands.
70   boolean enable = false;             // for "setWifiTethering", "setUSBTethering"
71                                       //     "enableUsbRndis".
72   boolean result = false;             // for "enableUsbRndis".
73   boolean success = false;            // for "setDhcpServer".
74   DOMString curExternalIfname = "";   // for "updateUpStream".
75   DOMString curInternalIfname = "";   // for "updateUpStream".