diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-18 23:36:29 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-18 23:36:29 -0600 |
| commit | d0af52f28e99676d47d6a9b33709bc20e77b7d2f (patch) | |
| tree | a4b10e073fa20b007d09c55116f723efdc779d8d /src/core/hle/service/ns/query_service.h | |
| parent | ef89b79d7e2736c9e00cbf23dfb650c817e47ae6 (diff) | |
| parent | d45a12826c94f7f0da62d1df05245fcae38784e7 (diff) | |
Merge pull request #13048 from liamwhite/new-shell
ns: rewrite for new IPC
Diffstat (limited to 'src/core/hle/service/ns/query_service.h')
| -rw-r--r-- | src/core/hle/service/ns/query_service.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/query_service.h b/src/core/hle/service/ns/query_service.h new file mode 100644 index 000000000..6cdbfa277 --- /dev/null +++ b/src/core/hle/service/ns/query_service.h @@ -0,0 +1,36 @@ +// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "common/uuid.h" +#include "core/hle/service/cmif_types.h" +#include "core/hle/service/service.h" + +namespace Service::NS { + +struct PlayStatistics { + u64 application_id{}; + u32 first_entry_index{}; + u32 first_timestamp_user{}; + u32 first_timestamp_network{}; + u32 last_entry_index{}; + u32 last_timestamp_user{}; + u32 last_timestamp_network{}; + u32 play_time_in_minutes{}; + u32 total_launches{}; +}; +static_assert(sizeof(PlayStatistics) == 0x28, "PlayStatistics is an invalid size"); + +class IQueryService final : public ServiceFramework<IQueryService> { +public: + explicit IQueryService(Core::System& system_); + ~IQueryService() override; + +private: + Result QueryPlayStatisticsByApplicationIdAndUserAccountId( + Out<PlayStatistics> out_play_statistics, bool unknown, Common::UUID account_id, + u64 application_id); +}; + +} // namespace Service::NS |
