MHEG5  15.3.0
source/core/inc/mh5cookies.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2010 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 _MH5COOKIES_H
00026 #define _MH5COOKIES_H
00027 
00028 
00029 
00030 /*---includes for this file--------------------------------------------------*/
00031 #include "mh5base.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 typedef struct
00039 {
00040    MHEG5String identity;
00041    MHEG5String value;
00042    MHEG5Int expires;
00043    MHEG5Bool secure;
00044 } MHEG5cookie_t;
00045 /*---Global variable declarations for public use-----------------------------*/
00046 
00047 /*---Global Function prototypes for public use-------------------------------*/
00048 
00056 void MHEG5CookieParse(void *data, U32BIT data_len, char *url);
00057 
00067 U8BIT* MHEG5CookieGenerateHeader(U8BIT *url);
00068 
00076 MHEG5Bool MHEG5CookieAdd(MHEG5cookie_t *cookie);
00077 
00086 MHEG5Bool MHEG5CookieRetrieve(MHEG5cookie_t *cookie);
00087 
00092 void MHEG5CookieClearStore(void);
00093 
00100 void MHEG5CookieAckHeader(U8BIT *header);
00101 
00102 
00103 #endif
 All Data Structures Files Functions Variables Typedefs Defines