EmulatorControl.h 393 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Assertions.h>
  8. #include <AK/StdLibExtras.h>
  9. #include <serenity.h>
  10. namespace UserspaceEmulator {
  11. enum class Command {
  12. MarkROIStart = 5,
  13. MarkROIEnd = 6,
  14. };
  15. inline void control(Command command)
  16. {
  17. emuctl(to_underlying(command), 0, 0);
  18. }
  19. }