diff --git a/stratosphere/libstratosphere/include/stratosphere.hpp b/stratosphere/libstratosphere/include/stratosphere.hpp index 978d74f65..13eb4ff52 100644 --- a/stratosphere/libstratosphere/include/stratosphere.hpp +++ b/stratosphere/libstratosphere/include/stratosphere.hpp @@ -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" \ No newline at end of file diff --git a/stratosphere/libstratosphere/include/stratosphere/existingportserver.hpp b/stratosphere/libstratosphere/include/stratosphere/existingportserver.hpp new file mode 100644 index 000000000..f2589ab18 --- /dev/null +++ b/stratosphere/libstratosphere/include/stratosphere/existingportserver.hpp @@ -0,0 +1,15 @@ +#pragma once +#include +#include "iserver.hpp" + +template +class ExistingPortServer : public IServer { + private: + virtual Result register_self(const char *service_name) { + return 0; + } + public: + ExistingPortServer(Handle port_h, unsigned int max_s) : IServer(NULL, max_s) { + this->port_handle = port_h; + } +}; \ No newline at end of file