summaryrefslogtreecommitdiff
path: root/src/WebRTCPeer.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 06:53:24 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 06:53:24 +0200
commitfaac4c97e5e3bf897aceaaf94a2e27d94910cd31 (patch)
tree73e73901913a1300402fd32d391e2d74f20d9871 /src/WebRTCPeer.cpp
parent501e09d6d897dfc390c3b1690a30db5de4dad193 (diff)
downloadfork-godot-webrtc-native-faac4c97e5e3bf897aceaaf94a2e27d94910cd31.tar.gz
fork-godot-webrtc-native-faac4c97e5e3bf897aceaaf94a2e27d94910cd31.tar.bz2
fork-godot-webrtc-native-faac4c97e5e3bf897aceaaf94a2e27d94910cd31.zip
Implement missing methods
Diffstat (limited to 'src/WebRTCPeer.cpp')
-rw-r--r--src/WebRTCPeer.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/WebRTCPeer.cpp b/src/WebRTCPeer.cpp
index bc77438..5eada1f 100644
--- a/src/WebRTCPeer.cpp
+++ b/src/WebRTCPeer.cpp
@@ -1,5 +1,41 @@
#include "WebRTCPeer.hpp"
+void WebRTCPeer::set_write_mode(godot_int mode) {
+
+}
+
+godot_int WebRTCPeer::get_write_mode() const {
+ return 0;
+}
+
+bool WebRTCPeer::was_string_packet() const {
+ return false;
+}
+
+godot_int WebRTCPeer::get_connection_state() const {
+ return 0;
+}
+
+godot_error WebRTCPeer::create_offer() {
+ return GODOT_FAILED;
+}
+
+godot_error WebRTCPeer::set_remote_description(const char *type, const char *sdp) {
+ return GODOT_FAILED;
+}
+
+godot_error WebRTCPeer::set_local_description(const char *type, const char *sdp) {
+ return GODOT_FAILED;
+}
+
+godot_error WebRTCPeer::add_ice_candidate(const char *sdpMidName, int sdpMlineIndexName, const char *sdpName) {
+ return GODOT_FAILED;
+}
+
+godot_error WebRTCPeer::poll() {
+ return GODOT_FAILED;
+}
+
godot_error WebRTCPeer::get_packet(const uint8_t **r_buffer, int &r_len) {
printf("Get packet");
r_len = 0;