summaryrefslogtreecommitdiff
path: root/src/core/hle/service/glue
diff options
context:
space:
mode:
authorGravatar Liam2023-02-19 14:42:12 -0500
committerGravatar Liam2023-03-01 10:39:49 -0500
commit65be230fdda302b25447f2f09b06e3238bd09e79 (patch)
tree68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/glue
parentsm:: remove unused member (diff)
downloadyuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz
yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/glue')
-rw-r--r--src/core/hle/service/glue/arp.cpp20
-rw-r--r--src/core/hle/service/glue/arp.h12
-rw-r--r--src/core/hle/service/glue/bgtc.cpp4
-rw-r--r--src/core/hle/service/glue/bgtc.h2
-rw-r--r--src/core/hle/service/glue/notif.cpp14
-rw-r--r--src/core/hle/service/glue/notif.h12
6 files changed, 32 insertions, 32 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp
index ce21b69e3..9db136bac 100644
--- a/src/core/hle/service/glue/arp.cpp
+++ b/src/core/hle/service/glue/arp.cpp
@@ -5,12 +5,12 @@
5 5
6#include "common/logging/log.h" 6#include "common/logging/log.h"
7#include "core/core.h" 7#include "core/core.h"
8#include "core/hle/ipc_helpers.h"
9#include "core/hle/kernel/k_process.h" 8#include "core/hle/kernel/k_process.h"
10#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
11#include "core/hle/service/glue/arp.h" 10#include "core/hle/service/glue/arp.h"
12#include "core/hle/service/glue/errors.h" 11#include "core/hle/service/glue/errors.h"
13#include "core/hle/service/glue/glue_manager.h" 12#include "core/hle/service/glue/glue_manager.h"
13#include "core/hle/service/ipc_helpers.h"
14 14
15namespace Service::Glue { 15namespace Service::Glue {
16 16
@@ -51,7 +51,7 @@ ARP_R::ARP_R(Core::System& system_, const ARPManager& manager_)
51 51
52ARP_R::~ARP_R() = default; 52ARP_R::~ARP_R() = default;
53 53
54void ARP_R::GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) { 54void ARP_R::GetApplicationLaunchProperty(HLERequestContext& ctx) {
55 IPC::RequestParser rp{ctx}; 55 IPC::RequestParser rp{ctx};
56 const auto process_id = rp.PopRaw<u64>(); 56 const auto process_id = rp.PopRaw<u64>();
57 57
@@ -79,7 +79,7 @@ void ARP_R::GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) {
79 rb.PushRaw(*res); 79 rb.PushRaw(*res);
80} 80}
81 81
82void ARP_R::GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx) { 82void ARP_R::GetApplicationLaunchPropertyWithApplicationId(HLERequestContext& ctx) {
83 IPC::RequestParser rp{ctx}; 83 IPC::RequestParser rp{ctx};
84 const auto title_id = rp.PopRaw<u64>(); 84 const auto title_id = rp.PopRaw<u64>();
85 85
@@ -99,7 +99,7 @@ void ARP_R::GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestCont
99 rb.PushRaw(*res); 99 rb.PushRaw(*res);
100} 100}
101 101
102void ARP_R::GetApplicationControlProperty(Kernel::HLERequestContext& ctx) { 102void ARP_R::GetApplicationControlProperty(HLERequestContext& ctx) {
103 IPC::RequestParser rp{ctx}; 103 IPC::RequestParser rp{ctx};
104 const auto process_id = rp.PopRaw<u64>(); 104 const auto process_id = rp.PopRaw<u64>();
105 105
@@ -128,7 +128,7 @@ void ARP_R::GetApplicationControlProperty(Kernel::HLERequestContext& ctx) {
128 rb.Push(ResultSuccess); 128 rb.Push(ResultSuccess);
129} 129}
130 130
131void ARP_R::GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx) { 131void ARP_R::GetApplicationControlPropertyWithApplicationId(HLERequestContext& ctx) {
132 IPC::RequestParser rp{ctx}; 132 IPC::RequestParser rp{ctx};
133 const auto title_id = rp.PopRaw<u64>(); 133 const auto title_id = rp.PopRaw<u64>();
134 134
@@ -169,7 +169,7 @@ public:
169 } 169 }
170 170
171private: 171private:
172 void Issue(Kernel::HLERequestContext& ctx) { 172 void Issue(HLERequestContext& ctx) {
173 IPC::RequestParser rp{ctx}; 173 IPC::RequestParser rp{ctx};
174 const auto process_id = rp.PopRaw<u64>(); 174 const auto process_id = rp.PopRaw<u64>();
175 175
@@ -197,7 +197,7 @@ private:
197 rb.Push(ResultSuccess); 197 rb.Push(ResultSuccess);
198 } 198 }
199 199
200 void SetApplicationLaunchProperty(Kernel::HLERequestContext& ctx) { 200 void SetApplicationLaunchProperty(HLERequestContext& ctx) {
201 LOG_DEBUG(Service_ARP, "called"); 201 LOG_DEBUG(Service_ARP, "called");
202 202
203 if (issued) { 203 if (issued) {
@@ -216,7 +216,7 @@ private:
216 rb.Push(ResultSuccess); 216 rb.Push(ResultSuccess);
217 } 217 }
218 218
219 void SetApplicationControlProperty(Kernel::HLERequestContext& ctx) { 219 void SetApplicationControlProperty(HLERequestContext& ctx) {
220 LOG_DEBUG(Service_ARP, "called"); 220 LOG_DEBUG(Service_ARP, "called");
221 221
222 if (issued) { 222 if (issued) {
@@ -256,7 +256,7 @@ ARP_W::ARP_W(Core::System& system_, ARPManager& manager_)
256 256
257ARP_W::~ARP_W() = default; 257ARP_W::~ARP_W() = default;
258 258
259void ARP_W::AcquireRegistrar(Kernel::HLERequestContext& ctx) { 259void ARP_W::AcquireRegistrar(HLERequestContext& ctx) {
260 LOG_DEBUG(Service_ARP, "called"); 260 LOG_DEBUG(Service_ARP, "called");
261 261
262 registrar = std::make_shared<IRegistrar>( 262 registrar = std::make_shared<IRegistrar>(
@@ -274,7 +274,7 @@ void ARP_W::AcquireRegistrar(Kernel::HLERequestContext& ctx) {
274 rb.PushIpcInterface(registrar); 274 rb.PushIpcInterface(registrar);
275} 275}
276 276
277void ARP_W::UnregisterApplicationInstance(Kernel::HLERequestContext& ctx) { 277void ARP_W::UnregisterApplicationInstance(HLERequestContext& ctx) {
278 IPC::RequestParser rp{ctx}; 278 IPC::RequestParser rp{ctx};
279 const auto process_id = rp.PopRaw<u64>(); 279 const auto process_id = rp.PopRaw<u64>();
280 280
diff --git a/src/core/hle/service/glue/arp.h b/src/core/hle/service/glue/arp.h
index 06c992e88..5bce80175 100644
--- a/src/core/hle/service/glue/arp.h
+++ b/src/core/hle/service/glue/arp.h
@@ -16,10 +16,10 @@ public:
16 ~ARP_R() override; 16 ~ARP_R() override;
17 17
18private: 18private:
19 void GetApplicationLaunchProperty(Kernel::HLERequestContext& ctx); 19 void GetApplicationLaunchProperty(HLERequestContext& ctx);
20 void GetApplicationLaunchPropertyWithApplicationId(Kernel::HLERequestContext& ctx); 20 void GetApplicationLaunchPropertyWithApplicationId(HLERequestContext& ctx);
21 void GetApplicationControlProperty(Kernel::HLERequestContext& ctx); 21 void GetApplicationControlProperty(HLERequestContext& ctx);
22 void GetApplicationControlPropertyWithApplicationId(Kernel::HLERequestContext& ctx); 22 void GetApplicationControlPropertyWithApplicationId(HLERequestContext& ctx);
23 23
24 const ARPManager& manager; 24 const ARPManager& manager;
25}; 25};
@@ -30,8 +30,8 @@ public:
30 ~ARP_W() override; 30 ~ARP_W() override;
31 31
32private: 32private:
33 void AcquireRegistrar(Kernel::HLERequestContext& ctx); 33 void AcquireRegistrar(HLERequestContext& ctx);
34 void UnregisterApplicationInstance(Kernel::HLERequestContext& ctx); 34 void UnregisterApplicationInstance(HLERequestContext& ctx);
35 35
36 ARPManager& manager; 36 ARPManager& manager;
37 std::shared_ptr<IRegistrar> registrar; 37 std::shared_ptr<IRegistrar> registrar;
diff --git a/src/core/hle/service/glue/bgtc.cpp b/src/core/hle/service/glue/bgtc.cpp
index 3248091c3..ae22ac4f7 100644
--- a/src/core/hle/service/glue/bgtc.cpp
+++ b/src/core/hle/service/glue/bgtc.cpp
@@ -3,8 +3,8 @@
3 3
4#include "common/logging/log.h" 4#include "common/logging/log.h"
5#include "core/core.h" 5#include "core/core.h"
6#include "core/hle/ipc_helpers.h"
7#include "core/hle/service/glue/bgtc.h" 6#include "core/hle/service/glue/bgtc.h"
7#include "core/hle/service/ipc_helpers.h"
8 8
9namespace Service::Glue { 9namespace Service::Glue {
10 10
@@ -20,7 +20,7 @@ BGTC_T::BGTC_T(Core::System& system_) : ServiceFramework{system_, "bgtc:t"} {
20 20
21BGTC_T::~BGTC_T() = default; 21BGTC_T::~BGTC_T() = default;
22 22
23void BGTC_T::OpenTaskService(Kernel::HLERequestContext& ctx) { 23void BGTC_T::OpenTaskService(HLERequestContext& ctx) {
24 LOG_DEBUG(Service_BGTC, "called"); 24 LOG_DEBUG(Service_BGTC, "called");
25 25
26 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 26 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
diff --git a/src/core/hle/service/glue/bgtc.h b/src/core/hle/service/glue/bgtc.h
index d6e2baec1..5a5d9c9a7 100644
--- a/src/core/hle/service/glue/bgtc.h
+++ b/src/core/hle/service/glue/bgtc.h
@@ -16,7 +16,7 @@ public:
16 explicit BGTC_T(Core::System& system_); 16 explicit BGTC_T(Core::System& system_);
17 ~BGTC_T() override; 17 ~BGTC_T() override;
18 18
19 void OpenTaskService(Kernel::HLERequestContext& ctx); 19 void OpenTaskService(HLERequestContext& ctx);
20}; 20};
21 21
22class ITaskService final : public ServiceFramework<ITaskService> { 22class ITaskService final : public ServiceFramework<ITaskService> {
diff --git a/src/core/hle/service/glue/notif.cpp b/src/core/hle/service/glue/notif.cpp
index 3ace2dabd..fec4ad86c 100644
--- a/src/core/hle/service/glue/notif.cpp
+++ b/src/core/hle/service/glue/notif.cpp
@@ -6,8 +6,8 @@
6 6
7#include "common/assert.h" 7#include "common/assert.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9#include "core/hle/ipc_helpers.h"
10#include "core/hle/service/glue/notif.h" 9#include "core/hle/service/glue/notif.h"
10#include "core/hle/service/ipc_helpers.h"
11 11
12namespace Service::Glue { 12namespace Service::Glue {
13 13
@@ -28,7 +28,7 @@ NOTIF_A::NOTIF_A(Core::System& system_) : ServiceFramework{system_, "notif:a"} {
28 28
29NOTIF_A::~NOTIF_A() = default; 29NOTIF_A::~NOTIF_A() = default;
30 30
31void NOTIF_A::RegisterAlarmSetting(Kernel::HLERequestContext& ctx) { 31void NOTIF_A::RegisterAlarmSetting(HLERequestContext& ctx) {
32 const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0); 32 const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0);
33 const auto application_parameter_size = ctx.GetReadBufferSize(1); 33 const auto application_parameter_size = ctx.GetReadBufferSize(1);
34 34
@@ -63,7 +63,7 @@ void NOTIF_A::RegisterAlarmSetting(Kernel::HLERequestContext& ctx) {
63 rb.Push(new_alarm.alarm_setting_id); 63 rb.Push(new_alarm.alarm_setting_id);
64} 64}
65 65
66void NOTIF_A::UpdateAlarmSetting(Kernel::HLERequestContext& ctx) { 66void NOTIF_A::UpdateAlarmSetting(HLERequestContext& ctx) {
67 const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0); 67 const auto alarm_setting_buffer_size = ctx.GetReadBufferSize(0);
68 const auto application_parameter_size = ctx.GetReadBufferSize(1); 68 const auto application_parameter_size = ctx.GetReadBufferSize(1);
69 69
@@ -91,7 +91,7 @@ void NOTIF_A::UpdateAlarmSetting(Kernel::HLERequestContext& ctx) {
91 rb.Push(ResultSuccess); 91 rb.Push(ResultSuccess);
92} 92}
93 93
94void NOTIF_A::ListAlarmSettings(Kernel::HLERequestContext& ctx) { 94void NOTIF_A::ListAlarmSettings(HLERequestContext& ctx) {
95 LOG_INFO(Service_NOTIF, "called, alarm_count={}", alarms.size()); 95 LOG_INFO(Service_NOTIF, "called, alarm_count={}", alarms.size());
96 96
97 // TODO: Only return alarms of this game id 97 // TODO: Only return alarms of this game id
@@ -102,7 +102,7 @@ void NOTIF_A::ListAlarmSettings(Kernel::HLERequestContext& ctx) {
102 rb.Push(static_cast<u32>(alarms.size())); 102 rb.Push(static_cast<u32>(alarms.size()));
103} 103}
104 104
105void NOTIF_A::LoadApplicationParameter(Kernel::HLERequestContext& ctx) { 105void NOTIF_A::LoadApplicationParameter(HLERequestContext& ctx) {
106 IPC::RequestParser rp{ctx}; 106 IPC::RequestParser rp{ctx};
107 const auto alarm_setting_id{rp.Pop<AlarmSettingId>()}; 107 const auto alarm_setting_id{rp.Pop<AlarmSettingId>()};
108 108
@@ -126,7 +126,7 @@ void NOTIF_A::LoadApplicationParameter(Kernel::HLERequestContext& ctx) {
126 rb.Push(static_cast<u32>(application_parameter.size())); 126 rb.Push(static_cast<u32>(application_parameter.size()));
127} 127}
128 128
129void NOTIF_A::DeleteAlarmSetting(Kernel::HLERequestContext& ctx) { 129void NOTIF_A::DeleteAlarmSetting(HLERequestContext& ctx) {
130 IPC::RequestParser rp{ctx}; 130 IPC::RequestParser rp{ctx};
131 const auto alarm_setting_id{rp.Pop<AlarmSettingId>()}; 131 const auto alarm_setting_id{rp.Pop<AlarmSettingId>()};
132 132
@@ -140,7 +140,7 @@ void NOTIF_A::DeleteAlarmSetting(Kernel::HLERequestContext& ctx) {
140 rb.Push(ResultSuccess); 140 rb.Push(ResultSuccess);
141} 141}
142 142
143void NOTIF_A::Initialize(Kernel::HLERequestContext& ctx) { 143void NOTIF_A::Initialize(HLERequestContext& ctx) {
144 // TODO: Load previous alarms from config 144 // TODO: Load previous alarms from config
145 145
146 LOG_WARNING(Service_NOTIF, "(STUBBED) called"); 146 LOG_WARNING(Service_NOTIF, "(STUBBED) called");
diff --git a/src/core/hle/service/glue/notif.h b/src/core/hle/service/glue/notif.h
index 4467e1f35..b1187f3a3 100644
--- a/src/core/hle/service/glue/notif.h
+++ b/src/core/hle/service/glue/notif.h
@@ -56,12 +56,12 @@ private:
56 }; 56 };
57 static_assert(sizeof(AlarmSetting) == 0x40, "AlarmSetting is an invalid size"); 57 static_assert(sizeof(AlarmSetting) == 0x40, "AlarmSetting is an invalid size");
58 58
59 void RegisterAlarmSetting(Kernel::HLERequestContext& ctx); 59 void RegisterAlarmSetting(HLERequestContext& ctx);
60 void UpdateAlarmSetting(Kernel::HLERequestContext& ctx); 60 void UpdateAlarmSetting(HLERequestContext& ctx);
61 void ListAlarmSettings(Kernel::HLERequestContext& ctx); 61 void ListAlarmSettings(HLERequestContext& ctx);
62 void LoadApplicationParameter(Kernel::HLERequestContext& ctx); 62 void LoadApplicationParameter(HLERequestContext& ctx);
63 void DeleteAlarmSetting(Kernel::HLERequestContext& ctx); 63 void DeleteAlarmSetting(HLERequestContext& ctx);
64 void Initialize(Kernel::HLERequestContext& ctx); 64 void Initialize(HLERequestContext& ctx);
65 65
66 std::vector<AlarmSetting>::iterator GetAlarmFromId(AlarmSettingId alarm_setting_id); 66 std::vector<AlarmSetting>::iterator GetAlarmFromId(AlarmSettingId alarm_setting_id);
67 67