summaryrefslogtreecommitdiff
path: root/src/WebRTCPeer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebRTCPeer.hpp')
-rw-r--r--src/WebRTCPeer.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/WebRTCPeer.hpp b/src/WebRTCPeer.hpp
deleted file mode 100644
index 72560bc..0000000
--- a/src/WebRTCPeer.hpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef WEBRTC_PEER_H
-#define WEBRTC_PEER_H
-
-#include <Godot.hpp>
-
-#include "net/WebRTCPeerNative.hpp"
-
-namespace godot_webrtc {
-
-class WebRTCPeer : public WebRTCPeerNative {
- GODOT_CLASS(WebRTCPeer, WebRTCPeerNative);
-
-public:
- static void _register_methods();
-
- void _init();
-
- void set_write_mode(godot_int mode);
- godot_int get_write_mode() const;
- bool was_string_packet() const;
- godot_int get_connection_state() const;
-
- godot_error create_offer();
- godot_error set_remote_description(const char *type, const char *sdp);
- godot_error set_local_description(const char *type, const char *sdp);
- godot_error add_ice_candidate(const char *sdpMidName, int sdpMlineIndexName, const char *sdpName);
- godot_error poll();
-
- /* WebRTCPeer */
- virtual godot_error get_packet(const uint8_t **r_buffer, int &r_len);
- virtual godot_error put_packet(const uint8_t *p_buffer, int p_len);
- virtual godot_int get_available_packet_count() const;
- virtual godot_int get_max_packet_size() const;
-
- WebRTCPeer();
- ~WebRTCPeer();
-};
-
-}
-
-#endif // WEBRTC_PEER_H