make proto compatible to c++

This commit is contained in:
open-trade
2022-01-17 16:53:17 +08:00
parent 02cbc0d407
commit 92a1bb04e9
5 changed files with 19 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ use hbb_common::{
bail,
config::{Config, PeerConfig, PeerInfoSerde, CONNECT_TIMEOUT, RELAY_PORT, RENDEZVOUS_TIMEOUT},
log,
message_proto::*,
message_proto::{option_message::BoolOption, *},
protobuf::Message as _,
rendezvous_proto::*,
socket_client,

View File

@@ -4,6 +4,7 @@ use hbb_common::{
config::Config,
fs,
futures::{SinkExt, StreamExt},
message_proto::{option_message::BoolOption, permission_info::Permission},
sleep, timeout,
tokio::{
net::TcpStream,

View File

@@ -7,7 +7,7 @@ use hbb_common::{
allow_err,
config::{self, Config, PeerConfig},
fs, log,
message_proto::*,
message_proto::{permission_info::Permission, *},
protobuf::Message as _,
rendezvous_proto::ConnType,
sleep,
@@ -1705,6 +1705,7 @@ impl Remote {
self.handler
.call("setPermission", &make_args!("audio", p.enabled));
}
_ => {}
}
}
Some(misc::Union::switch_display(s)) => {