MHEG5  15.3.0
source/core/src/mh5tps.c File Reference

True Persistent Storage functions. More...

#include "stdio.h"
#include <assert.h>
#include <string.h>
#include "mh5base.h"
#include "mh5tps.h"
#include "mh5misc.h"
#include "mherrors.h"
#include "techtype.h"
#include "mheg5_nvm.h"

Defines

#define FILESIZE_MAX   100
#define MAX_PATH_LEN   64

Typedefs

typedef S_DvbLocatorpS_DvbLocator

Functions

void MHEG5TpsSetCurrentService (S_DvbLocator *pDvbLoc)
 Set current service for application none.
MHEG5Bool MHEG5TpsRead (MHEG5String fn, void **data, MHEG5Int *len)
 Read a file from the TPS store and pass it back to the application.
MHEG5Bool MHEG5TpsWrite (MHEG5String fn, void *data, MHEG5Int len)
 Write data passed from the application into the TPS stroe.
MHEG5Bool MHEG5GetTpsStatus (void)
 Get the status of the TPS store for the PST resident program. none.
void MHEG5TpsClose (void)
 Close the clear the store and delete the cache none.

Detailed Description

True Persistent Storage functions.

Date:
12/06/2012
Author:
Peter Stanton

Function Documentation

MHEG5Bool MHEG5GetTpsStatus ( void  )

Get the status of the TPS store for the PST resident program. none.

Returns:
MHEG5True if the store is enabled MHEG5False if it has been disabled by the user
void MHEG5TpsClose ( void  )

Close the clear the store and delete the cache none.

Returns:
Nothing
MHEG5Bool MHEG5TpsRead ( MHEG5String  fn,
void **  data,
MHEG5Int *  len 
)

Read a file from the TPS store and pass it back to the application.

Parameters:
fnFilename to be read
dataData read from file
lenSize of data in bytes
Returns:
MHEG5TRUE if file was read successfully, MHEG5FALSE otherwise

Set current service for application none.

Returns:
Nothing
MHEG5Bool MHEG5TpsWrite ( MHEG5String  fn,
void *  data,
MHEG5Int  len 
)

Write data passed from the application into the TPS stroe.

Parameters:
fnFilename to be writen to
dataData to write to the file
lenSize of data in bytes
Returns:
MHEG5TRUE if file was written successfully, MHEG5FALSE otherwise
 All Data Structures Files Functions Variables Typedefs Defines