Files
ma/src/client_backend/app_ctrl.cpp
2023-12-25 22:50:30 +01:00

32 lines
605 B
C++

#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 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