diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-11 18:26:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 18:26:08 +0200 |
commit | 822e0532c23354c02fcdbdef90dc70236ece6255 (patch) | |
tree | 5eebac3b7ac82500601084e883086139bc29b01b /src/WebRTCLibDataChannel.hpp | |
parent | 2ad1bf171653c3fb72d8f987b403ab65c9ad6a46 (diff) | |
parent | d8cbd14a28d8c3c526c8ba1759b4052cbfead2c9 (diff) | |
download | fork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.tar.gz fork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.tar.bz2 fork-godot-webrtc-native-822e0532c23354c02fcdbdef90dc70236ece6255.zip |
Merge pull request #60 from Faless/bump/alpha16
Update to Godot alpha16
Diffstat (limited to 'src/WebRTCLibDataChannel.hpp')
-rw-r--r-- | src/WebRTCLibDataChannel.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/WebRTCLibDataChannel.hpp b/src/WebRTCLibDataChannel.hpp index 05f1ceb..758e018 100644 --- a/src/WebRTCLibDataChannel.hpp +++ b/src/WebRTCLibDataChannel.hpp @@ -40,6 +40,7 @@ #define GDCLASS(arg1, arg2) GODOT_CLASS(arg1, arg2) #endif #else +#include <godot_cpp/classes/global_constants_binds.hpp> #include <godot_cpp/classes/web_rtc_data_channel_extension.hpp> #endif @@ -75,20 +76,20 @@ public: static WebRTCLibDataChannel *new_data_channel(std::shared_ptr<rtc::DataChannel> p_channel, bool p_negotiated); /* PacketPeer */ - virtual int64_t _get_packet(const uint8_t **r_buffer, int32_t *r_len) override; - virtual int64_t _put_packet(const uint8_t *p_buffer, int64_t p_len) override; + virtual godot::Error _get_packet(const uint8_t **r_buffer, int32_t *r_len) override; + virtual godot::Error _put_packet(const uint8_t *p_buffer, int64_t p_len) override; virtual int64_t _get_available_packet_count() const override; virtual int64_t _get_max_packet_size() const override; /* WebRTCDataChannel */ - int64_t _poll() override; + godot::Error _poll() override; void _close() override; - void _set_write_mode(int64_t p_mode) override; - int64_t _get_write_mode() const override; + void _set_write_mode(WriteMode p_mode) override; + WriteMode _get_write_mode() const override; bool _was_string_packet() const override; - int64_t _get_ready_state() const override; + ChannelState _get_ready_state() const override; godot::String _get_label() const override; bool _is_ordered() const override; int64_t _get_id() const override; |