updated folder scanning code

This commit is contained in:
jakani24
2023-12-25 22:50:30 +01:00
parent 89aab04cce
commit f069abeb7b
97 changed files with 4778 additions and 150 deletions

View File

@@ -1,7 +1,32 @@
#ifndef APP_CTRL_CPP
#define APP_CTRL_CPP
#include "app_ctrl.h"
bool app_stop_ = false;
bool can_run_thread_ = true;
bool can_scan_folder_ = true;
int app_stop() {
return 0;
return app_stop_;
}
int can_run_thread() {
return can_run_thread_;
}
int thread_init() {
can_run_thread_ = false;
return can_run_thread_;
}
int thread_shutdown() {
can_run_thread_ = true;
return can_run_thread_;
}
int can_scan_folder() {
return can_scan_folder_;
}
int scan_folder_init() {
can_scan_folder_ = false;
return can_scan_folder_;
}
int scan_folder_shutdown() {
can_scan_folder_ = true;
return can_scan_folder_;
}
#endif