dom/fmradio/ipc/PFMRadioRequest.ipdl

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:43f29a794065
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/. */
4
5 include protocol PFMRadio;
6
7 namespace mozilla {
8 namespace dom {
9
10 struct ErrorResponse
11 {
12 nsString error;
13 };
14
15 struct SuccessResponse
16 {
17 };
18
19 union FMRadioResponseType
20 {
21 ErrorResponse;
22 SuccessResponse;
23 };
24
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;
36
37 child:
38 __delete__(FMRadioResponseType response);
39 };
40
41 } // namespace dom
42 } // namespace mozilla
43

mercurial