gds-render/include/gds-render/command-line.h

77 lines
2.0 KiB
C
Raw Normal View History

2018-07-23 17:00:37 +02:00
/*
* GDSII-Converter
* Copyright (C) 2018 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/>.
*/
2018-07-24 18:47:29 +02:00
/**
2018-12-15 00:04:53 +01:00
* @file command-line.h
2018-07-24 18:47:29 +02:00
* @brief Render according to command line parameters
* @author Mario Hüttel <mario.huettel@gmx.net>
*/
/**
2019-03-30 19:51:56 +01:00
* @addtogroup cmdline
2018-07-24 18:47:29 +02:00
* @{
*/
2018-07-23 17:00:37 +02:00
#ifndef _COMMAND_LINE_H_
#define _COMMAND_LINE_H_
2018-07-23 17:00:37 +02:00
#include <glib.h>
/**
* @brief External renderer paramameters to command line renderer
*/
struct external_renderer_params {
/**
* @brief Path to shared object
*/
char *so_path;
/**
* @brief Command line parameters given
*/
char *cli_params;
};
/**
* @brief Convert GDS according to command line parameters
* @param gds_name Path to GDS File
* @param cell_name Cell name
* @param renderers Renderer ids
* @param output_file_names Output file names
* @param layer_file Layer mapping file
2019-11-15 21:39:33 +01:00
* @param ext_param Settings for external library renderer
* @param tex_standalone Standalone TeX
2019-09-28 22:57:31 +02:00
* @param tex_layers TeX OCR layers
* @param scale Scale value
* @return Error code, 0 if successful
*/
int command_line_convert_gds(const char *gds_name,
2019-09-28 22:57:31 +02:00
const char *cell_name,
char **renderers,
char **output_file_names,
const char *layer_file,
struct external_renderer_params *ext_param,
gboolean tex_standalone,
gboolean tex_layers,
double scale);
2018-07-23 17:00:37 +02:00
#endif /* _COMMAND_LINE_H_ */
2018-07-24 18:47:29 +02:00
/** @} */