diff options
author | David Snopek <dsnopek@gmail.com> | 2021-07-20 11:54:25 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2021-07-21 10:48:09 -0500 |
commit | 3bdf6cdc1320dfd7ac0f1704976a633ef3c911d8 (patch) | |
tree | 1216800fdd5f0ea965433f70b8df8c6a5d37a498 /src/net/WebRTCDataChannelNative.cpp | |
parent | 072ba5c1d09359058aab20cb8cdfdf4a4546e574 (diff) | |
download | fork-godot-webrtc-native-3bdf6cdc1320dfd7ac0f1704976a633ef3c911d8.tar.gz fork-godot-webrtc-native-3bdf6cdc1320dfd7ac0f1704976a633ef3c911d8.tar.bz2 fork-godot-webrtc-native-3bdf6cdc1320dfd7ac0f1704976a633ef3c911d8.zip |
Add get_buffered_amount() to WebRTCDataChannel
Diffstat (limited to 'src/net/WebRTCDataChannelNative.cpp')
-rw-r--r-- | src/net/WebRTCDataChannelNative.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/WebRTCDataChannelNative.cpp b/src/net/WebRTCDataChannelNative.cpp index 86d0afa..4e6b114 100644 --- a/src/net/WebRTCDataChannelNative.cpp +++ b/src/net/WebRTCDataChannelNative.cpp @@ -113,6 +113,10 @@ bool is_negotiated_wdc(const void *user) { return ((WebRTCDataChannelNative *)user)->is_negotiated(); } +int get_buffered_amount_wdc(const void *user) { + return ((WebRTCDataChannelNative *)user)->get_buffered_amount(); +} + godot_error poll_wdc(void *user) { return ((WebRTCDataChannelNative *)user)->poll(); } |