OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_AUDIO_NODE_H_ | 5 #ifndef CHROMEOS_DBUS_AUDIO_NODE_H_ |
6 #define CHROMEOS_DBUS_AUDIO_NODE_H_ | 6 #define CHROMEOS_DBUS_AUDIO_NODE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
13 | 14 |
14 namespace chromeos { | 15 namespace chromeos { |
15 | 16 |
16 // Structure to hold AudioNode data received from cras. | 17 // Structure to hold AudioNode data received from cras. |
17 struct CHROMEOS_EXPORT AudioNode { | 18 struct CHROMEOS_EXPORT AudioNode { |
18 bool is_input; | 19 bool is_input; |
19 uint64 id; | 20 uint64_t id; |
20 std::string device_name; | 21 std::string device_name; |
21 std::string type; | 22 std::string type; |
22 std::string name; | 23 std::string name; |
23 std::string mic_positions; | 24 std::string mic_positions; |
24 bool active; | 25 bool active; |
25 // Time that the node was plugged in. | 26 // Time that the node was plugged in. |
26 uint64 plugged_time; | 27 uint64_t plugged_time; |
27 | 28 |
28 AudioNode(); | 29 AudioNode(); |
29 AudioNode(bool is_input, | 30 AudioNode(bool is_input, |
30 uint64 id, | 31 uint64_t id, |
31 std::string device_name, | 32 std::string device_name, |
32 std::string type, | 33 std::string type, |
33 std::string name, | 34 std::string name, |
34 bool active, | 35 bool active, |
35 uint64 plugged_time); | 36 uint64_t plugged_time); |
36 ~AudioNode(); | 37 ~AudioNode(); |
37 std::string ToString() const; | 38 std::string ToString() const; |
38 }; | 39 }; |
39 | 40 |
40 typedef std::vector<AudioNode> AudioNodeList; | 41 typedef std::vector<AudioNode> AudioNodeList; |
41 | 42 |
42 } // namespace chromeos | 43 } // namespace chromeos |
43 | 44 |
44 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_ | 45 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_ |
OLD | NEW |