diff options
-rw-r--r-- | src/WebRTCPeer.hpp | 6 | ||||
-rw-r--r-- | src/net/WebRTCPeerNative.cpp | 6 | ||||
-rw-r--r-- | src/net/WebRTCPeerNative.hpp | 12 |
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 */ |