Fixing C compatiblity for GDNative NET module
Also add net interfaces to gdnative_api.json
This commit is contained in:
parent
61b41d6001
commit
f112f5785b
7 changed files with 49 additions and 13 deletions
|
|
@ -41,14 +41,14 @@ class StreamPeerGDNative : public StreamPeer {
|
|||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
godot_net_stream_peer *interface;
|
||||
const godot_net_stream_peer *interface;
|
||||
|
||||
public:
|
||||
StreamPeerGDNative();
|
||||
~StreamPeerGDNative();
|
||||
|
||||
/* Sets the interface implementation from GDNative */
|
||||
void set_native_stream_peer(godot_net_stream_peer *p_interface);
|
||||
void set_native_stream_peer(const godot_net_stream_peer *p_interface);
|
||||
|
||||
/* Specific to StreamPeer */
|
||||
Error put_data(const uint8_t *p_data, int p_bytes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue