mirror of
https://github.com/azahar-emu/ArticProtocol
synced 2025-11-06 23:20:03 +01:00
33 lines
847 B
C++
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);
|
|
};
|
|
}; |