diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-16 14:39:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 14:39:41 +0200 |
commit | d7fc6cde3bb47ea1412ec6c187414979068e7d3a (patch) | |
tree | 191df97ffec9dbdf2836b230fabc074ddea9f82a /src/net/WebRTCPeerConnectionNative.hpp | |
parent | 822e0532c23354c02fcdbdef90dc70236ece6255 (diff) | |
parent | 1009e8bb1c822fbda2ae6d8178508b352cc6a5ff (diff) | |
download | fork-godot-webrtc-native-d7fc6cde3bb47ea1412ec6c187414979068e7d3a.tar.gz fork-godot-webrtc-native-d7fc6cde3bb47ea1412ec6c187414979068e7d3a.tar.bz2 fork-godot-webrtc-native-d7fc6cde3bb47ea1412ec6c187414979068e7d3a.zip |
Merge pull request #61 from Faless/bump/beta1
[Extension] Update to Godot 4.0 beta 1
Diffstat (limited to 'src/net/WebRTCPeerConnectionNative.hpp')
-rw-r--r-- | src/net/WebRTCPeerConnectionNative.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/WebRTCPeerConnectionNative.hpp b/src/net/WebRTCPeerConnectionNative.hpp index 10c1c9e..e8238f4 100644 --- a/src/net/WebRTCPeerConnectionNative.hpp +++ b/src/net/WebRTCPeerConnectionNative.hpp @@ -75,6 +75,21 @@ protected: }; public: + enum GatheringState { + GATHERING_STATE_NEW, + GATHERING_STATE_GATHERING, + GATHERING_STATE_COMPLETE, + }; + + enum SignalingState { + SIGNALING_STATE_STABLE, + SIGNALING_STATE_HAVE_LOCAL_OFFER, + SIGNALING_STATE_HAVE_REMOTE_OFFER, + SIGNALING_STATE_HAVE_LOCAL_PRANSWER, + SIGNALING_STATE_HAVE_REMOTE_PRANSWER, + SIGNALING_STATE_CLOSED, + }; + static void _register_methods(); static const godot_gdnative_ext_net_3_2_api_struct *_net_api; @@ -82,6 +97,8 @@ public: void register_interface(const godot_net_webrtc_peer_connection *interface); virtual ConnectionState _get_connection_state() const = 0; + virtual GatheringState _get_gathering_state() const = 0; + virtual SignalingState _get_signaling_state() const = 0; virtual godot::Error _initialize(const godot::Dictionary &p_config) = 0; virtual godot::Object *_create_data_channel(const godot::String &p_channel, const godot::Dictionary &p_channel_config) = 0; |