mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 16:44:22 -04:00
strat: prefer os::NativeHandle to Handle/svc::Handle where sensible
This commit is contained in:
parent
597d521f52
commit
d0041a33ac
50 changed files with 193 additions and 190 deletions
|
@ -41,7 +41,7 @@ namespace ams::spl {
|
|||
return serviceDispatchIn(splCryptoGetServiceSession(), 22, slot);
|
||||
}
|
||||
|
||||
Result GetAesKeySlotAvailableEventImpl(Handle *out) {
|
||||
Result GetAesKeySlotAvailableEventImpl(os::NativeHandle *out) {
|
||||
return serviceDispatch(splCryptoGetServiceSession(), 23,
|
||||
.out_handle_attrs = { SfOutHandleAttr_HipcCopy },
|
||||
.out_handles = out,
|
||||
|
@ -49,8 +49,8 @@ namespace ams::spl {
|
|||
}
|
||||
|
||||
void GetAesKeySlotAvailableEvent(os::SystemEvent *out) {
|
||||
/* Get libnx event. */
|
||||
Handle handle = svc::InvalidHandle;
|
||||
/* Get event handle. */
|
||||
os::NativeHandle handle;
|
||||
R_ABORT_UNLESS(GetAesKeySlotAvailableEventImpl(std::addressof(handle)));
|
||||
|
||||
/* Attach to event. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue