1 /**
2  * @file
3  * Shared constants/structs that are private to Compression
4  *
5  * @authors
6  * Copyright (C) 2020 Richard Russon <rich@flatcap.org>
7  *
8  * @copyright
9  * This program is free software: you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License as published by the Free Software
11  * Foundation, either version 2 of the License, or (at your option) any later
12  * version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * this program.  If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef MUTT_COMPRESS_PRIVATE_H
24 #define MUTT_COMPRESS_PRIVATE_H
25 
26 #define COMPRESS_OPS(_name, _min_level, _max_level) \
27   const struct ComprOps compr_##_name##_ops = {     \
28     .name       = #_name,                           \
29     .min_level  = _min_level,                       \
30     .max_level  = _max_level,                       \
31     .open       = compr_##_name##_open,             \
32     .compress   = compr_##_name##_compress,         \
33     .decompress = compr_##_name##_decompress,       \
34     .close      = compr_##_name##_close,            \
35   };
36 
37 #endif /* MUTT_COMPRESS_PRIVATE_H */
38