ROHC compression/decompression library
c_uncompressed.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 2 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * This program is distributed in the hope that it will be useful,
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  * GNU General Public License for more details.
00011  *
00012  * You should have received a copy of the GNU General Public License
00013  * along with this program; if not, write to the Free Software
00014  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00015  */
00016 
00024 #ifndef C_UNCOMPRESSED_H
00025 #define C_UNCOMPRESSED_H
00026 
00027 #include "rohc_comp.h"
00028 
00029 
00036 struct sc_uncompressed_context
00037 {
00039         int ir_count;
00041         int normal_count;
00045         int go_back_ir_count;
00046 };
00047 
00048 
00049 /*
00050  * Function prototypes.
00051  */
00052 
00053 void uncompressed_decide_state(struct c_context *context);
00054 
00055 void uncompressed_periodic_down_transition(struct c_context *context);
00056 
00057 void uncompressed_change_mode(struct c_context *c, rohc_mode new_mode);
00058 
00059 void uncompressed_change_state(struct c_context *c, rohc_c_state new_state);
00060 
00061 int uncompressed_code_packet(struct c_context *context,
00062                              const struct ip_packet ip,
00063                              unsigned char *dest,
00064                              int *payload_offset,
00065                              int dest_size);
00066 
00067 int uncompressed_code_IR_packet(struct c_context *context,
00068                                 const struct ip_packet ip,
00069                                 unsigned char *dest,
00070                                 int *payload_offset,
00071                                 int dest_size);
00072 
00073 int uncompressed_code_normal_packet(struct c_context *context,
00074                                     const struct ip_packet ip,
00075                                     unsigned char *dest,
00076                                     int *payload_offset,
00077                                     int dest_size);
00078 
00079 
00080 #endif
00081