huge wip
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user