mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
Add ExistingPortServer to libstratosphere
This commit is contained in:
parent
f1cf6dcf97
commit
080816f2b6
2 changed files with 16 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "stratosphere/servicesession.hpp"
|
||||
#include "stratosphere/serviceserver.hpp"
|
||||
#include "stratosphere/managedportserver.hpp"
|
||||
#include "stratosphere/existingportserver.hpp"
|
||||
#include "stratosphere/waitablemanager.hpp"
|
||||
|
||||
#include "stratosphere/ipc_templating.hpp"
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include <switch.h>
|
||||
#include "iserver.hpp"
|
||||
|
||||
template <typename T>
|
||||
class ExistingPortServer : public IServer<T> {
|
||||
private:
|
||||
virtual Result register_self(const char *service_name) {
|
||||
return 0;
|
||||
}
|
||||
public:
|
||||
ExistingPortServer(Handle port_h, unsigned int max_s) : IServer<T>(NULL, max_s) {
|
||||
this->port_handle = port_h;
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue