Fixing C compatiblity for GDNative NET module

Also add net interfaces to gdnative_api.json
This commit is contained in:
Fabio Alessandrelli 2019-02-24 15:08:38 +01:00
parent 61b41d6001
commit f112f5785b
7 changed files with 49 additions and 13 deletions

View file

@ -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);