blob: f47293823f55ba95bb9b7aec90c2c8acf9e7ce89 [file] [log] [blame]
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00001/*
kjellander1afca732016-02-07 20:46:45 -08002 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00003 *
kjellander1afca732016-02-07 20:46:45 -08004 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:13 +00009 */
buildbot@webrtc.org65b98d12014-08-07 22:09:08 +000010
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MEDIA_BASE_DEVICE_H_
12#define MEDIA_BASE_DEVICE_H_
buildbot@webrtc.org65b98d12014-08-07 22:09:08 +000013
Steve Antone78bcb92017-10-31 09:53:08 -070014#include <string>
15
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020016#include "rtc_base/stringencode.h"
buildbot@webrtc.org65b98d12014-08-07 22:09:08 +000017
18namespace cricket {
19
20// Used to represent an audio or video capture or render device.
21struct Device {
22 Device() {}
23 Device(const std::string& name, int id)
24 : name(name),
25 id(rtc::ToString(id)) {
26 }
27 Device(const std::string& name, const std::string& id)
28 : name(name), id(id) {}
29
30 std::string name;
31 std::string id;
32};
33
34} // namespace cricket
35
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020036#endif // MEDIA_BASE_DEVICE_H_