📄 xos_files.h.svn-base
字号:
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name: xOS_File.h
//Author: AnyLook
//Version: 1.0
//Date: 2008/07/31
//Description:
// xOS Include file
//Others:
//Function List:
//<Name> <desc>
//Simple
//History:
//<author> <time> <version > <desc>
// AnyLook 2008/07/31 1.0 build this moudle
//**************************************************************
#ifndef _xOS_FILES_H
#define _xOS_FILES_H
#ifdef __cplusplus
extern "C" {
#endif
#include "xOS_Files_VTBL.h"
static INLINE int xOS_Files_GetFileInfoByName(const char * pszFile, FileInfo *pInfo)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->GetFileInfoByName(pszFile, pInfo);
}
return NULL;
}
static INLINE int xOS_Files_MkDir(const char * pszDir)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->MkDir(pszDir);
}
return NULL;
}
static INLINE int xOS_Files_RmDir(const char * pszDir)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->RmDir(pszDir);
}
return NULL;
}
static INLINE int xOS_Files_RenameFile(const char * pszSrc, const char * pszDest)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->RenameFile(pszSrc, pszDest);
}
return NULL;
}
static INLINE int xOS_Files_RemoveFile(const char * pszFile)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->RemoveFile(pszFile);
}
return NULL;
}
static INLINE int xOS_Files_EnumFileInit(const char * pszdir, boolean bDirs)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->EnumFileInit(pszdir, bDirs);
}
return NULL;
}
static INLINE int xOS_Files_EnumFileNext(FileInfo *pInfo)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->EnumFileNext(pInfo);
}
return NULL;
}
static INLINE int xOS_Files_TestFile(const char * pszFile)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->TestFile(pszFile);
}
return NULL;
}
static INLINE int xOS_Files_GetFSInfo(const char *pszDisk, FSInfo *pInfo)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->GetFSInfo(pszDisk, pInfo);
}
return NULL;
}
static INLINE Handler xOS_Files_OpenFile(const char *pszFile, const char *mode)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->OpenFile(pszFile, mode);
}
return NULL;
}
static INLINE int xOS_Files_CloseFile(Handler hdl)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->CloseFile(hdl);
}
return NULL;
}
static INLINE int xOS_Files_FileRead(Handler hdl, void *ptr, int size, int maxnum)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->FileRead(hdl, ptr, size, maxnum);
}
return NULL;
}
static INLINE int xOS_Files_FileWrite(Handler hdl, const void *ptr, int size, int num)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->FileWrite(hdl, ptr, size, num);
}
return NULL;
}
static INLINE int xOS_Files_FileSeek(Handler hdl, int offset, int whence)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->FileSeek(hdl, offset, whence);
}
return NULL;
}
static INLINE int xOS_Files_FileTruncate(Handler hdl, int pos)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->FileTruncate(hdl, pos);
}
return NULL;
}
static INLINE int xOS_Files_GetFileInfo(Handler hdl, FileInfo *pInfo)
{
if (GETFILES(g_pxOSList))
{
return GETFILES(g_pxOSList)->GetFileInfo(hdl, pInfo);
}
return NULL;
}
#ifdef __cplusplus
}
#endif
#endif //_xOS_FILES_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -