From 6cb81543d4049e870ae43619fa1787362706a95c Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 8 Sep 2021 01:00:47 +0200 Subject: [Net] Expose WebRTC classes to extensions. --- modules/webrtc/webrtc_peer_connection.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/webrtc/webrtc_peer_connection.h') diff --git a/modules/webrtc/webrtc_peer_connection.h b/modules/webrtc/webrtc_peer_connection.h index fcfb9ae9ae..e2ef3e55ad 100644 --- a/modules/webrtc/webrtc_peer_connection.h +++ b/modules/webrtc/webrtc_peer_connection.h @@ -47,11 +47,15 @@ public: STATE_CLOSED }; +private: + static StringName default_extension; + protected: static void _bind_methods(); - static WebRTCPeerConnection *(*_create)(); public: + static void set_default_extension(const StringName &p_name); + virtual ConnectionState get_connection_state() const = 0; virtual Error initialize(Dictionary p_config = Dictionary()) = 0; @@ -63,7 +67,6 @@ public: virtual Error poll() = 0; virtual void close() = 0; - static Ref create_ref(); static WebRTCPeerConnection *create(); WebRTCPeerConnection(); -- cgit v1.2.3