mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
arp: Use type alias for issue function
Reduces some verbosity and centralizes the function details in one spot.
This commit is contained in:
parent
b7d04d848d
commit
9f39f7c041
1 changed files with 4 additions and 4 deletions
|
@ -157,9 +157,9 @@ class IRegistrar final : public ServiceFramework<IRegistrar> {
|
||||||
friend class ARP_W;
|
friend class ARP_W;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit IRegistrar(
|
using IssuerFn = std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)>;
|
||||||
Core::System& system_,
|
|
||||||
std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issuer)
|
explicit IRegistrar(Core::System& system_, IssuerFn&& issuer)
|
||||||
: ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} {
|
: ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
|
@ -238,7 +238,7 @@ private:
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id;
|
IssuerFn issue_process_id;
|
||||||
bool issued = false;
|
bool issued = false;
|
||||||
ApplicationLaunchProperty launch{};
|
ApplicationLaunchProperty launch{};
|
||||||
std::vector<u8> control;
|
std::vector<u8> control;
|
||||||
|
|
Loading…
Reference in a new issue