⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fx_fil.h

📁 ZORAN 962/966 SOURCE CODE,DVD chip
💻 H
字号:
/**************************************************************************/ 
/*                                                                        */ 
/*            Copyright (c) 1996-2002 by Express Logic Inc.               */ 
/*                                                                        */ 
/*  This software is copyrighted by and is the sole property of Express   */ 
/*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
/*  in the software remain the property of Express Logic, Inc.  This      */ 
/*  software may only be used in accordance with the corresponding        */ 
/*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
/*  distribution, or disclosure of this software is expressly forbidden.  */ 
/*                                                                        */
/*  This Copyright notice may not be removed or modified without prior    */ 
/*  written consent of Express Logic, Inc.                                */ 
/*                                                                        */ 
/*  Express Logic, Inc. reserves the right to modify this software        */ 
/*  without notice.                                                       */ 
/*                                                                        */ 
/*  Express Logic, Inc.                     info@expresslogic.com         */
/*  11423 West Bernardo Court               http://www.expresslogic.com   */
/*  San Diego, CA  92127                                                  */
/*                                                                        */
/**************************************************************************/


/**************************************************************************/
/**************************************************************************/
/**                                                                       */ 
/** FileX Component                                                       */
/**                                                                       */
/**   File (FIL)                                                          */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/


/**************************************************************************/ 
/*                                                                        */ 
/*  COMPONENT DEFINITION                                   RELEASE        */ 
/*                                                                        */ 
/*    fx_fil.h                                            PORTABLE C      */ 
/*                                                           3.0          */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This file defines the FileX File component constants, data          */ 
/*    definitions, and external references.  It is assumed that fx_api.h  */ 
/*    (and fx_port.h) have already been included.                         */ 
/*                                                                        */ 
/*  RELEASE HISTORY                                                       */ 
/*                                                                        */ 
/*    DATE              NAME                      DESCRIPTION             */ 
/*                                                                        */ 
/*  01-01-1999     William E. Lamie         Initial Version 1.0           */ 
/*  03-01-2000     William E. Lamie         Modified comment(s) and added */ 
/*                                            prototype for file close,   */ 
/*                                            resulting in version 1.0b.  */ 
/*  01-28-2001     William E. Lamie         Modified comment(s) and added */ 
/*                                            error checking function     */ 
/*                                            prototypes, resulting in    */ 
/*                                            version 2.0                 */ 
/*  03-01-2002     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0.   */ 
/*                                                                        */ 
/**************************************************************************/ 

#ifndef  FX_FIL
#define  FX_FIL


/* Define the external File component function prototypes.  */
#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT  _fx_file_create(FX_MEDIA *media_ptr, WCHAR *file_name, ULONG *o_entry_offset);
#else
UINT  _fx_file_create(FX_MEDIA *media_ptr, WCHAR *file_name);
#endif 

UINT  _fx_file_write(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG size);
UINT        _fx_file_close(FX_FILE *file_ptr);
//#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
//UINT  _fx_file_open(FX_MEDIA *media_ptr, FX_FILE *file_ptr, WCHAR *file_name, UINT open_type, ULONG entry_offset);
//#else
UINT  _fx_file_open(FX_MEDIA *media_ptr, FX_FILE *file_ptr, WCHAR *file_name, UINT open_type);
//#endif 
UINT        _fx_file_read(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG request_size, ULONG *actual_size);
UINT        _fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset);
#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT _fx_file_open_by_addr(FX_MEDIA *media_ptr, FX_FILE * file_ptr, ULONG dwStartCluster, UINT32 cbFileSize, ULONG entry_offset, UINT openMode); 
#else
UINT _fx_file_open_by_addr(FX_MEDIA *media_ptr, FX_FILE * file_ptr, ULONG dwStartCluster, UINT32 cbFileSize, UINT openMode); 
#endif

#ifdef FILEX_ENABLE_WRITE

#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT  _fx_file_rename(FX_MEDIA *media_ptr, WCHAR *old_file_name, WCHAR *new_file_name, ULONG entry_offset);
#else
UINT  _fx_file_rename(FX_MEDIA *media_ptr, WCHAR *old_file_name, WCHAR *new_file_name);
#endif

#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT  _fx_file_delete(FX_MEDIA *media_ptr, WCHAR *file_name, ULONG entry_offset);
#else
UINT  _fx_file_delete(FX_MEDIA *media_ptr, WCHAR *file_name);
#endif

#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT  _fx_file_attributes_read(FX_MEDIA *media_ptr, WCHAR *file_name, UINT *attributes_ptr, ULONG entry_offset);
#else
UINT  _fx_file_attributes_read(FX_MEDIA *media_ptr, WCHAR *file_name, UINT *attributes_ptr);
#endif

#ifdef FILEX_OPERATE_BY_ENTRY_OFFSET
UINT  _fx_file_attributes_set(FX_MEDIA *media_ptr, WCHAR *file_name, UINT attributes, ULONG entry_offset);
#else
UINT  _fx_file_attributes_set(FX_MEDIA *media_ptr, WCHAR *file_name, UINT attributes);
#endif

#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -