This commit is contained in:
2025-05-08 21:02:56 +03:00
parent 6706cbec45
commit 86a11faf70
24 changed files with 1022 additions and 460 deletions

View File

@@ -309,3 +309,15 @@ void generate_qr_code(std::string data) {
}
#endif // ifdef BUILD_OFD_BINARYEYE_SCAN
#ifdef BUILD_EMAIL_MODE
std::vector<std::string> read_file(std::string path) {
std::ifstream stream(path);
std::vector<std::string> lines;
std::string buffer;
while(getline(stream, buffer)) {
lines.push_back(buffer);
}
stream.close();
return lines;
}
#endif // ifdef BUILD_EMAIL_MODE

View File

@@ -31,5 +31,7 @@ std::string get_local_ip_address();
#endif
void fetch_and_download_modules();
#ifdef BUILD_EMAIL_MODE
std::vector<std::string> read_file(std::string path);
#endif
#endif // UTILS_H