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

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

mercurial