mirror of
https://github.com/godotengine/godot-headers.git
synced 2025-12-31 01:49:36 +03:00
Add get_buffered_amount() to WebRTCDataChannel
This commit is contained in:
13
api.json
13
api.json
@@ -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",
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user