michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This dictionnary holds the parameters sent to the wifi service. michael@0: */ michael@0: dictionary WifiCommandOptions michael@0: { michael@0: long id = 0; // opaque id. michael@0: DOMString cmd = ""; // the command name. michael@0: DOMString request; // for "command" michael@0: DOMString ifname; // for "ifc_reset_connections", "ifc_enable", michael@0: // "ifc_disable", "ifc_remove_host_routes", michael@0: // "ifc_remove_default_route", "dhcp_stop", michael@0: // "dhcp_release_lease", "ifc_get_default_route", michael@0: // "ifc_add_host_route", "ifc_set_default_route", michael@0: // "ifc_configure", "dhcp_do_request", michael@0: // "dhcp_do_request_renew". michael@0: long route; // for "ifc_add_host_route", "ifc_set_default_route". michael@0: long ipaddr; // for "ifc_configure". michael@0: long mask; // for "ifc_configure". michael@0: long gateway; // for "ifc_configure". michael@0: long dns1; // for "ifc_configure". michael@0: long dns2; // for "ifc_configure". michael@0: DOMString key; // for "property_get", "property_set". michael@0: DOMString value; // for "property_set". michael@0: DOMString defaultValue; // for "property_get". michael@0: }; michael@0: michael@0: /** michael@0: * This dictionnary holds the parameters sent back to WifiWorker.js michael@0: */ michael@0: dictionary WifiResultOptions michael@0: { michael@0: long id = 0; // opaque id. michael@0: long status = 0; // the return status of the command. michael@0: // Used by most commands. michael@0: DOMString reply = ""; // for "command". michael@0: DOMString route = ""; // for "ifc_get_default_route". michael@0: DOMString error = ""; // for "dhcp_get_errmsg". michael@0: DOMString value = ""; // for "property_get". michael@0: DOMString ipaddr_str = ""; // The following are for the result of michael@0: // dhcp_do_request. michael@0: DOMString gateway_str = ""; michael@0: DOMString dns1_str = ""; michael@0: DOMString dns2_str = ""; michael@0: DOMString mask_str = ""; michael@0: DOMString server_str = ""; michael@0: DOMString vendor_str = ""; michael@0: long lease = 0; michael@0: long mask = 0; michael@0: long ipaddr = 0; michael@0: long gateway = 0; michael@0: long dns1 = 0; michael@0: long dns2 = 0; michael@0: long server = 0; michael@0: };