ROHC compression/decompression library
feedback_parse.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011,2013,2014 Didier Barvaux
3  * Copyright 2007,2009,2010,2012 Viveris Technologies
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 /**
21  * @file feedback_parse.h
22  * @brief Function to parse ROHC feedback
23  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
24  * @author Didier Barvaux <didier@barvaux.org>
25  */
26 
27 #ifndef ROHC_DECOMP_FEEDBACK_PARSE_H
28 #define ROHC_DECOMP_FEEDBACK_PARSE_H
29 
30 #include <rohc/rohc_buf.h>
31 
32 #include <stdbool.h>
33 #include <stdint.h>
34 #include <stddef.h>
35 
36 
37 bool rohc_packet_is_feedback(const uint8_t byte)
38  __attribute__((warn_unused_result, const));
39 
40 bool rohc_feedback_get_size(const struct rohc_buf rohc_data,
41  size_t *const feedback_hdr_len,
42  size_t *const feedback_data_len)
43  __attribute__((warn_unused_result, nonnull(2, 3)));
44 
45 #endif
46 
bool rohc_feedback_get_size(const struct rohc_buf rohc_data, size_t *const feedback_hdr_len, size_t *const feedback_data_len)
Find out the lengths of the feedback header and data.
Definition: feedback_parse.c:59
A network buffer for the ROHC library.
Definition: rohc_buf.h:104
bool rohc_packet_is_feedback(const uint8_t byte)
Find out whether a ROHC packet is a Feedback packet or not.
Definition: feedback_parse.c:42