MIDITypes.ipdlh (762B)
1 /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */ 2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */ 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 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 using mozilla::TimeStamp from "mozilla/TimeStamp.h"; 8 9 namespace mozilla { 10 namespace dom { 11 12 [Comparable] struct MIDIPortInfo { 13 nsString id; 14 nsString name; 15 nsString manufacturer; 16 nsString version; 17 //Actually a MIDIPortType enum 18 uint32_t type; 19 }; 20 21 struct MIDIMessage { 22 uint8_t[] data; 23 TimeStamp timestamp; 24 }; 25 26 struct MIDIPortList { 27 MIDIPortInfo[] ports; 28 }; 29 30 } // namespace dom 31 } // namespace mozilla