65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
/**********************************************************************************
|
|
* Copyright 2006 - 2050, Hisilicon Tech. Co., Ltd.
|
|
* ALL RIGHTS RESERVED
|
|
* FileName:
|
|
* Description:
|
|
*
|
|
* History:
|
|
* Version Date Author DefectNum Description
|
|
* V1.00 May24th,2010 f48792 NA 1 st release
|
|
***********************************************************************************/
|
|
#include "sample_fsdebug.h"
|
|
|
|
#ifndef _SAMPLE_FSMANGER_H_
|
|
#define _SAMPLE_FSMANGER_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define MAX_PATH_LENGTH 300
|
|
#define MAX_NAME_LENGTH 300
|
|
|
|
typedef struct
|
|
{
|
|
HI_CHAR uFileName[MAX_NAME_LENGTH];
|
|
} USB_FILE_NAME;
|
|
|
|
typedef struct
|
|
{
|
|
HI_CHAR uFolderPath[MAX_PATH_LENGTH];
|
|
} USB_FOLDER_PATH;
|
|
|
|
typedef struct
|
|
{
|
|
USB_FOLDER_PATH sFileFolderPath;
|
|
USB_FILE_NAME sFileName;
|
|
} USB_FILE_COMPLETE_INFO;
|
|
|
|
typedef struct
|
|
{
|
|
HI_S32 u32TotalSizeKB;
|
|
HI_S32 u32FreeSizeKB;
|
|
HI_CHAR *pu8MountPoint;
|
|
} USB_DISK_INFO_S;
|
|
|
|
HI_S32 FS_Init(void);
|
|
|
|
HI_S32 FS_GetFilesNumByPath(HI_CHAR* pPath, HI_U32* puFolderNum, HI_U32* puMp3Num, HI_U32* puJpegNum);
|
|
|
|
HI_S32 FS_GetFilesContentByPath(HI_CHAR* pPath,
|
|
USB_FILE_NAME** pFolder,
|
|
USB_FILE_NAME** pMp3,
|
|
USB_FILE_NAME** pJpeg);
|
|
|
|
HI_BOOL FS_IsDiskOk(void);
|
|
HI_S32 FS_GetDiskInfo(HI_CHAR *pu8DiskName, USB_DISK_INFO_S *pstDiskInfo);
|
|
|
|
HI_S32 test_diskManage_list(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|