2018-05-22 16:18:28 +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 14:42:28 +02:00
|
|
|
/**
|
|
|
|
* @file gds_parser.h
|
|
|
|
* @brief Header file for the GDS-Parser
|
|
|
|
* @author Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup GDS-Parser
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2018-05-22 16:18:28 +02:00
|
|
|
#ifndef __GDSPARSE_H__
|
|
|
|
#define __GDSPARSE_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include "gds-types.h"
|
|
|
|
|
2018-07-24 17:45:16 +02:00
|
|
|
#define GDS_PRINT_DEBUG_INFOS (0) /**< @brief 1: Print infos, 0: Don't print */
|
|
|
|
|
2018-05-22 16:18:28 +02:00
|
|
|
int parse_gds_from_file(const char *filename, GList **library_array);
|
2018-07-24 14:42:28 +02:00
|
|
|
/**
|
|
|
|
* @brief Deletes all libraries including cells, references etc.
|
|
|
|
* @param Pointer to a list of #gds_library. Is set to NULL after completion.
|
|
|
|
* @return 0
|
|
|
|
*/
|
2018-05-22 16:18:28 +02:00
|
|
|
int clear_lib_list(GList **library_list);
|
|
|
|
|
2018-07-24 14:42:28 +02:00
|
|
|
/** @} */
|
|
|
|
|
2018-05-22 16:18:28 +02:00
|
|
|
#endif /* __GDSPARSE_H__ */
|