dom/webidl/WifiOptions.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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 /**
michael@0 6 * This dictionnary holds the parameters sent to the wifi service.
michael@0 7 */
michael@0 8 dictionary WifiCommandOptions
michael@0 9 {
michael@0 10 long id = 0; // opaque id.
michael@0 11 DOMString cmd = ""; // the command name.
michael@0 12 DOMString request; // for "command"
michael@0 13 DOMString ifname; // for "ifc_reset_connections", "ifc_enable",
michael@0 14 // "ifc_disable", "ifc_remove_host_routes",
michael@0 15 // "ifc_remove_default_route", "dhcp_stop",
michael@0 16 // "dhcp_release_lease", "ifc_get_default_route",
michael@0 17 // "ifc_add_host_route", "ifc_set_default_route",
michael@0 18 // "ifc_configure", "dhcp_do_request",
michael@0 19 // "dhcp_do_request_renew".
michael@0 20 long route; // for "ifc_add_host_route", "ifc_set_default_route".
michael@0 21 long ipaddr; // for "ifc_configure".
michael@0 22 long mask; // for "ifc_configure".
michael@0 23 long gateway; // for "ifc_configure".
michael@0 24 long dns1; // for "ifc_configure".
michael@0 25 long dns2; // for "ifc_configure".
michael@0 26 DOMString key; // for "property_get", "property_set".
michael@0 27 DOMString value; // for "property_set".
michael@0 28 DOMString defaultValue; // for "property_get".
michael@0 29 };
michael@0 30
michael@0 31 /**
michael@0 32 * This dictionnary holds the parameters sent back to WifiWorker.js
michael@0 33 */
michael@0 34 dictionary WifiResultOptions
michael@0 35 {
michael@0 36 long id = 0; // opaque id.
michael@0 37 long status = 0; // the return status of the command.
michael@0 38 // Used by most commands.
michael@0 39 DOMString reply = ""; // for "command".
michael@0 40 DOMString route = ""; // for "ifc_get_default_route".
michael@0 41 DOMString error = ""; // for "dhcp_get_errmsg".
michael@0 42 DOMString value = ""; // for "property_get".
michael@0 43 DOMString ipaddr_str = ""; // The following are for the result of
michael@0 44 // dhcp_do_request.
michael@0 45 DOMString gateway_str = "";
michael@0 46 DOMString dns1_str = "";
michael@0 47 DOMString dns2_str = "";
michael@0 48 DOMString mask_str = "";
michael@0 49 DOMString server_str = "";
michael@0 50 DOMString vendor_str = "";
michael@0 51 long lease = 0;
michael@0 52 long mask = 0;
michael@0 53 long ipaddr = 0;
michael@0 54 long gateway = 0;
michael@0 55 long dns1 = 0;
michael@0 56 long dns2 = 0;
michael@0 57 long server = 0;
michael@0 58 };

mercurial