ArticProtocol/includes/ArticBaseFunctions.hpp
2025-03-04 18:36:21 +01:00

33 lines
847 B
C++

#pragma once
#include "3ds.h"
#include "map"
#include "ArticBaseCommon.hpp"
#include "ArticBaseServer.hpp"
#include "memory.h"
#include "string"
namespace ArticBaseFunctions {
// All method handlers should be defined here
extern std::map<std::string, void(*)(ArticBaseServer::MethodInterface& out)> functionHandlers;
// All setup functions should be defined here
extern std::vector<bool(*)()> setupFunctions;
// All destruct functions should be defined here
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);
};
};