1 /*****************************************************************************/
2 /* LibreDWG - free implementation of the DWG file format */
3 /* */
4 /* Copyright (C) 2018-2019 Free Software Foundation, Inc. */
5 /* */
6 /* This library is free software, licensed under the terms of the GNU */
7 /* General Public License as published by the Free Software Foundation, */
8 /* either version 3 of the License, or (at your option) any later version. */
9 /* You should have received a copy of the GNU General Public License */
10 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
11 /*****************************************************************************/
12
13 /*
14 * in_json.h: read json to dwg (draft, WIP)
15 * written by Reini Urban
16 */
17
18 #ifndef IN_JSON_H
19 #define IN_JSON_H
20
21 #include "dwg.h"
22 #include "bits.h"
23 #include "encode.h"
24
25 #ifdef IN_DXF_H
26 # error in_dxf.h must be included after in_json.h because of FORMAT_BD
27 #endif
28
29 EXPORT int dwg_read_json (Bit_Chain *restrict dat,
30 Dwg_Data *restrict dwg) __nonnull_all;
31 // TODO needed? See [GH #136]
32 // void dwg_injson_object (Bit_Chain *restrict dat, Dwg_Object *restrict obj);
33
34 #endif