Add get_buffered_amount() to WebRTCDataChannel

This commit is contained in:
David Snopek
2021-07-21 08:17:08 -05:00
parent bd863357de
commit ec43f875e5
2 changed files with 21 additions and 1 deletions

View File

@@ -187025,6 +187025,19 @@
"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",

View File

@@ -38,7 +38,7 @@ extern "C" {
#endif
#define GODOT_NET_WEBRTC_API_MAJOR 3
#define GODOT_NET_WEBRTC_API_MINOR 2
#define GODOT_NET_WEBRTC_API_MINOR 4
/* Library Interface (used to set default GDNative WebRTC implementation */
typedef struct {
@@ -108,6 +108,13 @@ 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 */