1 /* 2 Copyright (c) 2012-2020 Maarten Baert <maarten-baert@hotmail.com> 3 4 This file is part of SimpleScreenRecorder. 5 6 SimpleScreenRecorder is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 SimpleScreenRecorder is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with SimpleScreenRecorder. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #pragma once 21 #include "Global.h" 22 23 struct SSRVideoStream { 24 std::string m_stream_name; 25 int64_t m_creation_time; 26 unsigned int m_process_id; 27 inline bool operator==(const SSRVideoStream& other) const { 28 return (m_stream_name == other.m_stream_name); 29 } 30 inline bool operator<(const SSRVideoStream& other) const { 31 return (m_creation_time < other.m_creation_time); 32 } 33 }; 34