MHEG5
15.3.0
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2012 Ocean Blue Software Ltd 00004 * 00005 * This file is part of a DTVKit Software Component 00006 * You are permitted to copy, modify or distribute this file subject to the terms 00007 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00008 * 00009 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00010 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00011 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00012 * 00013 * If you or your organisation is not a member of DTVKit then you have access 00014 * to this source code outside of the terms of the licence agreement 00015 * and you are expected to delete this and any associated files immediately. 00016 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00017 *******************************************************************************/ 00025 #ifndef _HTTP_HEADER_H 00026 #define _HTTP_HEADER_H 00027 00028 /*---includes for this file--------------------------------------------------*/ 00029 00030 #include "techtype.h" 00031 #include "glue_ulong.h" 00032 00033 /*---Constant and macro definitions for public use---------------------------*/ 00034 00035 /*---Enumerations for public use---------------------------------------------*/ 00036 00037 /*---Global type defs for public use-----------------------------------------*/ 00038 00039 typedef enum 00040 { 00041 HTTP_FIELD_CONTENT_LENGTH, 00042 HTTP_FIELD_CONTENT_RANGE, 00043 HTTP_FIELD_CONTENT_TYPE, 00044 HTTP_FIELD_X_KEYS, 00045 HTTP_FIELD_X_KEY_LOCATION, 00046 HTTP_FIELD_X_BYTES_PER_SECOND, 00047 HTTP_FIELD_UNKNOWN 00048 } E_HTTP_FIELD; 00049 00050 00051 /*---Global variable declarations for public use-----------------------------*/ 00052 00053 /*---Global Function prototypes for public use-------------------------------*/ 00054 00062 U8BIT* httpHdrParseFieldName(U8BIT *data, U32BIT len, E_HTTP_FIELD *field); 00063 00064 00071 U64BIT httpHdrParseContentLength(U8BIT *data, U32BIT len); 00072 00079 U64BIT httpHdrParseContentRange(U8BIT *data, U32BIT len); 00080 00081 #endif /*_HTTP_HEADER_H*/