diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-03-08 15:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-08 15:20:53 +0100 |
commit | 31821b094b1810b829fbb0fa8d217a9692c8816a (patch) | |
tree | 8ab05706e0c067d30b31679b5cfbd95a2fa49f2c /src/net/WebRTCPeerNative.hpp | |
parent | a44a5af115871b5be4dcfb05a421046a25ba5d73 (diff) | |
parent | f2799fdbb296fa764384ba085fcb46e19248b09a (diff) | |
download | godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.tar.gz godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.tar.bz2 godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.zip |
Merge pull request #1 from godotengine/bmakin_import
Import GSoC 2018 work
Diffstat (limited to 'src/net/WebRTCPeerNative.hpp')
-rw-r--r-- | src/net/WebRTCPeerNative.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/WebRTCPeerNative.hpp b/src/net/WebRTCPeerNative.hpp index fe2a8a7..90e08b3 100644 --- a/src/net/WebRTCPeerNative.hpp +++ b/src/net/WebRTCPeerNative.hpp @@ -8,7 +8,7 @@ #include <net/godot_net.h> /* Forward declare interface functions */ -godot_error get_packet_wp(void *, const uint8_t **, int &); +godot_error get_packet_wp(void *, const uint8_t **, int *); godot_error put_packet_wp(void *, const uint8_t *, int); godot_int get_available_packet_count_wp(const void *); godot_int get_max_packet_size_wp(const void *); @@ -29,7 +29,7 @@ class WebRTCPeerNative : public godot::WebRTCPeerGDNative { protected: godot_net_webrtc_peer interface = { - {3, 1}, + { 3, 1 }, this, &get_packet_wp, @@ -63,13 +63,13 @@ public: virtual godot_int get_connection_state() const = 0; virtual godot_error create_offer() = 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 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 */ - virtual godot_error get_packet(const uint8_t **r_buffer, int &r_len) = 0; + virtual godot_error get_packet(const uint8_t **r_buffer, int *r_len) = 0; virtual godot_error put_packet(const uint8_t *p_buffer, int p_len) = 0; virtual godot_int get_available_packet_count() const = 0; virtual godot_int get_max_packet_size() const = 0; |