Go to the source code of this file.
Functions | |
| void | write_log (const std::string &msg) |
| std::vector< std::string > | detect_active_devices () |
| void | monitor_loop () |
| void | handle_signal (int) |
| int | main (int argc, char **argv) |
Variables | |
| static std::atomic< bool > | running {true} |
| static std::mutex | log_mutex |
| std::vector< std::string > detect_active_devices | ( | ) |
Definition at line 92 of file BastionGuard-privacyd.cpp.
References detect_active_devices().
Referenced by detect_active_devices(), and monitor_loop().
| void handle_signal | ( | int | ) |
Definition at line 195 of file BastionGuard-privacyd.cpp.
References handle_signal(), and running.
Referenced by handle_signal(), handle_signal(), main(), main(), and main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 197 of file BastionGuard-privacyd.cpp.
References _, handle_signal(), LOCALEDIR, main(), monitor_loop(), running, and write_log().
| void monitor_loop | ( | ) |
Definition at line 152 of file BastionGuard-privacyd.cpp.
References _, detect_active_devices(), monitor_loop(), running, and write_log().
Referenced by main(), main(), and monitor_loop().
| void write_log | ( | const std::string & | msg | ) |
Definition at line 40 of file BastionGuard-privacyd.cpp.
References _, log_mutex, and write_log().
Referenced by main(), main(), monitor_loop(), send_device_added(), send_device_removed(), and write_log().
|
static |
Definition at line 38 of file BastionGuard-privacyd.cpp.
Referenced by write_log().
|
static |
Definition at line 37 of file BastionGuard-privacyd.cpp.
Referenced by handle_signal(), handle_signal(), main(), main(), main(), monitor_loop(), running(), signal_handler(), and signal_handler().