This reverts commit bd0a33e467.
This commit is contained in:
parent
f13ef48cec
commit
fe4094777f
6 changed files with 17 additions and 161 deletions
|
|
@ -19,7 +19,6 @@ use hbb_common::allow_err;
|
|||
use hbb_common::{
|
||||
config::{self, LocalConfig, PeerConfig, PeerInfoSerde},
|
||||
fs, lazy_static, log,
|
||||
message_proto::Hash,
|
||||
rendezvous_proto::ConnType,
|
||||
ResultType,
|
||||
};
|
||||
|
|
@ -2343,25 +2342,6 @@ pub fn main_audio_support_loopback() -> SyncReturn<bool> {
|
|||
SyncReturn(is_surpport)
|
||||
}
|
||||
|
||||
pub fn get_os_distro_info() -> SyncReturn<String> {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let distro = &hbb_common::platform::linux::DISTRO;
|
||||
SyncReturn(
|
||||
serde_json::to_string(&HashMap::from([
|
||||
("name", distro.name.clone()),
|
||||
("id", distro.id.clone()),
|
||||
("version_id", distro.version_id.clone()),
|
||||
]))
|
||||
.unwrap_or_default(),
|
||||
)
|
||||
}
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
{
|
||||
SyncReturn("".to_owned())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
pub mod server_side {
|
||||
use hbb_common::{config, log};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue