blob: 3f6d5c93709886b1b6633253688d028a091e9e32 [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::IsDiskEvent() const {
switch (event_type) {
case kDiskAdded:
case kDiskAddedAfterRemoved:
case kDiskChanged:
case kDiskRemoved:
return true;
default:
return false;
}
}
} // namespace cros_disks