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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_DBUS_AUDIO_NODE_H_
6 #define CHROMEOS_DBUS_AUDIO_NODE_H_
11 #include "base/basictypes.h"
12 #include "chromeos/chromeos_export.h"
16 // Structure to hold AudioNode data received from cras.
17 struct CHROMEOS_EXPORT AudioNode
{
20 std::string device_name
;
24 // Time that the node was plugged in.
28 AudioNode(bool is_input
,
30 std::string device_name
,
35 std::string
ToString() const;
38 typedef std::vector
<AudioNode
> AudioNodeList
;
40 } // namespace chromeos
42 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_