status.h 609 B

12345678910111213141516171819202122232425262728
  1. // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-3.0-or-later
  3. #pragma once
  4. #include "common/common_funcs.h"
  5. #include "common/common_types.h"
  6. namespace Service::android {
  7. enum class Status : s32 {
  8. None = 0,
  9. NoError = 0,
  10. StaleBufferSlot = 1,
  11. NoBufferAvailable = 2,
  12. PresentLater = 3,
  13. WouldBlock = -11,
  14. NoMemory = -12,
  15. Busy = -16,
  16. NoInit = -19,
  17. BadValue = -22,
  18. InvalidOperation = -38,
  19. BufferNeedsReallocation = 1,
  20. ReleaseAllBuffers = 2,
  21. };
  22. DECLARE_ENUM_FLAG_OPERATORS(Status);
  23. } // namespace Service::android