ROHC compression/decompression library
decomp_crc.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012,2013,2014,2015 Didier Barvaux
3  * Copyright 2013,2014 Viveris Technologies
4  * Copyright 2012 WBX
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /**
22  * @file decomp_crc.h
23  * @brief ROHC decompression checks for CRC
24  * @author FWX <rohc_team@dialine.fr>
25  * @author Didier Barvaux <didier@barvaux.org>
26  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
27  */
28 
29 #ifndef ROHC_DECOMP_SCHEMES_CRC_H
30 #define ROHC_DECOMP_SCHEMES_CRC_H
31 
32 #include "rohc_decomp_internals.h"
33 
34 #include <stdbool.h>
35 
36 
37 bool rohc_decomp_check_uncomp_crc(const struct rohc_decomp *const decomp,
38  const struct rohc_decomp_ctxt *const context,
39  struct rohc_buf *const uncomp_hdrs,
40  const rohc_crc_type_t crc_type,
41  const uint8_t crc_packet)
42  __attribute__((warn_unused_result, nonnull(1, 2, 3)));
43 
44 #endif
45 
The ROHC decompressor.
Definition: rohc_decomp_internals.h:142
bool rohc_decomp_check_uncomp_crc(const struct rohc_decomp *const decomp, const struct rohc_decomp_ctxt *const context, struct rohc_buf *const uncomp_hdrs, const rohc_crc_type_t crc_type, const uint8_t crc_packet)
Check whether the CRC on uncompressed header is correct or not.
Definition: decomp_crc.c:42
Internal structures for ROHC decompression.
rohc_crc_type_t
Definition: crc.h:58
A network buffer for the ROHC library.
Definition: rohc_buf.h:102
The ROHC decompression context.
Definition: rohc_decomp_internals.h:274