mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-13 07:18:42 +02:00
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright © 2023 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
#pragma once
|
|
|
|
#include <services/serviceman.h>
|
|
|
|
namespace skyline::service::account {
|
|
/**
|
|
* @url https://switchbrew.org/wiki/Account_services#IAuthorizationRequest
|
|
*/
|
|
class IAuthorizationRequest : public BaseService {
|
|
public:
|
|
IAuthorizationRequest(const DeviceState &state, ServiceManager &manager);
|
|
|
|
Result InvokeWithoutInteractionAsync(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
Result IsAuthorized(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
Result GetAuthorizationCode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
SERVICE_DECL(
|
|
SFUNC(0xA, IAuthorizationRequest, InvokeWithoutInteractionAsync),
|
|
SFUNC(0x13, IAuthorizationRequest, IsAuthorized),
|
|
SFUNC(0x15, IAuthorizationRequest, GetAuthorizationCode)
|
|
)
|
|
};
|
|
}
|