summaryrefslogtreecommitdiff
path: root/src/GodotDataChannelObserver.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-14 04:41:15 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-03-08 15:11:34 +0100
commitf2799fdbb296fa764384ba085fcb46e19248b09a (patch)
tree8ab05706e0c067d30b31679b5cfbd95a2fa49f2c /src/GodotDataChannelObserver.cpp
parent34fd1f8caa847d75ff7d5c6e3b8619b494608629 (diff)
downloadfork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.tar.gz
fork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.tar.bz2
fork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.zip
Fix name collision, scons file, final touches
Diffstat (limited to 'src/GodotDataChannelObserver.cpp')
-rw-r--r--src/GodotDataChannelObserver.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GodotDataChannelObserver.cpp b/src/GodotDataChannelObserver.cpp
index 081c868..7a6cf96 100644
--- a/src/GodotDataChannelObserver.cpp
+++ b/src/GodotDataChannelObserver.cpp
@@ -1,12 +1,12 @@
-#include "WebRTCPeer.hpp"
+#include "WebRTCLibPeer.hpp"
using namespace godot_webrtc;
-WebRTCPeer::GodotDCO::GodotDCO(WebRTCPeer *parent) {
+WebRTCLibPeer::GodotDCO::GodotDCO(WebRTCLibPeer *parent) {
this->parent = parent;
}
-void WebRTCPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) {
+void WebRTCLibPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) {
const uint8_t *data = buffer.data.data<uint8_t>();
uint8_t *memory_controlled_buffer = new uint8_t[buffer.data.size()];
@@ -14,6 +14,6 @@ void WebRTCPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) {
parent->queue_packet(memory_controlled_buffer, buffer.data.size());
};
-void WebRTCPeer::GodotDCO::OnStateChange(){};
+void WebRTCLibPeer::GodotDCO::OnStateChange(){};
-void WebRTCPeer::GodotDCO::OnBufferedAmountChange(uint64_t previous_amount){};
+void WebRTCLibPeer::GodotDCO::OnBufferedAmountChange(uint64_t previous_amount){};