MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mh5hash.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2010 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _MH5_HASH_H
26 #define _MH5_HASH_H
27 
28 /*---includes for this file--------------------------------------------------*/
29 #include "mh5base.h"
30 #include "mh5root.h"
31 /*---Constant and macro definitions for public use---------------------------*/
32 
33 /*---Enumerations for public use---------------------------------------------*/
34 
35 /*---Global type defs for public use-----------------------------------------*/
36 
37 typedef enum
38 {
39  CONTENT_NOT_VERIFIED_NEW,
40  CONTENT_NOT_VERIFIED_SAME,
41  CONTENT_VERIFIED_UNSIGNED,
42  CONTENT_VERIFIED_SIGNED,
43  CONTENT_VERIFICATION_PENDING
44 } MHEG5ContentVerification_t;
45 
46 /*---Global variable declarations for public use-----------------------------*/
47 
48 /*---Global Function prototypes for public use-------------------------------*/
49 
56 void MHEG5SetVerificationCallback(void (*callback)(void));
57 
58 
63 void MHEG5ResetVerification(void);
64 
74 MHEG5ContentVerification_t MHEG5IsContentVerified(U8BIT *url, U8BIT *content,
75  U32BIT length);
76 
83 void MHEG5ResetHashFile(U8BIT *url);
84 
85 #endif /*_MH5_HASH_H*/
Basis MHEG5 data types.
MHEG5ContentVerification_t MHEG5IsContentVerified(U8BIT *url, U8BIT *content, U32BIT length)
Definition: mh5hash.c:184
void MHEG5SetVerificationCallback(void(*callback)(void))
Register a callback to be fired when the state of the verification subsystem changes.
Definition: mh5hash.c:128
Implementation of Root class Description Root class of all MHEG-5 classes. Base class None Subclasses...
void MHEG5ResetHashFile(U8BIT *url)
Reset the state and clear cache of the hashfile associated with a content file.
Definition: mh5hash.c:874
void MHEG5ResetVerification(void)
Reset the entire state of the verification mechanism.
Definition: mh5hash.c:138