GDS-Render v1.2.1
external-renderer-interfaces.h
Go to the documentation of this file.
1/*
2 * GDSII-Converter
3 * Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
4 *
5 * This file is part of GDSII-Converter.
6 *
7 * GDSII-Converter is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * GDSII-Converter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __EXTERNAL_RENDERER_INTERFACES_H__
21#define __EXTERNAL_RENDERER_INTERFACES_H__
22
23#ifndef xstr
24
25#define xstr(a) str(a)
26#define str(a) #a
27
28#endif /* xstr */
29
38#define EXPORT_FUNC __attribute__((visibility("default")))
39
48#define EXTERNAL_LIBRARY_RENDER_FUNCTION exported_render_cell_to_file
49
57#define EXTERNAL_LIBRARY_INIT_FUNCTION exported_init
58
65#define EXTERNAL_LIBRARY_FORK_REQUEST exported_fork_request
66
72#define EXPORTED_FUNC_DECL(FUNC) EXPORT_FUNC FUNC
73
76#endif /* __EXTERNAL_RENDERER_INTERFACES_H__ */