Add support for reading and writing SPV files.
[pspp] / src / output / spv / spv-legacy-decoder.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 2018 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef OUTPUT_SPV_LEGACY_DECODER_H
18 #define OUTPUT_SPV_LEGACY_DECODER_H 1
19
20 /* SPSS Viewer (SPV) legacy binary decoder.
21
22    Used by spv.h, not useful directly. */
23
24 #include "libpspp/compiler.h"
25
26 struct pivot_table;
27 struct spvdx_visualization;
28 struct spvsx_table_properties;
29 struct spv_data;
30
31 struct spv_legacy_properties;
32
33 void spv_legacy_properties_destroy (struct spv_legacy_properties *);
34
35 char *decode_spvsx_legacy_properties (const struct spvsx_table_properties *,
36                                       struct spv_legacy_properties **)
37   WARN_UNUSED_RESULT;
38
39 char *decode_spvdx_table (const struct spvdx_visualization *,
40                           const struct spv_legacy_properties *,
41                           struct spv_data *,
42                           struct pivot_table **outp)
43   WARN_UNUSED_RESULT;
44
45 #endif /* output/spv/spv-legacy-decoder.h */