Bug 1825333 - Make toolkit/components/sessionstore buildable outside of a unified...
[gecko.git] / dom / midi / PMIDIPort.ipdl
blobfc8369a1b1dfff65e867a59eb34e89f7269eddda
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include MIDITypes;
9 namespace mozilla {
10 namespace dom {
12 async protocol PMIDIPort
14 parent:
15   async Shutdown();
16   async Send(MIDIMessage[] msg);
17   async Open();
18   async Close();
19   async Clear();
20 child:
21   async Receive(MIDIMessage[] msg);
22   // Actually takes a MIDIDeviceConnectionState and MIDIPortConnectionState
23   // respectively.
24   async UpdateStatus(uint32_t deviceState, uint32_t connectionState);