Add ExistingPortServer to libstratosphere

This commit is contained in:
Michael Scire committed 2018-04-22 00:33:09 -06:00
1 parent f1cf6dcf97
commit 080816f2b6
2 files changed
+16

No files matched your search

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