DeviceEvent.h 389 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Types.h>
  8. struct DeviceEvent {
  9. int state;
  10. int is_block_device;
  11. unsigned major_number;
  12. unsigned minor_number;
  13. enum State {
  14. Removed = 0x01,
  15. Inserted = 0x02,
  16. Recovered = 0x03,
  17. FatalError = 0x04,
  18. };
  19. };