Use lowercase snake_case for flatbuffer field names
Otherwise flatc complains. The .ts identifiers don't change at all.
Change-Id: I361fcd1a6b45c2c90112c623def0346d85617afc
Signed-off-by: Brian Silverman <bsilver16834@gmail.com>
diff --git a/aos/network/web_proxy.cc b/aos/network/web_proxy.cc
index 3806973..94473fb 100644
--- a/aos/network/web_proxy.cc
+++ b/aos/network/web_proxy.cc
@@ -89,7 +89,9 @@
connections_[sock]->OnIce(ice);
break;
}
- default: { break; }
+ default: {
+ break;
+ }
}
}
@@ -415,12 +417,12 @@
if (!ice->has_candidate()) {
return;
}
- uint8_t sdpMLineIndex = ice->sdpMLineIndex();
+ uint8_t sdp_m_line_index = ice->sdp_m_line_index();
struct rawrtc_peer_connection_ice_candidate *ice_candidate = nullptr;
CHECK_RAWRTC(rawrtc_peer_connection_ice_candidate_create(
- &ice_candidate, ice->candidate()->c_str(), ice->sdpMid()->c_str(),
- &sdpMLineIndex, nullptr));
+ &ice_candidate, ice->candidate()->c_str(), ice->sdp_mid()->c_str(),
+ &sdp_m_line_index, nullptr));
rawrtc_peer_connection_add_ice_candidate(connection_.connection(),
ice_candidate);
@@ -457,10 +459,10 @@
WebSocketIce::Builder web_socket_ice_builder(fbb);
web_socket_ice_builder.add_candidate(sdpp_offset);
- web_socket_ice_builder.add_sdpMid(sdp_mid_offset);
+ web_socket_ice_builder.add_sdp_mid(sdp_mid_offset);
if (error == RAWRTC_CODE_SUCCESS) {
- web_socket_ice_builder.add_sdpMLineIndex(media_line_index);
+ web_socket_ice_builder.add_sdp_m_line_index(media_line_index);
}
flatbuffers::Offset<WebSocketIce> ice_offset =
web_socket_ice_builder.Finish();
diff --git a/aos/network/web_proxy.fbs b/aos/network/web_proxy.fbs
index ed72e97..817add1 100644
--- a/aos/network/web_proxy.fbs
+++ b/aos/network/web_proxy.fbs
@@ -25,8 +25,8 @@
// advaced features.
table WebSocketIce {
candidate:string (id: 0);
- sdpMid:string (id: 1);
- sdpMLineIndex:int (id: 2);
+ sdp_mid:string (id: 1);
+ sdp_m_line_index:int (id: 2);
}
union Payload {WebSocketSdp, WebSocketIce}