ROHC compression/decompression library
d_udp.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2012,2013 Didier Barvaux
00003  * Copyright 2007,2008 Thales Alenia Space
00004  * Copyright 2007,2009,2010,2012 Viveris Technologies
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 /**
00022  * @file d_udp.h
00023  * @brief ROHC decompression context for the UDP profile.
00024  * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
00025  * @author Didier Barvaux <didier@barvaux.org>
00026  */
00027 
00028 #ifndef ROHC_DECOMP_UDP_H
00029 #define ROHC_DECOMP_UDP_H
00030 
00031 #include "d_generic.h"
00032 
00033 int udp_parse_static_udp(const struct rohc_decomp_ctxt *const context,
00034                          const unsigned char *packet,
00035                          size_t length,
00036                          struct rohc_extr_bits *const bits)
00037         __attribute__((warn_unused_result, nonnull(1, 2, 4)));
00038 
00039 void udp_update_context(const struct rohc_decomp_ctxt *context,
00040                         const struct rohc_decoded_values decoded)
00041         __attribute__((nonnull(1)));
00042 
00043 #endif
00044