summaryrefslogtreecommitdiff
path: root/src/WebRTCPeer.hpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 19:50:31 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 19:50:31 +0200
commita44a5af115871b5be4dcfb05a421046a25ba5d73 (patch)
treeb535e3b78c3bbfcdc8a61982f488630aad7d2af3 /src/WebRTCPeer.hpp
parent169252bf60c4006daedb78a3502d17da401722f6 (diff)
downloadfork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.tar.gz
fork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.tar.bz2
fork-godot-webrtc-native-a44a5af115871b5be4dcfb05a421046a25ba5d73.zip
Add namespace to avoid name collision and crash
Diffstat (limited to 'src/WebRTCPeer.hpp')
-rw-r--r--src/WebRTCPeer.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WebRTCPeer.hpp b/src/WebRTCPeer.hpp
index 52a754b..72560bc 100644
--- a/src/WebRTCPeer.hpp
+++ b/src/WebRTCPeer.hpp
@@ -5,6 +5,8 @@
#include "net/WebRTCPeerNative.hpp"
+namespace godot_webrtc {
+
class WebRTCPeer : public WebRTCPeerNative {
GODOT_CLASS(WebRTCPeer, WebRTCPeerNative);
@@ -30,7 +32,10 @@ public:
virtual godot_int get_available_packet_count() const;
virtual godot_int get_max_packet_size() const;
+ WebRTCPeer();
~WebRTCPeer();
};
+}
+
#endif // WEBRTC_PEER_H