summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/mm/mm_u.h
blob: 79eeedf9c4ef59db8f9eac7db53d5499811ea43e (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
// 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::MM {

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

private:
    void Initialize(Kernel::HLERequestContext& ctx);
    void SetAndWait(Kernel::HLERequestContext& ctx);
    void Get(Kernel::HLERequestContext& ctx);

    u32 min{0};
    u32 max{0};
    u32 current{0};
};

/// Registers all MM services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);

} // namespace Service::MM