blob: ac7bcb731771c5b54a2619aa879e477aa794f763 [file] [log] [blame]
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "power_manager/powerd/system/display/display_info.h"
#include <tuple>
namespace power_manager {
namespace system {
DisplayInfo::DisplayInfo() {}
DisplayInfo::~DisplayInfo() {}
bool DisplayInfo::operator<(const DisplayInfo& rhs) const {
return std::tie(drm_path.value(), i2c_path.value(), connector_status) <
std::tie(rhs.drm_path.value(), rhs.i2c_path.value(),
rhs.connector_status);
}
bool DisplayInfo::operator==(const DisplayInfo& o) const {
return !(*this < o || o < *this);
}
} // namespace system
} // namespace power_manager