ROHC compression/decompression library
d_tcp_replicate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Didier Barvaux
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 /**
20  * @file d_tcp_replicate.h
21  * @brief Handle the replicate chain of the TCP decompression profile
22  * @author Didier Barvaux <didier@barvaux.org>
23  */
24 
25 #ifndef ROHC_DECOMP_TCP_REPLICATE_H
26 #define ROHC_DECOMP_TCP_REPLICATE_H
27 
28 #include "rohc_decomp_internals.h"
29 #include "d_tcp_defines.h"
30 
31 #include <stdbool.h>
32 #include <stdint.h>
33 #include <stdlib.h>
34 
35 bool tcp_parse_replicate_chain(const struct rohc_decomp_ctxt *const context,
36  const uint8_t *const rohc_packet,
37  const size_t rohc_length,
38  struct rohc_tcp_extr_bits *const bits,
39  size_t *const parsed_len)
40  __attribute__((warn_unused_result, nonnull(1, 2, 4, 5)));
41 
42 #endif /* ROHC_DECOMP_TCP_REPLICATE_H */
43 
Main definitions for the TCP decompression profile.
Internal structures for ROHC decompression.
bool tcp_parse_replicate_chain(const struct rohc_decomp_ctxt *const context, const uint8_t *const rohc_packet, const size_t rohc_length, struct rohc_tcp_extr_bits *const bits, size_t *const parsed_len)
Parse the replicate chain of the IR-CR packet.
Definition: d_tcp_replicate.c:69
The ROHC decompression context.
Definition: rohc_decomp_internals.h:274
Definition: d_tcp_defines.h:205