blob: a62661ede64d47f7f9f197a88df6d954255bdd8b [file] [log] [blame]
// Copyright (c) 2011 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 "cros-disks/device_event.h"
namespace cros_disks {
bool DeviceEvent::operator==(const DeviceEvent& event) const {
return event.event_type == event_type && event.device_path == device_path;
bool DeviceEvent::IsDiskEvent() const {
switch (event_type) {
case kDiskAdded:
case kDiskChanged:
case kDiskRemoved:
return true;
return false;
} // namespace cros_disks