2020-07-09 15:16:51 +02:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <services/serviceman.h>
|
|
|
|
|
|
|
|
namespace skyline::service::account {
|
|
|
|
/**
|
2020-09-28 12:05:17 +02:00
|
|
|
* @brief IManagerForApplication provides functions for reading Nintendo Online user information
|
|
|
|
* @url https://switchbrew.org/wiki/Account_services#IManagerForApplication
|
2020-07-09 15:16:51 +02:00
|
|
|
*/
|
|
|
|
class IManagerForApplication : public BaseService {
|
|
|
|
public:
|
|
|
|
IManagerForApplication(const DeviceState &state, ServiceManager &manager);
|
2020-11-03 10:40:42 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This checks if the given user has access to online services
|
|
|
|
*/
|
|
|
|
Result CheckAvailability(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
|
2022-11-02 18:38:33 +01:00
|
|
|
Result StoreOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
|
|
|
2020-11-03 10:40:42 +01:00
|
|
|
SERVICE_DECL(
|
2022-11-02 18:38:33 +01:00
|
|
|
SFUNC(0x0, IManagerForApplication, CheckAvailability),
|
|
|
|
SFUNC(0xA0, IManagerForApplication, StoreOpenContext)
|
2020-11-03 10:40:42 +01:00
|
|
|
)
|
2020-07-09 15:16:51 +02:00
|
|
|
};
|
2020-11-03 10:40:42 +01:00
|
|
|
}
|