mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	 ba1c0b0137
			
		
	
	
		ba1c0b0137
		
	
	
	
	
		
			
			cleanly on Windows & Linux. There is still a work on OSX: The XS module has to be linked without perl.lib and with the following parameters to produce a bundle: -bundle -undefined dynamic_lookup
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			600 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			600 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| %module{Slic3r::XS};
 | |
| 
 | |
| %{
 | |
| #include <xsinit.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();
 | |
|     bool wait_connected(unsigned int timeout = 3);
 | |
|     int queue_size();
 | |
|     void send(std::string s, bool priority = false);
 | |
|     void pause_queue();
 | |
|     void resume_queue();
 | |
|     void purge_queue(bool priority = false);
 | |
|     std::vector<std::string> purge_log();
 | |
|     std::string getT();
 | |
|     std::string getB();
 | |
| };
 |