2020-07-11 12:45:21 +02:00
|
|
|
#include "terminal.h"
|
2021-07-02 19:27:34 +02:00
|
|
|
|
|
|
|
#if !defined(__EMSCRIPTEN__) && !defined(__WIN32)
|
|
|
|
#include "libuv_utils.h"
|
|
|
|
#include "node_pty/unix/pty.h"
|
|
|
|
#include "pipe.h"
|
2020-11-05 09:42:00 +01:00
|
|
|
#endif
|
2020-07-11 12:45:21 +02:00
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
|
|
|
|
godot::Godot::gdnative_init(o);
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT
|
|
|
|
godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
|
|
|
|
godot::Godot::gdnative_terminate(o);
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|
|
|
|
|
2021-06-06 14:58:50 +02:00
|
|
|
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
|
|
|
godot::Godot::nativescript_init(handle);
|
|
|
|
godot::register_tool_class<godot::Terminal>();
|
2021-07-07 16:26:48 +02:00
|
|
|
#if !defined(_PTY_DISABLED)
|
2021-07-02 19:27:34 +02:00
|
|
|
godot::register_tool_class<godot::Pipe>();
|
|
|
|
godot::register_tool_class<godot::LibuvUtils>();
|
2021-07-07 16:26:48 +02:00
|
|
|
#if defined(__unix__)
|
2021-07-02 19:27:34 +02:00
|
|
|
godot::register_tool_class<godot::PTYUnix>();
|
2020-11-05 09:42:00 +01:00
|
|
|
#endif
|
2021-07-07 16:26:48 +02:00
|
|
|
#endif
|
2020-07-11 12:45:21 +02:00
|
|
|
}
|