Atmosphere-libs/include/stratosphere/existingportserver.hpp
2018-04-22 00:33:09 -06:00

15 lines
394 B
C++

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