FX_FIL.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:5k
源码类别:

DVD

开发平台:

Others

  1. /**************************************************************************/ 
  2. /*                                                                        */ 
  3. /*            Copyright (c) 1996-2002 by Express Logic Inc.               */ 
  4. /*                                                                        */ 
  5. /*  This software is copyrighted by and is the sole property of Express   */ 
  6. /*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
  7. /*  in the software remain the property of Express Logic, Inc.  This      */ 
  8. /*  software may only be used in accordance with the corresponding        */ 
  9. /*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
  10. /*  distribution, or disclosure of this software is expressly forbidden.  */ 
  11. /*                                                                        */
  12. /*  This Copyright notice may not be removed or modified without prior    */ 
  13. /*  written consent of Express Logic, Inc.                                */ 
  14. /*                                                                        */ 
  15. /*  Express Logic, Inc. reserves the right to modify this software        */ 
  16. /*  without notice.                                                       */ 
  17. /*                                                                        */ 
  18. /*  Express Logic, Inc.                     info@expresslogic.com         */
  19. /*  11423 West Bernardo Court               http://www.expresslogic.com   */
  20. /*  San Diego, CA  92127                                                  */
  21. /*                                                                        */
  22. /**************************************************************************/
  23. /**************************************************************************/
  24. /**************************************************************************/
  25. /**                                                                       */ 
  26. /** FileX Component                                                       */
  27. /**                                                                       */
  28. /**   File (FIL)                                                          */
  29. /**                                                                       */
  30. /**************************************************************************/
  31. /**************************************************************************/
  32. /**************************************************************************/ 
  33. /*                                                                        */ 
  34. /*  COMPONENT DEFINITION                                   RELEASE        */ 
  35. /*                                                                        */ 
  36. /*    fx_fil.h                                            PORTABLE C      */ 
  37. /*                                                           3.0          */ 
  38. /*  AUTHOR                                                                */ 
  39. /*                                                                        */ 
  40. /*    William E. Lamie, Express Logic, Inc.                               */ 
  41. /*                                                                        */ 
  42. /*  DESCRIPTION                                                           */ 
  43. /*                                                                        */ 
  44. /*    This file defines the FileX File component constants, data          */ 
  45. /*    definitions, and external references.  It is assumed that fx_api.h  */ 
  46. /*    (and fx_port.h) have already been included.                         */ 
  47. /*                                                                        */ 
  48. /*  RELEASE HISTORY                                                       */ 
  49. /*                                                                        */ 
  50. /*    DATE              NAME                      DESCRIPTION             */ 
  51. /*                                                                        */ 
  52. /*  01-01-1999     William E. Lamie         Initial Version 1.0           */ 
  53. /*  03-01-2000     William E. Lamie         Modified comment(s) and added */ 
  54. /*                                            prototype for file close,   */ 
  55. /*                                            resulting in version 1.0b.  */ 
  56. /*  01-28-2001     William E. Lamie         Modified comment(s) and added */ 
  57. /*                                            error checking function     */ 
  58. /*                                            prototypes, resulting in    */ 
  59. /*                                            version 2.0                 */ 
  60. /*  03-01-2002     William E. Lamie         Modified comment(s),          */ 
  61. /*                                            resulting in version 3.0.   */ 
  62. /*                                                                        */ 
  63. /**************************************************************************/ 
  64. #ifndef  FX_FIL
  65. #define  FX_FIL
  66. /* Define the external File component function prototypes.  */
  67. UINT        _fx_file_close(FX_FILE *file_ptr);
  68. UINT        _fx_file_open(FX_MEDIA *media_ptr, FX_FILE *file_ptr, CHAR *file_name, 
  69.                 UINT open_type);
  70. UINT        _fx_file_read(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG request_size, ULONG *actual_size);
  71. UINT        _fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset);
  72. UINT _fx_file_open_by_addr(FX_MEDIA *media_ptr, FX_FILE * file_ptr, ULONG dwStartCluster, UINT32 cbFileSize) ;
  73. #endif