ROHC compression/decompression library
|
00001 /* 00002 * Copyright 2012,2013 Didier Barvaux 00003 * Copyright 2007,2008 Thales Alenia Space 00004 * Copyright 2007,2009,2010,2014 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 c_ip.h 00023 * @brief ROHC compression context for the IP-only profile. 00024 * @author Didier Barvaux <didier.barvaux@toulouse.viveris.com> 00025 */ 00026 00027 #ifndef ROHC_COMP_IP_H 00028 #define ROHC_COMP_IP_H 00029 00030 #include "c_generic.h" 00031 00032 /* 00033 * Public function prototypes. 00034 */ 00035 00036 bool c_ip_check_context(const struct rohc_comp_ctxt *const context, 00037 const struct net_pkt *const packet) 00038 __attribute__((warn_unused_result, nonnull(1, 2))); 00039 00040 rohc_packet_t c_ip_decide_FO_packet(const struct rohc_comp_ctxt *context); 00041 rohc_packet_t c_ip_decide_SO_packet(const struct rohc_comp_ctxt *context); 00042 00043 uint32_t c_ip_get_next_sn(const struct rohc_comp_ctxt *const context, 00044 const struct net_pkt *const uncomp_pkt) 00045 __attribute__((warn_unused_result, nonnull(1, 2))); 00046 00047 int c_ip_code_ir_remainder(const struct rohc_comp_ctxt *const context, 00048 unsigned char *const dest, 00049 const size_t dest_max_len, 00050 const size_t counter) 00051 __attribute__((warn_unused_result, nonnull(1, 2))); 00052 00053 #endif 00054