diag_device: accept rayhunter::Device arg

Move daemon's config::Device to lib and toggle the extra tplink ioctl
based on Device::Tplink rather than passing a boolean.
This commit is contained in:
oopsbagel
2025-07-17 15:41:20 -07:00
committed by Will Greenberg
parent e239653a44
commit 29c944af45
4 changed files with 38 additions and 36 deletions

View File

@@ -1,3 +1,5 @@
use serde::{Deserialize, Serialize};
pub mod analysis;
pub mod diag;
pub mod gsmtap;
@@ -14,3 +16,12 @@ pub mod diag_device;
// re-export telcom_parser, since we use its types in our API
pub use telcom_parser;
#[derive(PartialEq, Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum Device {
Orbic,
Tplink,
Tmobile,
Wingtech,
}