ROHC compression/decompression library
feedback_parse.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2011,2013,2014 Didier Barvaux
00003  * Copyright 2007,2009,2010,2012 Viveris Technologies
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018  */
00019 
00020 /**
00021  * @file   feedback_parse.h
00022  * @brief  Function to parse ROHC feedback
00023  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
00024  * @author Didier Barvaux <didier@barvaux.org>
00025  */
00026 
00027 #ifndef ROHC_DECOMP_FEEDBACK_PARSE_H
00028 #define ROHC_DECOMP_FEEDBACK_PARSE_H
00029 
00030 #include <rohc/rohc_buf.h>
00031 
00032 #include <stdbool.h>
00033 #include <stdint.h>
00034 #include <stddef.h>
00035 
00036 #include "dllexport.h"
00037 
00038 bool ROHC_EXPORT rohc_packet_is_feedback(const uint8_t byte)
00039         __attribute__((warn_unused_result, pure));
00040 
00041 bool ROHC_EXPORT rohc_feedback_get_size(const struct rohc_buf rohc_data,
00042                                         size_t *const feedback_hdr_len,
00043                                         size_t *const feedback_data_len)
00044         __attribute__((warn_unused_result, nonnull(2, 3)));
00045 
00046 #endif
00047