diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-14 04:41:15 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-03-08 15:11:34 +0100 |
commit | f2799fdbb296fa764384ba085fcb46e19248b09a (patch) | |
tree | 8ab05706e0c067d30b31679b5cfbd95a2fa49f2c /src/net | |
parent | 34fd1f8caa847d75ff7d5c6e3b8619b494608629 (diff) | |
download | fork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.tar.gz fork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.tar.bz2 fork-godot-webrtc-native-f2799fdbb296fa764384ba085fcb46e19248b09a.zip |
Fix name collision, scons file, final touches
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/WebRTCPeerNative.cpp | 2 | ||||
-rw-r--r-- | src/net/WebRTCPeerNative.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/WebRTCPeerNative.cpp b/src/net/WebRTCPeerNative.cpp index d2abcaa..449cca2 100644 --- a/src/net/WebRTCPeerNative.cpp +++ b/src/net/WebRTCPeerNative.cpp @@ -24,7 +24,7 @@ WebRTCPeerNative::~WebRTCPeerNative() { * In this case it forwards calls to our C++ class, but could be plain C, * and you could use void *user for any kind of state struct pointer you have. */ -godot_error get_packet_wp(void *user, const uint8_t **r_buffer, int &r_len) { +godot_error get_packet_wp(void *user, const uint8_t **r_buffer, int *r_len) { return ((WebRTCPeerNative *)user)->get_packet(r_buffer, r_len); } diff --git a/src/net/WebRTCPeerNative.hpp b/src/net/WebRTCPeerNative.hpp index e82f295..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 *); @@ -69,7 +69,7 @@ public: 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; |