summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/acc_u0.h
blob: 222f37282068e8f8d135a216aa47fd3478ff04ff (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
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

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

namespace Service {
namespace Account {

// TODO: RE this structure
struct UserData {
    INSERT_PADDING_BYTES(0x80);
};
static_assert(sizeof(UserData) == 0x80, "UserData structure has incorrect size");

// TODO: RE this structure
struct ProfileBase {
    INSERT_PADDING_BYTES(0x38);
};
static_assert(sizeof(ProfileBase) == 0x38, "ProfileBase structure has incorrect size");

class ACC_U0 final : public ServiceFramework<ACC_U0> {
public:
    ACC_U0();
    ~ACC_U0() = default;

private:
    void GetUserExistence(Kernel::HLERequestContext& ctx);
    void ListAllUsers(Kernel::HLERequestContext& ctx);
    void ListOpenUsers(Kernel::HLERequestContext& ctx);
    void GetLastOpenedUser(Kernel::HLERequestContext& ctx);
    void GetProfile(Kernel::HLERequestContext& ctx);
    void InitializeApplicationInfo(Kernel::HLERequestContext& ctx);
    void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx);
};

} // namespace Account
} // namespace Service