plugins: python renderer: Add fork request to python renderer library, so it wont destory the base application
This commit is contained in:
		@@ -55,6 +55,11 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
#define FUNC_DECL(FUNC) FUNC
 | 
					#define FUNC_DECL(FUNC) FUNC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @brief Define for declaring exported variables
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					#define VAR_DECL(VAR) VAR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** @} */
 | 
					/** @} */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* __EXTERNAL_RENDERER_INTERFACES_H__ */
 | 
					#endif /* __EXTERNAL_RENDERER_INTERFACES_H__ */
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										34
									
								
								plugins/python-renderer/src/force-fork.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								plugins/python-renderer/src/force-fork.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * GDSII-Converter Python Plugin
 | 
				
			||||||
 | 
					 * Copyright (C) 2019  Mario Hüttel <mario.huettel@gmx.net>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * This file is part of GDSII-Converter.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * GDSII-Converter is free software: you can redistribute it and/or modify
 | 
				
			||||||
 | 
					 * it under the terms of the GNU General Public License version 2 as
 | 
				
			||||||
 | 
					 * published by the Free Software Foundation.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * GDSII-Converter is distributed in the hope that it will be useful,
 | 
				
			||||||
 | 
					 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
				
			||||||
 | 
					 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
				
			||||||
 | 
					 * GNU General Public License for more details.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * You should have received a copy of the GNU General Public License
 | 
				
			||||||
 | 
					 * along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @file python-renderer/force-fork.c
 | 
				
			||||||
 | 
					 * @author Mario Hüttel <mario.huettel@gmx.net>
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @addtogroup python-plugin
 | 
				
			||||||
 | 
					 * @{
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <gds-render/output-renderers/external-renderer-interfaces.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const int VAR_DECL(EXTERNAL_LIBRARY_FORK_REQUEST) = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** @} */
 | 
				
			||||||
		Reference in New Issue
	
	Block a user