dom/fmradio/ipc/PFMRadioRequest.ipdl

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 include protocol PFMRadio;
     7 namespace mozilla {
     8 namespace dom {
    10 struct ErrorResponse
    11 {
    12   nsString error;
    13 };
    15 struct SuccessResponse
    16 {
    17 };
    19 union FMRadioResponseType
    20 {
    21   ErrorResponse;
    22   SuccessResponse;
    23 };
    25 /**
    26  * The protocol is used for sending asynchronous operation requests of
    27  * FM radio HW from child to parent, and the type of the request is defined in
    28  * FMRadioRequestArgs.
    29  *
    30  * When the request completed, the result, i.e. FMRadioResponseType, will be
    31  * sent back to child from parent in the `__delete__` message.
    32  */
    33 async protocol PFMRadioRequest
    34 {
    35   manager PFMRadio;
    37 child:
    38   __delete__(FMRadioResponseType response);
    39 };
    41 } // namespace dom
    42 } // namespace mozilla

mercurial