Add ExistingPortServer to libstratosphere

This commit is contained in:
Michael Scire 2018-04-22 00:21:34 -06:00
parent f1cf6dcf97
commit 080816f2b6
2 changed files with 16 additions and 0 deletions

View file

@ -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"

View file

@ -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;
}
};