mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 22:30:40 +01:00
Use proper u16 type preference
This commit is contained in:
parent
fec996003b
commit
8ee5fc9619
2 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ RUSTEXPORT void Rust_InjectableNetwork_AddInterface(
|
||||||
const char* name_borrowed,
|
const char* name_borrowed,
|
||||||
rtc::AdapterType type,
|
rtc::AdapterType type,
|
||||||
Ip ip,
|
Ip ip,
|
||||||
int preference);
|
uint16_t preference);
|
||||||
|
|
||||||
RUSTEXPORT void Rust_InjectableNetwork_RemoveInterface(
|
RUSTEXPORT void Rust_InjectableNetwork_RemoveInterface(
|
||||||
InjectableNetwork* network_borrowed,
|
InjectableNetwork* network_borrowed,
|
||||||
|
|
|
@ -158,7 +158,7 @@ class InjectableNetworkImpl : public InjectableNetwork, public rtc::NetworkManag
|
||||||
// type Affects Candidate network cost and other ICE behavior
|
// type Affects Candidate network cost and other ICE behavior
|
||||||
// preference affects ICE candidate priorities higher is more preferred
|
// preference affects ICE candidate priorities higher is more preferred
|
||||||
void AddInterface(
|
void AddInterface(
|
||||||
const char* name, rtc::AdapterType type, Ip ip, int preference) override {
|
const char* name, rtc::AdapterType type, Ip ip, uint16_t preference) override {
|
||||||
RTC_LOG(LS_INFO) << "InjectableNetworkImpl::AddInterface() name: " << name;
|
RTC_LOG(LS_INFO) << "InjectableNetworkImpl::AddInterface() name: " << name;
|
||||||
// We need to access interface_by_name_ and SignalNetworksChanged on the network_thread_.
|
// We need to access interface_by_name_ and SignalNetworksChanged on the network_thread_.
|
||||||
// Make sure to copy the name first!
|
// Make sure to copy the name first!
|
||||||
|
@ -361,7 +361,7 @@ RUSTEXPORT void Rust_InjectableNetwork_AddInterface(
|
||||||
const char* name_borrowed,
|
const char* name_borrowed,
|
||||||
rtc::AdapterType type,
|
rtc::AdapterType type,
|
||||||
Ip ip,
|
Ip ip,
|
||||||
int preference) {
|
uint16_t preference) {
|
||||||
network_borrowed->AddInterface(name_borrowed, type, ip, preference);
|
network_borrowed->AddInterface(name_borrowed, type, ip, preference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue