am.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "core/hle/kernel/kernel.h"
  6. #include "core/hle/service/service.h"
  7. namespace Service {
  8. namespace AM {
  9. /**
  10. * AM::TitleIDListGetTotal service function
  11. * Gets the number of installed titles in the requested media type
  12. * Inputs:
  13. * 0 : Command header (0x00010040)
  14. * 1 : Media type to load the titles from
  15. * Outputs:
  16. * 1 : Result, 0 on success, otherwise error code
  17. * 2 : The number of titles in the requested media type
  18. */
  19. void TitleIDListGetTotal(Service::Interface* self);
  20. /**
  21. * AM::GetTitleIDList service function
  22. * Loads information about the desired number of titles from the desired media type into an array
  23. * Inputs:
  24. * 0 : Command header (0x00020082)
  25. * 1 : The maximum number of titles to load
  26. * 2 : Media type to load the titles from
  27. * 3 : Descriptor of the output buffer pointer
  28. * 4 : Address of the output buffer
  29. * Outputs:
  30. * 1 : Result, 0 on success, otherwise error code
  31. * 2 : The number of titles loaded from the requested media type
  32. */
  33. void GetTitleIDList(Service::Interface* self);
  34. /// Initialize AM service
  35. void Init();
  36. /// Shutdown AM service
  37. void Shutdown();
  38. } // namespace AM
  39. } // namespace Service