diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-11 14:16:30 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-11 15:34:08 +0200 |
commit | 6e52fce98660dc9eaa832d682bf38e2ea742e5b6 (patch) | |
tree | d3b59859a2dec39c1a43d87b6836e78f127738df /src/net/WebRTCDataChannelNative.hpp | |
parent | a93af67d756e65161b81683c32fa66efd6f47ec6 (diff) | |
download | fork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.tar.gz fork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.tar.bz2 fork-godot-webrtc-native-6e52fce98660dc9eaa832d682bf38e2ea742e5b6.zip |
Update sources to alpha16
Diffstat (limited to 'src/net/WebRTCDataChannelNative.hpp')
-rw-r--r-- | src/net/WebRTCDataChannelNative.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/WebRTCDataChannelNative.hpp b/src/net/WebRTCDataChannelNative.hpp index a8ab697..d00929d 100644 --- a/src/net/WebRTCDataChannelNative.hpp +++ b/src/net/WebRTCDataChannelNative.hpp @@ -112,11 +112,11 @@ public: void _init(); void register_interface(const godot_net_webrtc_data_channel *interface); - virtual void _set_write_mode(int64_t mode) = 0; - virtual int64_t _get_write_mode() const = 0; + virtual void _set_write_mode(WriteMode mode) = 0; + virtual WriteMode _get_write_mode() const = 0; virtual bool _was_string_packet() const = 0; - virtual int64_t _get_ready_state() const = 0; + virtual ChannelState _get_ready_state() const = 0; virtual godot::String _get_label() const = 0; virtual bool _is_ordered() const = 0; virtual int64_t _get_id() const = 0; @@ -126,12 +126,12 @@ public: virtual bool _is_negotiated() const = 0; virtual int64_t _get_buffered_amount() const = 0; - virtual int64_t _poll() = 0; + virtual godot::Error _poll() = 0; virtual void _close() = 0; /* PacketPeer */ - virtual int64_t _get_packet(const uint8_t **r_buffer, int32_t *r_len) = 0; - virtual int64_t _put_packet(const uint8_t *p_buffer, int64_t p_len) = 0; + virtual godot::Error _get_packet(const uint8_t **r_buffer, int32_t *r_len) = 0; + virtual godot::Error _put_packet(const uint8_t *p_buffer, int64_t p_len) = 0; virtual int64_t _get_available_packet_count() const = 0; virtual int64_t _get_max_packet_size() const = 0; |