Cerberus/config.hpp
wheelchairy 118875234a upd
2025-01-28 22:33:54 +03:00

23 lines
588 B
C++

#pragma once
#include <string>
#include <cstdint>
#define CLR_RESET "\x1b[0m"
#define CLR_BOLD "\x1b[1m"
#define CLR_RED "\x1b[31m"
#define CLR_GREEN "\x1b[32m"
#define CLR_YELLOW "\x1b[33m"
#define CLR_BLUE "\x1b[34m"
#define CLR_CYAN "\x1b[36m"
struct AppConfig {
std::string nickname;
bool webServerRunning;
bool soundExchangeActive;
uint8_t ephemeralSec[32];
uint8_t ephemeralPub[32];
uint8_t sharedSecret[32];
bool haveSharedSecret;
AppConfig(): nickname("noname"), webServerRunning(false), soundExchangeActive(false), haveSharedSecret(false) {}
};