DSMCC
15.3.1
|
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 typedef enum 00031 { 00032 FS_STATUS_OK, 00033 FS_STATUS_PENDING, 00034 FS_STATUS_NONE, 00035 FS_STATUS_ABORT, 00036 FS_STATUS_INVALID, 00037 FS_STATUS_ERROR 00038 } E_FsStatus; 00039 00040 typedef void* FS_HANDLE; 00041 typedef void (*F_DESTROY)( FS_HANDLE fs_handle ); 00042 00043 /* STRUCTURE: S_CONTENT 00044 * Used to return file data after requests to File systems 00045 */ 00046 typedef struct s_content 00047 { 00048 U32BIT size; /* Size of data in bytes */ 00049 U8BIT* data; /* Pointer to data.*/ 00050 F_DESTROY destroy; /* Relevant destroy/destruct/clear function */ 00051 FS_HANDLE fs_handle; /* File System Handle */ 00052 void* user_data; /* User Data */ 00053 } S_CONTENT; 00054 00061 typedef void (*F_FS_CALLBACK)( E_FsStatus result, S_CONTENT *pContent ); 00062 00063 #endif /*_FS_TYPES_H*/