20 lines
362 B
C++
20 lines
362 B
C++
#ifndef UTILS_HPP
|
|
#define UTILS_HPP
|
|
|
|
#include <expected>
|
|
#include <string>
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
|
|
namespace utils {
|
|
std::expected<bool, std::string> isLocalPortOpen(uint16_t portno);
|
|
|
|
std::string to_id_format(const std::string& s);
|
|
|
|
std::string loadFile(const std::string& path);
|
|
|
|
std::filesystem::path getDataDir();
|
|
}
|
|
|
|
#endif
|