PFileSystem Struct Reference
[PFileSystem API functions]


Detailed Description

Portable file-system.

Data Fields

ESR_ReturnCode(* destroy )(struct PFileSystem_t *self)
ESR_ReturnCode(* createPFile )(struct PFileSystem_t *self, const LCHAR *path, ESR_BOOL littleEndian, PFile **file)
ESR_ReturnCode(* mkdir )(struct PFileSystem_t *self, const LCHAR *path)
ESR_ReturnCode(* chdir )(struct PFileSystem_t *self, const LCHAR *path)

Field Documentation

ESR_ReturnCode(* PFileSystem::destroy)(struct PFileSystem_t *self)

Destroys the PFileSystem.

Parameters:
self PFileSystem handle
Returns:
ESR_INVALID_ARGUMENT if self is null

ESR_ReturnCode(* PFileSystem::createPFile)(struct PFileSystem_t *self, const LCHAR *path, ESR_BOOL littleEndian, PFile **file)

Creates a new PFile using this file-system.

Parameters:
self PFileSystem handle
path Fully qualified file path
littleEndian True if file is in little-endian format
file [out] Resulting PFile

ESR_ReturnCode(* PFileSystem::mkdir)(struct PFileSystem_t *self, const LCHAR *path)

Creates a new directory.

Parameters:
self PFileSystem handle
path Fully qualified directory path
Returns:
ESR_INVALID_ARGUMENT if path is null; ESR_IDENTIFIER_COLLISION if directory already exists; ESR_NO_MATCH_ERROR if parent directory does not exist; ESR_INVALID_STATE if an internal error occurs

ESR_ReturnCode(* PFileSystem::chdir)(struct PFileSystem_t *self, const LCHAR *path)

Sets the current working directory.

Parameters:
self PFileSystem handle
path Fully qualified file path
Returns:
ESR_SUCCESS if change of directory is allowed


Generated on Thu May 1 15:37:28 2008 for SREC by  doxygen 1.5.3