dom/wifi/nsIWifiService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/wifi/nsIWifiService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     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
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +[scriptable, uuid(4d4389e0-1547-11e3-8ffd-0800200c9a66)]
    1.11 +interface nsIWifiEventListener : nsISupports {
    1.12 +  void onWaitEvent(in AString event, in ACString aInterface);
    1.13 +  void onCommand(in jsval result, in ACString aInterface);
    1.14 +};
    1.15 +
    1.16 +[scriptable, uuid(5e2bd8c0-1547-11e3-8ffd-0800200c9a66)]
    1.17 +interface nsIWifiProxyService : nsISupports {
    1.18 +  void start(in nsIWifiEventListener listener,
    1.19 +             [array, size_is(aNumOfInterface)] in string aInterfaces,
    1.20 +             in unsigned long aNumOfInterface);
    1.21 +  void shutdown();
    1.22 +  [implicit_jscontext]
    1.23 +  void sendCommand(in jsval parameters, in ACString aInterface);
    1.24 +  void waitForEvent(in ACString aInterface);
    1.25 +};

mercurial