feat: add serval commands

This commit is contained in:
GyDi
2021-12-19 23:56:16 +08:00
parent 0d8114c9f4
commit 13ceb1e445
5 changed files with 122 additions and 10 deletions

View File

@@ -1,9 +1,13 @@
use std::sync::{Arc, Mutex};
use super::emit::ClashInfoPayload;
use crate::config::VergeConfig;
#[derive(Default)]
pub struct ClashInfoState(pub Arc<Mutex<ClashInfoPayload>>);
#[derive(Default)]
pub struct ProfileLock(pub Mutex<bool>);
#[derive(Default)]
pub struct VergeConfLock(pub Arc<Mutex<VergeConfig>>);