diff options
| author | 2023-02-19 14:42:12 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:39:49 -0500 | |
| commit | 65be230fdda302b25447f2f09b06e3238bd09e79 (patch) | |
| tree | 68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/pctl | |
| parent | sm:: remove unused member (diff) | |
| download | yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip | |
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/pctl')
| -rw-r--r-- | src/core/hle/service/pctl/pctl_module.cpp | 28 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/pctl_module.h | 4 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/core/hle/service/pctl/pctl_module.cpp b/src/core/hle/service/pctl/pctl_module.cpp index a4a12a78c..f966c5c8b 100644 --- a/src/core/hle/service/pctl/pctl_module.cpp +++ b/src/core/hle/service/pctl/pctl_module.cpp | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #include "core/core.h" | 5 | #include "core/core.h" |
| 6 | #include "core/file_sys/control_metadata.h" | 6 | #include "core/file_sys/control_metadata.h" |
| 7 | #include "core/file_sys/patch_manager.h" | 7 | #include "core/file_sys/patch_manager.h" |
| 8 | #include "core/hle/ipc_helpers.h" | 8 | #include "core/hle/service/ipc_helpers.h" |
| 9 | #include "core/hle/service/pctl/pctl.h" | 9 | #include "core/hle/service/pctl/pctl.h" |
| 10 | #include "core/hle/service/pctl/pctl_module.h" | 10 | #include "core/hle/service/pctl/pctl_module.h" |
| 11 | #include "core/hle/service/server_manager.h" | 11 | #include "core/hle/service/server_manager.h" |
| @@ -177,7 +177,7 @@ private: | |||
| 177 | settings.is_stero_vision_restricted = is_restricted; | 177 | settings.is_stero_vision_restricted = is_restricted; |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | void Initialize(Kernel::HLERequestContext& ctx) { | 180 | void Initialize(HLERequestContext& ctx) { |
| 181 | LOG_DEBUG(Service_PCTL, "called"); | 181 | LOG_DEBUG(Service_PCTL, "called"); |
| 182 | IPC::ResponseBuilder rb{ctx, 2}; | 182 | IPC::ResponseBuilder rb{ctx, 2}; |
| 183 | 183 | ||
| @@ -215,7 +215,7 @@ private: | |||
| 215 | rb.Push(ResultSuccess); | 215 | rb.Push(ResultSuccess); |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | void CheckFreeCommunicationPermission(Kernel::HLERequestContext& ctx) { | 218 | void CheckFreeCommunicationPermission(HLERequestContext& ctx) { |
| 219 | LOG_DEBUG(Service_PCTL, "called"); | 219 | LOG_DEBUG(Service_PCTL, "called"); |
| 220 | 220 | ||
| 221 | IPC::ResponseBuilder rb{ctx, 2}; | 221 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -228,7 +228,7 @@ private: | |||
| 228 | states.free_communication = true; | 228 | states.free_communication = true; |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | void ConfirmStereoVisionPermission(Kernel::HLERequestContext& ctx) { | 231 | void ConfirmStereoVisionPermission(HLERequestContext& ctx) { |
| 232 | LOG_DEBUG(Service_PCTL, "called"); | 232 | LOG_DEBUG(Service_PCTL, "called"); |
| 233 | states.stereo_vision = true; | 233 | states.stereo_vision = true; |
| 234 | 234 | ||
| @@ -236,14 +236,14 @@ private: | |||
| 236 | rb.Push(ResultSuccess); | 236 | rb.Push(ResultSuccess); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void EndFreeCommunication(Kernel::HLERequestContext& ctx) { | 239 | void EndFreeCommunication(HLERequestContext& ctx) { |
| 240 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | 240 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); |
| 241 | 241 | ||
| 242 | IPC::ResponseBuilder rb{ctx, 2}; | 242 | IPC::ResponseBuilder rb{ctx, 2}; |
| 243 | rb.Push(ResultSuccess); | 243 | rb.Push(ResultSuccess); |
| 244 | } | 244 | } |
| 245 | 245 | ||
| 246 | void IsFreeCommunicationAvailable(Kernel::HLERequestContext& ctx) { | 246 | void IsFreeCommunicationAvailable(HLERequestContext& ctx) { |
| 247 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | 247 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); |
| 248 | 248 | ||
| 249 | IPC::ResponseBuilder rb{ctx, 2}; | 249 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -254,7 +254,7 @@ private: | |||
| 254 | } | 254 | } |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void IsRestrictionEnabled(Kernel::HLERequestContext& ctx) { | 257 | void IsRestrictionEnabled(HLERequestContext& ctx) { |
| 258 | LOG_DEBUG(Service_PCTL, "called"); | 258 | LOG_DEBUG(Service_PCTL, "called"); |
| 259 | 259 | ||
| 260 | IPC::ResponseBuilder rb{ctx, 3}; | 260 | IPC::ResponseBuilder rb{ctx, 3}; |
| @@ -268,7 +268,7 @@ private: | |||
| 268 | rb.Push(pin_code[0] != '\0'); | 268 | rb.Push(pin_code[0] != '\0'); |
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | void ConfirmStereoVisionRestrictionConfigurable(Kernel::HLERequestContext& ctx) { | 271 | void ConfirmStereoVisionRestrictionConfigurable(HLERequestContext& ctx) { |
| 272 | LOG_DEBUG(Service_PCTL, "called"); | 272 | LOG_DEBUG(Service_PCTL, "called"); |
| 273 | 273 | ||
| 274 | IPC::ResponseBuilder rb{ctx, 2}; | 274 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -287,7 +287,7 @@ private: | |||
| 287 | rb.Push(ResultSuccess); | 287 | rb.Push(ResultSuccess); |
| 288 | } | 288 | } |
| 289 | 289 | ||
| 290 | void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) { | 290 | void IsStereoVisionPermitted(HLERequestContext& ctx) { |
| 291 | LOG_DEBUG(Service_PCTL, "called"); | 291 | LOG_DEBUG(Service_PCTL, "called"); |
| 292 | 292 | ||
| 293 | IPC::ResponseBuilder rb{ctx, 3}; | 293 | IPC::ResponseBuilder rb{ctx, 3}; |
| @@ -300,7 +300,7 @@ private: | |||
| 300 | } | 300 | } |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | void SetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { | 303 | void SetStereoVisionRestriction(HLERequestContext& ctx) { |
| 304 | IPC::RequestParser rp{ctx}; | 304 | IPC::RequestParser rp{ctx}; |
| 305 | const auto can_use = rp.Pop<bool>(); | 305 | const auto can_use = rp.Pop<bool>(); |
| 306 | LOG_DEBUG(Service_PCTL, "called, can_use={}", can_use); | 306 | LOG_DEBUG(Service_PCTL, "called, can_use={}", can_use); |
| @@ -316,7 +316,7 @@ private: | |||
| 316 | rb.Push(ResultSuccess); | 316 | rb.Push(ResultSuccess); |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { | 319 | void GetStereoVisionRestriction(HLERequestContext& ctx) { |
| 320 | LOG_DEBUG(Service_PCTL, "called"); | 320 | LOG_DEBUG(Service_PCTL, "called"); |
| 321 | 321 | ||
| 322 | IPC::ResponseBuilder rb{ctx, 3}; | 322 | IPC::ResponseBuilder rb{ctx, 3}; |
| @@ -331,7 +331,7 @@ private: | |||
| 331 | rb.Push(settings.is_stero_vision_restricted); | 331 | rb.Push(settings.is_stero_vision_restricted); |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | void ResetConfirmedStereoVisionPermission(Kernel::HLERequestContext& ctx) { | 334 | void ResetConfirmedStereoVisionPermission(HLERequestContext& ctx) { |
| 335 | LOG_DEBUG(Service_PCTL, "called"); | 335 | LOG_DEBUG(Service_PCTL, "called"); |
| 336 | 336 | ||
| 337 | states.stereo_vision = false; | 337 | states.stereo_vision = false; |
| @@ -370,7 +370,7 @@ private: | |||
| 370 | Capability capability{}; | 370 | Capability capability{}; |
| 371 | }; | 371 | }; |
| 372 | 372 | ||
| 373 | void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { | 373 | void Module::Interface::CreateService(HLERequestContext& ctx) { |
| 374 | LOG_DEBUG(Service_PCTL, "called"); | 374 | LOG_DEBUG(Service_PCTL, "called"); |
| 375 | 375 | ||
| 376 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 376 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| @@ -380,7 +380,7 @@ void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { | |||
| 380 | rb.PushIpcInterface<IParentalControlService>(system, capability); | 380 | rb.PushIpcInterface<IParentalControlService>(system, capability); |
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx) { | 383 | void Module::Interface::CreateServiceWithoutInitialize(HLERequestContext& ctx) { |
| 384 | LOG_DEBUG(Service_PCTL, "called"); | 384 | LOG_DEBUG(Service_PCTL, "called"); |
| 385 | 385 | ||
| 386 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 386 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
diff --git a/src/core/hle/service/pctl/pctl_module.h b/src/core/hle/service/pctl/pctl_module.h index 4ea77ab21..dff0d3f08 100644 --- a/src/core/hle/service/pctl/pctl_module.h +++ b/src/core/hle/service/pctl/pctl_module.h | |||
| @@ -31,8 +31,8 @@ public: | |||
| 31 | const char* name_, Capability capability_); | 31 | const char* name_, Capability capability_); |
| 32 | ~Interface() override; | 32 | ~Interface() override; |
| 33 | 33 | ||
| 34 | void CreateService(Kernel::HLERequestContext& ctx); | 34 | void CreateService(HLERequestContext& ctx); |
| 35 | void CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx); | 35 | void CreateServiceWithoutInitialize(HLERequestContext& ctx); |
| 36 | 36 | ||
| 37 | protected: | 37 | protected: |
| 38 | std::shared_ptr<Module> module; | 38 | std::shared_ptr<Module> module; |