summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/delivery_cache_progress_service.h
blob: f81a1398065fc5cf30cd799dcc96fa06b4b11060 (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
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

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

namespace Core {
class System;
}

namespace Kernel {
class KEvent;
class KReadableEvent;
} // namespace Kernel

namespace Service::BCAT {
struct DeliveryCacheProgressImpl;

class IDeliveryCacheProgressService final : public ServiceFramework<IDeliveryCacheProgressService> {
public:
    explicit IDeliveryCacheProgressService(Core::System& system_, Kernel::KReadableEvent& event_,
                                           const DeliveryCacheProgressImpl& impl_);
    ~IDeliveryCacheProgressService() override;

private:
    Result GetEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);
    Result GetImpl(OutLargeData<DeliveryCacheProgressImpl, BufferAttr_HipcPointer> out_impl);

    Kernel::KReadableEvent& event;
    const DeliveryCacheProgressImpl& impl;
};

} // namespace Service::BCAT