summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 05:49:46 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 05:49:46 +0200
commit501e09d6d897dfc390c3b1690a30db5de4dad193 (patch)
tree15c994ec8ae09ccd104d5c94705cd4eeb7f96af9 /src
parent93c5cd4431aa99db2dbabbeee67ef1e0a5149526 (diff)
downloadfork-godot-webrtc-native-501e09d6d897dfc390c3b1690a30db5de4dad193.tar.gz
fork-godot-webrtc-native-501e09d6d897dfc390c3b1690a30db5de4dad193.tar.bz2
fork-godot-webrtc-native-501e09d6d897dfc390c3b1690a30db5de4dad193.zip
Update to reflect new interface
Diffstat (limited to 'src')
-rw-r--r--src/WebRTCPeer.hpp6
-rw-r--r--src/net/WebRTCPeerNative.cpp6
-rw-r--r--src/net/WebRTCPeerNative.hpp12
3 files changed, 12 insertions, 12 deletions
diff --git a/src/WebRTCPeer.hpp b/src/WebRTCPeer.hpp
index 1f4550a..510276a 100644
--- a/src/WebRTCPeer.hpp
+++ b/src/WebRTCPeer.hpp
@@ -19,9 +19,9 @@ public:
godot_int get_connection_state() const;
godot_error create_offer();
- godot_error set_remote_description(godot_string type, godot_string sdp);
- godot_error set_local_description(godot_string type, godot_string sdp);
- godot_error add_ice_candidate(godot_string sdpMidName, int sdpMlineIndexName, godot_string sdpName);
+ godot_error set_remote_description(const char *type, const char *sdp);
+ godot_error set_local_description(const char *type, const char *sdp);
+ godot_error add_ice_candidate(const char *sdpMidName, int sdpMlineIndexName, const char *sdpName);
godot_error poll();
/* WebRTCPeer */
diff --git a/src/net/WebRTCPeerNative.cpp b/src/net/WebRTCPeerNative.cpp
index 62d1040..0e32d61 100644
--- a/src/net/WebRTCPeerNative.cpp
+++ b/src/net/WebRTCPeerNative.cpp
@@ -55,15 +55,15 @@ godot_error create_offer_wp(void *user) {
return ((WebRTCPeerNative *) user)->create_offer();
}
-godot_error set_remote_description_wp(void *user, godot_string type, godot_string sdp) {
+godot_error set_remote_description_wp(void *user, const char *type, const char *sdp) {
return ((WebRTCPeerNative *) user)->set_remote_description(type, sdp);
}
-godot_error set_local_description_wp(void *user, godot_string type, godot_string sdp) {
+godot_error set_local_description_wp(void *user, const char *type, const char *sdp) {
return ((WebRTCPeerNative *) user)->set_local_description(type, sdp);
}
-godot_error add_ice_candidate_wp(void *user, godot_string sdpMidName, int sdpMlineIndexName, godot_string sdpName) {
+godot_error add_ice_candidate_wp(void *user, const char *sdpMidName, int sdpMlineIndexName, const char *sdpName) {
return ((WebRTCPeerNative *) user)->add_ice_candidate(sdpMidName, sdpMlineIndexName, sdpName);
}
diff --git a/src/net/WebRTCPeerNative.hpp b/src/net/WebRTCPeerNative.hpp
index b9ba4e9..30b4536 100644
--- a/src/net/WebRTCPeerNative.hpp
+++ b/src/net/WebRTCPeerNative.hpp
@@ -19,9 +19,9 @@ bool was_string_packet_wp(const void *);
godot_int get_connection_state_wp(const void *);
godot_error create_offer_wp(void *);
-godot_error set_remote_description_wp(void *, godot_string, godot_string);
-godot_error set_local_description_wp(void *, godot_string, godot_string);
-godot_error add_ice_candidate_wp(void *, godot_string, int, godot_string);
+godot_error set_remote_description_wp(void *, const char *, const char *);
+godot_error set_local_description_wp(void *, const char *, const char *);
+godot_error add_ice_candidate_wp(void *, const char *, int, const char *);
godot_error poll_wp(void *);
class WebRTCPeerNative : public godot::WebRTCPeer {
@@ -49,9 +49,9 @@ public:
virtual godot_int get_connection_state() const;
virtual godot_error create_offer() = 0;
- virtual godot_error set_remote_description(godot_string type, godot_string sdp) = 0;
- virtual godot_error set_local_description(godot_string type, godot_string sdp) = 0;
- virtual godot_error add_ice_candidate(godot_string sdpMidName, int sdpMlineIndexName, godot_string sdpName) = 0;
+ virtual godot_error set_remote_description(const char * type, const char * sdp) = 0;
+ virtual godot_error set_local_description(const char * type, const char * sdp) = 0;
+ virtual godot_error add_ice_candidate(const char *sdpMidName, int sdpMlineIndexName, const char *sdpName) = 0;
virtual godot_error poll() = 0;
/* PacketPeer */