From 134212db03422cde6ef5e26e666047130279b24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 19 Aug 2021 22:24:10 +0200 Subject: [PATCH] Revert "Add get_buffered_amount() to WebRTCDataChannel" This reverts commit ec43f875e5bd0e52c6571efd5e1c8ae412e9b2f2. --- api.json | 13 ------------- net/godot_webrtc.h | 9 +-------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/api.json b/api.json index ef2dbab..8f08d51 100644 --- a/api.json +++ b/api.json @@ -187025,19 +187025,6 @@ "arguments": [ ] }, - { - "name": "get_buffered_amount", - "return_type": "int", - "is_editor": false, - "is_noscript": false, - "is_const": true, - "is_reverse": false, - "is_virtual": false, - "has_varargs": false, - "is_from_script": false, - "arguments": [ - ] - }, { "name": "get_id", "return_type": "int", diff --git a/net/godot_webrtc.h b/net/godot_webrtc.h index df4cf87..25aa72d 100644 --- a/net/godot_webrtc.h +++ b/net/godot_webrtc.h @@ -38,7 +38,7 @@ extern "C" { #endif #define GODOT_NET_WEBRTC_API_MAJOR 3 -#define GODOT_NET_WEBRTC_API_MINOR 4 +#define GODOT_NET_WEBRTC_API_MINOR 2 /* Library Interface (used to set default GDNative WebRTC implementation */ typedef struct { @@ -108,13 +108,6 @@ typedef struct { void *next; /* For extension? */ } godot_net_webrtc_data_channel; -/* Extensions to WebRTCDataChannel */ -typedef struct { - int (*get_buffered_amount)(const void *); - - void *next; /* For extension? */ -} godot_net_webrtc_data_channel_ext; - /* Set the default GDNative library */ godot_error GDAPI godot_net_set_webrtc_library(const godot_net_webrtc_library *); /* Binds a WebRTCPeerConnectionGDNative to the provided interface */