fs_util.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:5k
源码类别:

DVD

开发平台:

C/C++

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *         Copyright (c) 2002 by Sunplus Technology Co., Ltd.             *
  4.  *                                                                        *
  5.  *  This software is copyrighted by and is the property of Sunplus        *
  6.  *  Technology Co., Ltd. All rights are reserved by Sunplus Technology    *
  7.  *  Co., Ltd. This software may only be used in accordance with the       *
  8.  *  corresponding license agreement. Any unauthorized use, duplication,   *
  9.  *  distribution, or disclosure of this software is expressly forbidden.  *
  10.  *                                                                        *
  11.  *  This Copyright notice MUST not be removed or modified without prior   *
  12.  *  written consent of Sunplus Technology Co., Ltd.                       *
  13.  *                                                                        *
  14.  *  Sunplus Technology Co., Ltd. reserves the right to modify this        *
  15.  *  software without notice.                                              *
  16.  *                                                                        *
  17.  *  Sunplus Technology Co., Ltd.                                          *
  18.  *  19, Innovation First Road, Science-Based Industrial Park,             *
  19.  *  Hsin-Chu, Taiwan, R.O.C.                                              *
  20.  **************************************************************************/
  21. /*--------------------------------------------------------------------------
  22. |  File Name   :  Fs_util.h
  23. |
  24. |  Description :  Header of file system utility
  25. |                 In face, the main purpose of this file is to seperate functions into different files,
  26. |                 in order to be more modual, to be able to dynamically download modules.
  27. |
  28. |  Version    :  0.1  
  29. |  Rev Date         Author(s)      Status & Comments
  30. |---------------------------------------------------------------------------------
  31. |  0.1 2004/12/30      yltseng         Creating
  32. |--------------------------------------------------------------------------------*/ 
  33. #ifndef _CDROM_SHARECODE_H_
  34. #define _CDROM_SHARECODE_H_
  35. #include "types.h"
  36. /**************************************************************************
  37.  *  Function Name: mp3_file_count                                         *
  38.  *  Purposes:                                                             *
  39.  *    Get file count. Return value depends on what precompile header is   *
  40.  *    defined.                                                            *
  41.  *  Descriptions:                                                         *
  42.  *    None.                                                               *
  43.  *  Arguments:                                                            *
  44.  *    None.                                                               *
  45.  *  Returns:                                                              *
  46.  *    If MP3_DIRECT_SELECT is defined, returns the total file counts of   *
  47.  *    current selected file category( MP3/JPEG/Game/Other ) in all        *
  48.  *    directories.                                                        *
  49.  *    Else, returns total file counts of current select file category in  *
  50.  *    current selected directory.                                         *
  51.  *  See also:                                                             *
  52.  *    None.                                                               *
  53.  **************************************************************************/
  54. extern UINT16   mp3_file_count( void );
  55. /**************************************************************************
  56.  *  Function Name: is_merge_mp3file                                       *
  57.  *  Purposes:                                                             *
  58.  *    Check if current file is seperated into some discontinuous blocks   *
  59.  *    or not. If it is, it also update st_msf/s_msf/e_msf/s_len/len by    *
  60.  *    current block infos.                                                *
  61.  *  Descriptions:                                                         *
  62.  *    In ISO9660, all datas of a file must be allocated continuously, so  *
  63.  *    this function always do nothing but return FALSE.                   *
  64.  *    But in UDF, they can be allocated discontinuously. When finishing   *
  65.  *    current block, this function helps to change access address to next *
  66.  *    block, thus we can play seamless.                                   *
  67.  *  Arguments:                                                            *
  68.  *    len : length of next block.                                         *
  69.  *  Returns:                                                              *
  70.  *    TRUE  : If current file is seperated into some discontinuous blocks.*
  71.  *    FALSE : Else.                                                       *
  72.  *  See also:                                                             *
  73.  *    None.                                                               *
  74.  **************************************************************************/
  75. extern int      is_merge_mp3file( UINT32* pLen );
  76. #endif