ArticBaseServer/plugin/includes/ArticBaseFunctions.hpp
2024-07-16 22:53:13 +02:00

28 lines
692 B
C++

#pragma once
#include "3ds.h"
#include "map"
#include "ArticBaseCommon.hpp"
#include "ArticBaseServer.hpp"
#include "memory.h"
#include "string"
namespace ArticBaseFunctions {
extern std::map<std::string, void(*)(ArticBaseServer::MethodInterface& out)> functionHandlers;
extern std::vector<bool(*)()> setupFunctions;
extern std::vector<bool(*)()> destructFunctions;
enum class HandleType {
FILE,
DIR,
ARCHIVE
};
// Controller_Start
namespace ArticController {
extern Thread thread;
extern bool thread_run;
extern int socket_fd;
extern volatile bool socket_ready;
void Handler(void* arg);
};
};