dom/webidl/WifiOptions.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/WifiOptions.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/**
     1.9 +  * This dictionnary holds the parameters sent to the wifi service.
    1.10 +  */
    1.11 +dictionary WifiCommandOptions
    1.12 +{
    1.13 +  long      id = 0;       // opaque id.
    1.14 +  DOMString cmd = "";     // the command name.
    1.15 +  DOMString request;      // for "command"
    1.16 +  DOMString ifname;       // for "ifc_reset_connections", "ifc_enable",
    1.17 +                          // "ifc_disable", "ifc_remove_host_routes",
    1.18 +                          // "ifc_remove_default_route", "dhcp_stop",
    1.19 +                          // "dhcp_release_lease", "ifc_get_default_route",
    1.20 +                          // "ifc_add_host_route", "ifc_set_default_route",
    1.21 +                          // "ifc_configure", "dhcp_do_request",
    1.22 +                          // "dhcp_do_request_renew".
    1.23 +  long route;             // for "ifc_add_host_route", "ifc_set_default_route".
    1.24 +  long ipaddr;            // for "ifc_configure".
    1.25 +  long mask;              // for "ifc_configure".
    1.26 +  long gateway;           // for "ifc_configure".
    1.27 +  long dns1;              // for "ifc_configure".
    1.28 +  long dns2;              // for "ifc_configure".
    1.29 +  DOMString key;          // for "property_get", "property_set".
    1.30 +  DOMString value;        // for "property_set".
    1.31 +  DOMString defaultValue; // for "property_get".
    1.32 +};
    1.33 +
    1.34 +/**
    1.35 +  * This dictionnary holds the parameters sent back to WifiWorker.js
    1.36 +  */
    1.37 +dictionary WifiResultOptions
    1.38 +{
    1.39 +  long      id = 0;             // opaque id.
    1.40 +  long      status = 0;         // the return status of the command.
    1.41 +                                // Used by most commands.
    1.42 +  DOMString reply = "";         // for "command".
    1.43 +  DOMString route = "";         // for "ifc_get_default_route".
    1.44 +  DOMString error = "";         // for "dhcp_get_errmsg".
    1.45 +  DOMString value = "";         // for "property_get".
    1.46 +  DOMString ipaddr_str = "";    // The following are for the result of
    1.47 +                                // dhcp_do_request.
    1.48 +  DOMString gateway_str = "";
    1.49 +  DOMString dns1_str = "";
    1.50 +  DOMString dns2_str = "";
    1.51 +  DOMString mask_str = "";
    1.52 +  DOMString server_str = "";
    1.53 +  DOMString vendor_str = "";
    1.54 +  long      lease = 0;
    1.55 +  long      mask = 0;
    1.56 +  long      ipaddr = 0;
    1.57 +  long      gateway = 0;
    1.58 +  long      dns1 = 0;
    1.59 +  long      dns2 = 0;
    1.60 +  long      server = 0;
    1.61 +};

mercurial