24 lines
430 B
Plaintext
24 lines
430 B
Plaintext
%module{Slic3r::XS};
|
|
|
|
#ifdef BOOST_LIBS
|
|
|
|
%{
|
|
#include <myinit.h>
|
|
#include "libslic3r/GCodeSender.hpp"
|
|
%}
|
|
|
|
%name{Slic3r::GCode::Sender} class GCodeSender {
|
|
GCodeSender();
|
|
~GCodeSender();
|
|
|
|
bool connect(std::string port, unsigned int baud_rate);
|
|
void disconnect();
|
|
bool is_connected() const;
|
|
int queue_size() const;
|
|
void send(std::string s);
|
|
void pause_queue();
|
|
void resume_queue();
|
|
};
|
|
|
|
#endif
|