ROHC compression/decompression library
|
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 DECODE_H 00025 #define DECODE_H 00026 00027 #include "rohc.h" 00028 00029 00031 #define D_SEGMENT (0xfe >> 1) 00032 00033 #define D_PADDING 0xe0 00034 00036 #define D_FEEDBACK (0xf0 >> 3) 00037 00038 #define D_IR_PACKET (0xfc >> 1) 00039 00040 #define D_IR_DYN_PACKET 0xf8 00041 00044 #define D_ADD_CID 0xe 00045 00046 00047 /* 00048 * Function prototypes. 00049 */ 00050 00051 int d_is_segment(const unsigned char *); 00052 int d_is_padding(const unsigned char *); 00053 00054 int d_is_feedback(const unsigned char *); 00055 int d_feedback_size(const unsigned char *); 00056 int d_feedback_headersize(const unsigned char *); 00057 00058 int d_is_ir(const unsigned char *); 00059 int d_is_irdyn(const unsigned char *); 00060 00061 int d_is_add_cid(const unsigned char *); 00062 int d_decode_add_cid(const unsigned char *); 00063 00064 00065 #endif 00066