michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: include protocol PFMRadio; michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: struct ErrorResponse michael@0: { michael@0: nsString error; michael@0: }; michael@0: michael@0: struct SuccessResponse michael@0: { michael@0: }; michael@0: michael@0: union FMRadioResponseType michael@0: { michael@0: ErrorResponse; michael@0: SuccessResponse; michael@0: }; michael@0: michael@0: /** michael@0: * The protocol is used for sending asynchronous operation requests of michael@0: * FM radio HW from child to parent, and the type of the request is defined in michael@0: * FMRadioRequestArgs. michael@0: * michael@0: * When the request completed, the result, i.e. FMRadioResponseType, will be michael@0: * sent back to child from parent in the `__delete__` message. michael@0: */ michael@0: async protocol PFMRadioRequest michael@0: { michael@0: manager PFMRadio; michael@0: michael@0: child: michael@0: __delete__(FMRadioResponseType response); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: