mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
feat: add headless display mode
This commit is contained in:
committed by
Cooper Quintin
parent
b16a351727
commit
d3bd8d9dfc
16
daemon/src/display/headless.rs
Normal file
16
daemon/src/display/headless.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use log::info;
|
||||
use tokio::sync::mpsc::Receiver;
|
||||
use tokio::sync::oneshot;
|
||||
use tokio_util::task::TaskTracker;
|
||||
|
||||
use crate::config;
|
||||
use crate::display::DisplayState;
|
||||
|
||||
pub fn update_ui(
|
||||
_task_tracker: &TaskTracker,
|
||||
_config: &config::Config,
|
||||
_ui_shutdown_rx: oneshot::Receiver<()>,
|
||||
_ui_update_rx: Receiver<DisplayState>,
|
||||
) {
|
||||
info!("Headless mode, not spawning UI.");
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
mod generic_framebuffer;
|
||||
|
||||
pub mod orbic;
|
||||
pub mod headless;
|
||||
pub mod tmobile;
|
||||
pub mod tplink;
|
||||
pub mod tplink_framebuffer;
|
||||
|
||||
Reference in New Issue
Block a user