1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/fmradio/ipc/PFMRadioRequest.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 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 +include protocol PFMRadio; 1.9 + 1.10 +namespace mozilla { 1.11 +namespace dom { 1.12 + 1.13 +struct ErrorResponse 1.14 +{ 1.15 + nsString error; 1.16 +}; 1.17 + 1.18 +struct SuccessResponse 1.19 +{ 1.20 +}; 1.21 + 1.22 +union FMRadioResponseType 1.23 +{ 1.24 + ErrorResponse; 1.25 + SuccessResponse; 1.26 +}; 1.27 + 1.28 +/** 1.29 + * The protocol is used for sending asynchronous operation requests of 1.30 + * FM radio HW from child to parent, and the type of the request is defined in 1.31 + * FMRadioRequestArgs. 1.32 + * 1.33 + * When the request completed, the result, i.e. FMRadioResponseType, will be 1.34 + * sent back to child from parent in the `__delete__` message. 1.35 + */ 1.36 +async protocol PFMRadioRequest 1.37 +{ 1.38 + manager PFMRadio; 1.39 + 1.40 +child: 1.41 + __delete__(FMRadioResponseType response); 1.42 +}; 1.43 + 1.44 +} // namespace dom 1.45 +} // namespace mozilla 1.46 +