diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-31 16:00:05 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-31 16:00:05 -0700 |
commit | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (patch) | |
tree | 8d80e67a3bf51fde50230f46426808c0893d52b1 /core/src | |
parent | 58b2a2cef3f50c8cc771708798214c7a785fdad0 (diff) | |
download | pdfium-780cee82236d1b3b0f9b01a22424e4b8ec9a6f12.tar.xz |
Merge to XFA: Kill FX_HFILE
(cherry picked from commit c8eeed31f217d99a706b0cbf5e4ce0bcc12beb64)
Review URL: https://codereview.chromium.org/1259123008 .
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1256103006 .
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/fxcrt/fx_extension.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp index 9a165fda93..44573174e7 100644 --- a/core/src/fxcrt/fx_extension.cpp +++ b/core/src/fxcrt/fx_extension.cpp @@ -13,75 +13,6 @@ #include <ctime> #endif -FX_HFILE FX_File_Open(const CFX_ByteStringC& fileName, FX_DWORD dwMode) -{ - IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(); - if (pFA && !pFA->Open(fileName, dwMode)) { - pFA->Release(); - return NULL; - } - return (FX_HFILE)pFA; -} -FX_HFILE FX_File_Open(const CFX_WideStringC& fileName, FX_DWORD dwMode) -{ - IFXCRT_FileAccess* pFA = FXCRT_FileAccess_Create(); - if (pFA && !pFA->Open(fileName, dwMode)) { - pFA->Release(); - return NULL; - } - return (FX_HFILE)pFA; -} -void FX_File_Close(FX_HFILE hFile) -{ - FXSYS_assert(hFile != NULL); - ((IFXCRT_FileAccess*)hFile)->Close(); - ((IFXCRT_FileAccess*)hFile)->Release(); -} -FX_FILESIZE FX_File_GetSize(FX_HFILE hFile) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->GetSize(); -} -FX_FILESIZE FX_File_GetPosition(FX_HFILE hFile) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->GetPosition(); -} -FX_FILESIZE FX_File_SetPosition(FX_HFILE hFile, FX_FILESIZE pos) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->SetPosition(pos); -} -size_t FX_File_Read(FX_HFILE hFile, void* pBuffer, size_t szBuffer) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->Read(pBuffer, szBuffer); -} -size_t FX_File_ReadPos(FX_HFILE hFile, void* pBuffer, size_t szBuffer, FX_FILESIZE pos) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->ReadPos(pBuffer, szBuffer, pos); -} -size_t FX_File_Write(FX_HFILE hFile, const void* pBuffer, size_t szBuffer) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->Write(pBuffer, szBuffer); -} -size_t FX_File_WritePos(FX_HFILE hFile, const void* pBuffer, size_t szBuffer, FX_FILESIZE pos) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->WritePos(pBuffer, szBuffer, pos); -} -FX_BOOL FX_File_Flush(FX_HFILE hFile) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->Flush(); -} -FX_BOOL FX_File_Truncate(FX_HFILE hFile, FX_FILESIZE szFile) -{ - FXSYS_assert(hFile != NULL); - return ((IFXCRT_FileAccess*)hFile)->Truncate(szFile); -} IFX_FileAccess* FX_CreateDefaultFileAccess(const CFX_WideStringC& wsPath) { if (wsPath.GetLength() == 0) |