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/nim | |
| 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/nim')
| -rw-r--r-- | src/core/hle/service/nim/nim.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp index aff7cc5bd..42de87f9a 100644 --- a/src/core/hle/service/nim/nim.cpp +++ b/src/core/hle/service/nim/nim.cpp | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | #include <chrono> | 4 | #include <chrono> |
| 5 | #include <ctime> | 5 | #include <ctime> |
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/hle/ipc_helpers.h" | ||
| 8 | #include "core/hle/kernel/k_event.h" | 7 | #include "core/hle/kernel/k_event.h" |
| 8 | #include "core/hle/service/ipc_helpers.h" | ||
| 9 | #include "core/hle/service/kernel_helpers.h" | 9 | #include "core/hle/service/kernel_helpers.h" |
| 10 | #include "core/hle/service/nim/nim.h" | 10 | #include "core/hle/service/nim/nim.h" |
| 11 | #include "core/hle/service/server_manager.h" | 11 | #include "core/hle/service/server_manager.h" |
| @@ -46,7 +46,7 @@ public: | |||
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | private: | 48 | private: |
| 49 | void CreateAsyncInterface(Kernel::HLERequestContext& ctx) { | 49 | void CreateAsyncInterface(HLERequestContext& ctx) { |
| 50 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | 50 | LOG_WARNING(Service_NIM, "(STUBBED) called"); |
| 51 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 51 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 52 | rb.Push(ResultSuccess); | 52 | rb.Push(ResultSuccess); |
| @@ -68,7 +68,7 @@ public: | |||
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | private: | 70 | private: |
| 71 | void CreateAccessorInterface(Kernel::HLERequestContext& ctx) { | 71 | void CreateAccessorInterface(HLERequestContext& ctx) { |
| 72 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | 72 | LOG_WARNING(Service_NIM, "(STUBBED) called"); |
| 73 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 73 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 74 | rb.Push(ResultSuccess); | 74 | rb.Push(ResultSuccess); |
| @@ -239,14 +239,14 @@ public: | |||
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | private: | 241 | private: |
| 242 | void CreateServerInterface(Kernel::HLERequestContext& ctx) { | 242 | void CreateServerInterface(HLERequestContext& ctx) { |
| 243 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | 243 | LOG_WARNING(Service_NIM, "(STUBBED) called"); |
| 244 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 244 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 245 | rb.Push(ResultSuccess); | 245 | rb.Push(ResultSuccess); |
| 246 | rb.PushIpcInterface<IShopServiceAccessServer>(system); | 246 | rb.PushIpcInterface<IShopServiceAccessServer>(system); |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | void IsLargeResourceAvailable(Kernel::HLERequestContext& ctx) { | 249 | void IsLargeResourceAvailable(HLERequestContext& ctx) { |
| 250 | IPC::RequestParser rp{ctx}; | 250 | IPC::RequestParser rp{ctx}; |
| 251 | 251 | ||
| 252 | const auto unknown{rp.Pop<u64>()}; | 252 | const auto unknown{rp.Pop<u64>()}; |
| @@ -325,7 +325,7 @@ public: | |||
| 325 | } | 325 | } |
| 326 | 326 | ||
| 327 | private: | 327 | private: |
| 328 | void StartTask(Kernel::HLERequestContext& ctx) { | 328 | void StartTask(HLERequestContext& ctx) { |
| 329 | // No need to connect to the internet, just finish the task straight away. | 329 | // No need to connect to the internet, just finish the task straight away. |
| 330 | LOG_DEBUG(Service_NIM, "called"); | 330 | LOG_DEBUG(Service_NIM, "called"); |
| 331 | finished_event->Signal(); | 331 | finished_event->Signal(); |
| @@ -333,7 +333,7 @@ private: | |||
| 333 | rb.Push(ResultSuccess); | 333 | rb.Push(ResultSuccess); |
| 334 | } | 334 | } |
| 335 | 335 | ||
| 336 | void GetFinishNotificationEvent(Kernel::HLERequestContext& ctx) { | 336 | void GetFinishNotificationEvent(HLERequestContext& ctx) { |
| 337 | LOG_DEBUG(Service_NIM, "called"); | 337 | LOG_DEBUG(Service_NIM, "called"); |
| 338 | 338 | ||
| 339 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 339 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -341,21 +341,21 @@ private: | |||
| 341 | rb.PushCopyObjects(finished_event->GetReadableEvent()); | 341 | rb.PushCopyObjects(finished_event->GetReadableEvent()); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void GetResult(Kernel::HLERequestContext& ctx) { | 344 | void GetResult(HLERequestContext& ctx) { |
| 345 | LOG_DEBUG(Service_NIM, "called"); | 345 | LOG_DEBUG(Service_NIM, "called"); |
| 346 | 346 | ||
| 347 | IPC::ResponseBuilder rb{ctx, 2}; | 347 | IPC::ResponseBuilder rb{ctx, 2}; |
| 348 | rb.Push(ResultSuccess); | 348 | rb.Push(ResultSuccess); |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | void Cancel(Kernel::HLERequestContext& ctx) { | 351 | void Cancel(HLERequestContext& ctx) { |
| 352 | LOG_DEBUG(Service_NIM, "called"); | 352 | LOG_DEBUG(Service_NIM, "called"); |
| 353 | finished_event->Clear(); | 353 | finished_event->Clear(); |
| 354 | IPC::ResponseBuilder rb{ctx, 2}; | 354 | IPC::ResponseBuilder rb{ctx, 2}; |
| 355 | rb.Push(ResultSuccess); | 355 | rb.Push(ResultSuccess); |
| 356 | } | 356 | } |
| 357 | 357 | ||
| 358 | void IsProcessing(Kernel::HLERequestContext& ctx) { | 358 | void IsProcessing(HLERequestContext& ctx) { |
| 359 | LOG_DEBUG(Service_NIM, "called"); | 359 | LOG_DEBUG(Service_NIM, "called"); |
| 360 | 360 | ||
| 361 | IPC::ResponseBuilder rb{ctx, 3}; | 361 | IPC::ResponseBuilder rb{ctx, 3}; |
| @@ -363,7 +363,7 @@ private: | |||
| 363 | rb.PushRaw<u32>(0); // We instantly process the request | 363 | rb.PushRaw<u32>(0); // We instantly process the request |
| 364 | } | 364 | } |
| 365 | 365 | ||
| 366 | void GetServerTime(Kernel::HLERequestContext& ctx) { | 366 | void GetServerTime(HLERequestContext& ctx) { |
| 367 | LOG_DEBUG(Service_NIM, "called"); | 367 | LOG_DEBUG(Service_NIM, "called"); |
| 368 | 368 | ||
| 369 | const s64 server_time{std::chrono::duration_cast<std::chrono::seconds>( | 369 | const s64 server_time{std::chrono::duration_cast<std::chrono::seconds>( |
| @@ -394,7 +394,7 @@ public: | |||
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | private: | 396 | private: |
| 397 | void OpenEnsureNetworkClockAvailabilityService(Kernel::HLERequestContext& ctx) { | 397 | void OpenEnsureNetworkClockAvailabilityService(HLERequestContext& ctx) { |
| 398 | LOG_DEBUG(Service_NIM, "called"); | 398 | LOG_DEBUG(Service_NIM, "called"); |
| 399 | 399 | ||
| 400 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 400 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| @@ -403,14 +403,14 @@ private: | |||
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | // TODO(ogniK): Do we need these? | 405 | // TODO(ogniK): Do we need these? |
| 406 | void SuspendAutonomicTimeCorrection(Kernel::HLERequestContext& ctx) { | 406 | void SuspendAutonomicTimeCorrection(HLERequestContext& ctx) { |
| 407 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | 407 | LOG_WARNING(Service_NIM, "(STUBBED) called"); |
| 408 | 408 | ||
| 409 | IPC::ResponseBuilder rb{ctx, 2}; | 409 | IPC::ResponseBuilder rb{ctx, 2}; |
| 410 | rb.Push(ResultSuccess); | 410 | rb.Push(ResultSuccess); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | void ResumeAutonomicTimeCorrection(Kernel::HLERequestContext& ctx) { | 413 | void ResumeAutonomicTimeCorrection(HLERequestContext& ctx) { |
| 414 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | 414 | LOG_WARNING(Service_NIM, "(STUBBED) called"); |
| 415 | 415 | ||
| 416 | IPC::ResponseBuilder rb{ctx, 2}; | 416 | IPC::ResponseBuilder rb{ctx, 2}; |