mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 19:12:42 +02:00
fs.mitm: split out set.mitm
This commit is contained in:
parent
772f20b703
commit
51bad55da4
@ -44,7 +44,7 @@ class MitmQueryService : public IServiceObject {
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
DEFINE_SERVICE_DISPATCH_TABLE {
|
DEFINE_SERVICE_DISPATCH_TABLE {
|
||||||
MakeServiceCommandMeta<MQS_Cmd_ShouldMitm, &MitmQueryService::ShouldMitm>(),
|
MakeServiceCommandMeta<MQS_Cmd_ShouldMitm, &MitmQueryService<T>::ShouldMitm>(),
|
||||||
MakeServiceCommandMeta<MQS_Cmd_AssociatePidTid, &MitmQueryService::AssociatePidToTid>(),
|
MakeServiceCommandMeta<MQS_Cmd_AssociatePidTid, &MitmQueryService<T>::AssociatePidToTid>(),
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -93,8 +93,8 @@ template<typename T>
|
|||||||
static void AddMitmServerToManager(SessionManagerBase *manager, const char *srv_name, unsigned int max_sessions) {
|
static void AddMitmServerToManager(SessionManagerBase *manager, const char *srv_name, unsigned int max_sessions) {
|
||||||
Handle query_h;
|
Handle query_h;
|
||||||
auto *srv = new MitmServer<T>(&query_h, srv_name, max_sessions);
|
auto *srv = new MitmServer<T>(&query_h, srv_name, max_sessions);
|
||||||
manager->AddWaitable(srv);
|
|
||||||
manager->AddSession(query_h, std::move(ServiceObjectHolder(std::move(std::make_shared<MitmQueryService<T>>()))));
|
manager->AddSession(query_h, std::move(ServiceObjectHolder(std::move(std::make_shared<MitmQueryService<T>>()))));
|
||||||
|
manager->AddWaitable(srv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user