summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.h
blob: 063b8bd0975133cf327ade31cde17179833a5304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "core/hle/kernel/kernel.h"
#include "core/hle/service/service.h"

namespace Service {
namespace AM {

/**
 * AM::TitleIDListGetTotal service function
 * Gets the number of installed titles in the requested media type
 *  Inputs:
 *      0 : Command header (0x00010040)
 *      1 : Media type to load the titles from
 *  Outputs:
 *      1 : Result, 0 on success, otherwise error code
 *      2 : The number of titles in the requested media type
 */
void TitleIDListGetTotal(Service::Interface* self);

/**
 * AM::GetTitleIDList service function
 * Loads information about the desired number of titles from the desired media type into an array
 *  Inputs:
 *      0 : Command header (0x00020082)
 *      1 : The maximum number of titles to load
 *      2 : Media type to load the titles from
 *      3 : Descriptor of the output buffer pointer
 *      4 : Address of the output buffer
 *  Outputs:
 *      1 : Result, 0 on success, otherwise error code
 *      2 : The number of titles loaded from the requested media type
 */
void GetTitleIDList(Service::Interface* self);

/// Initialize AM service
void Init();

/// Shutdown AM service
void Shutdown();

} // namespace AM
} // namespace Service