MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mh5nvm.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2000 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
46 #ifndef _MH5NVM_H_
47 #define _MH5NVM_H_
48 
49 /*---includes for this file--------------------------------------------------*/
50 #include "mh5base.h"
51 
52 /*---Constant and macro definitions for public use---------------------------*/
53 
54 /*---Enumerations for public use---------------------------------------------*/
55 
56 /*---Global type defs for public use-----------------------------------------*/
57 
58 /*---Global variable declarations for public use-----------------------------*/
59 
60 /*---Global Function prototypes for public use-------------------------------*/
61 
70 MHEG5Bool MHEG5nvmWrite(MHEG5String fn, void *buf, MHEG5Int len);
71 
80 MHEG5Bool MHEG5nvmRead(MHEG5String fn, void **buf, MHEG5Int *len);
81 
87 void MHEG5nvmInitialise( U32BIT nvmSize );
88 
93 void MHEG5nvmReset(void);
94 
100 void MHEG5ExitStore(void);
101 
102 #endif /*_MH5NVM_H*/
Basis MHEG5 data types.
Definition: mh5base.h:82
MHEG5Bool MHEG5nvmWrite(MHEG5String fn, void *buf, MHEG5Int len)
Write a file to the persistent store.
Definition: mh5nvm.c:171
void MHEG5nvmReset(void)
Clear all NVM data from the persistent store.
Definition: mh5nvm.c:380
void MHEG5nvmInitialise(U32BIT nvmSize)
Initialise NVM Storage.
Definition: mh5nvm.c:72
void MHEG5ExitStore(void)
destroy Persistent Storage - only really useful on platform like WINDOWS
MHEG5Bool MHEG5nvmRead(MHEG5String fn, void **buf, MHEG5Int *len)
Read a file from the persistent store.
Definition: mh5nvm.c:109