Initial commit for GitHub migration based on spice2x-25-03-03

This commit is contained in:
sp2xdev
2025-03-10 19:16:49 -07:00
parent 94af8d32c9
commit ed8c72852f
1008 changed files with 296815 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include <string>
namespace logger {
// settings
extern bool BLOCKING;
extern bool COLOR;
enum Style {
DEFAULT = 0,
GREY = 1,
YELLOW = 2,
RED = 3
};
void start();
void stop();
void push(std::string data, Style color, bool terminate = false);
// log hooks
typedef bool (*LogHook_t)(void *user, const std::string &data, Style style, std::string &out);
void hook_add(LogHook_t hook, void *user);
void hook_remove(LogHook_t hook, void *user);
class PCBIDFilter {
public:
PCBIDFilter();
~PCBIDFilter();
private:
static bool filter(void *user, const std::string &data, Style style, std::string &out);
};
}