MHEG5  15.3.0
include/fs_types.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2013 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 _FS_TYPES_H
00026 #define _FS_TYPES_H
00027 
00028 #include <techtype.h>
00029 
00030 /*---Constant and macro definitions for public use-----------------------------*/
00031 
00032 /*---Enumerations for public use-----------------------------------------------*/
00033 
00034 typedef enum
00035 {
00036    FS_STATUS_OK,
00037    FS_STATUS_PENDING,
00038    FS_STATUS_NONE,
00039    FS_STATUS_ABORT,
00040    FS_STATUS_INVALID,
00041    FS_STATUS_ERROR
00042 } E_FsStatus;
00043 
00044 /*---Global type defs for public use-------------------------------------------*/
00045 
00046 typedef void *FS_HANDLE;
00047 typedef void (*F_DESTROY)( FS_HANDLE fs_handle );
00048 
00049 /* STRUCTURE: S_CONTENT
00050  * Used to return file data after requests to File systems
00051  */
00052 typedef struct s_content
00053 {
00054    U32BIT size;            /* Size of data in bytes */
00055    U8BIT *data;            /* Pointer to data.*/
00056    F_DESTROY destroy;      /* Relevant destroy/destruct/clear function */
00057    FS_HANDLE fs_handle;    /* File System Handle */
00058    void *user_data;        /* User Data */
00059 } S_CONTENT;
00060 
00067 typedef void (*F_FS_CALLBACK)( E_FsStatus result, S_CONTENT *pContent );
00068 
00069 /*---Global Function prototypes for public use---------------------------------*/
00070 
00071 #endif /*_FS_TYPES_H*/
 All Data Structures Files Functions Variables Typedefs Defines