blob: 8a3c3e71d740a8bd20c73c3504d9de357d33a786 [file] [log] [blame]
// Copyright 2011 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CROS_DISKS_DEVICE_EVENT_SOURCE_INTERFACE_H_
#define CROS_DISKS_DEVICE_EVENT_SOURCE_INTERFACE_H_
#include "cros-disks/device_event.h"
namespace cros_disks {
// An interface class for producing device events.
class DeviceEventSourceInterface {
public:
virtual ~DeviceEventSourceInterface() = default;
// Implemented by a derived class to return the available device events
// in |events|. Returns false on error.
virtual bool GetDeviceEvents(DeviceEventList* events) = 0;
};
} // namespace cros_disks
#endif // CROS_DISKS_DEVICE_EVENT_SOURCE_INTERFACE_H_