ROHC compression/decompression library
c_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 c_tcp_replicate.h
21  * @brief Handle the replicate chain of the TCP compression profile
22  * @author Didier Barvaux <didier@barvaux.org>
23  */
24 
25 #ifndef ROHC_COMP_TCP_REPLICATE_H
26 #define ROHC_COMP_TCP_REPLICATE_H
27 
28 #include "rohc_comp_internals.h"
29 #include "rohc_buf.h"
30 #include "c_tcp_defines.h"
31 
32 #include <stdint.h>
33 #include <stdlib.h>
34 
35 int tcp_code_replicate_chain(struct rohc_comp_ctxt *const context,
36  const struct rohc_pkt_hdrs *const uncomp_pkt_hdrs,
37  struct tcp_tmp_variables *const tmp,
38  uint8_t *const rohc_pkt,
39  const size_t rohc_pkt_max_len)
40  __attribute__((warn_unused_result, nonnull(1, 2, 3, 4)));
41 
42 #endif /* ROHC_COMP_TCP_REPLICATE_H */
43 
Define a network buffer for the ROHC library.
Define the TCP-specific temporary variables in the profile compression context.
Definition: c_tcp_defines.h:47
Internal structures for ROHC compression.
The ROHC compression context.
Definition: rohc_comp_internals.h:278
bool nonnull(1)))
The information collected about the packet headers.
Definition: uncomp_pkt_hdrs.h:102
Main definitions for the TCP compression profile.
int tcp_code_replicate_chain(struct rohc_comp_ctxt *const context, const struct rohc_pkt_hdrs *const uncomp_pkt_hdrs, struct tcp_tmp_variables *const tmp, uint8_t *const rohc_pkt, const size_t rohc_pkt_max_len)
Code the replicate chain of an IR packet.
Definition: c_tcp_replicate.c:75