%module{Slic3r::XS}; #ifdef BOOST_LIBS %{ #include #include "libslic3r/GCodeSender.hpp" %} %name{Slic3r::GCode::Sender} class GCodeSender { GCodeSender(std::string port, unsigned int baud_rate); ~GCodeSender(); bool is_connected() const; int queue_size() const; void disconnect(); void send(std::string s); }; #endif