blob: 1b3eda74acd5f7a3d9caeba7dd14c3648e5a804d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_MIDI_MIDI_PORT_INFO_H_
#define MEDIA_MIDI_MIDI_PORT_INFO_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "media/base/media_export.h"
namespace media {
enum MidiPortState {
MIDI_PORT_DISCONNECTED,
MIDI_PORT_CONNECTED,
MIDI_PORT_OPENED,
MIDI_PORT_STATE_LAST = MIDI_PORT_OPENED,
};
struct MEDIA_EXPORT MidiPortInfo final {
MidiPortInfo();
MidiPortInfo(const std::string& in_id,
const std::string& in_manufacturer,
const std::string& in_name,
const std::string& in_version,
MidiPortState in_state);
MidiPortInfo(const MidiPortInfo& info);
~MidiPortInfo();
std::string id;
std::string manufacturer;
std::string name;
std::string version;
MidiPortState state;
};
using MidiPortInfoList = std::vector<MidiPortInfo>;
} // namespace media
#endif // MEDIA_MIDI_MIDI_PORT_INFO_H_
|