PrusaSlicer-NonPlainar/xs/xsp/GCodeSender.xsp

21 lines
361 B
Plaintext
Raw Normal View History

%module{Slic3r::XS};
#ifdef BOOST_LIBS
%{
#include <myinit.h>
#include "libslic3r/GCodeSender.hpp"
%}
%name{Slic3r::GCode::Sender} class GCodeSender {
GCodeSender(std::string port, unsigned int baud_rate);
~GCodeSender();
2014-12-27 21:57:20 +00:00
bool is_connected() const;
int queue_size() const;
void disconnect();
void send(std::string s);
};
#endif