br_filesystem
typedef
brfile.h
for precise declaration and ordering)
brfile_attributes_cbfn * attributes Function to inquire capabilities of filing system
brfile_open_read_cbfn * open_read Function to open a file for reading
brfile_open_write_cbfn * open_write Function to open a file for writing
brfile_close_cbfn * close Function to close an opened file
brfile_eof_cbfn * eof Function to check for end of file
brfile_getchr_cbfn * getchr Function to read one character
brfile_putchr_cbfn * putchr Function to write one character
brfile_read_cbfn * read Function to read a block
brfile_write_cbfn * write Function to write a block
brfile_getline_cbfn * getline Function to read a line of text
brfile_putline_cbfn * putline Function to write a line of text
brfile_advance_cbfn * advance Function to advance through a stream
char * identifier Name of filing system
Members
Informational
This is a pointer to the function to obtain attributes of the filing system (see brfile_attributes_cbfn *attributes
brfile_attributes_cbfn
371). This is called by
BrFileAttributes()
57 (See Filing System Support, page 57).
brfile_open_read_cbfn * open_read
brfile_open_read_cbfn
376
). This is called by BrFileOpenRead()
60
(See Filing System Support, page 57).
brfile_open_write_cbfn * open_write
brfile_open_write_cbfn
378
). This is called by BrFileOpenWrite()
57
(See Filing System Support, page 57).
brfile_close_cbfn * close
brfile_close_cbfn
372
). This is called by BrFileClose()
63
(See Filing System Support, page 57).
brfile_eof_cbfn * eof
brfile_eof_cbfn
373
). This is called by BrFileEof()
62
(See Filing System Support, page 57).
brfile_getchr_cbfn * getchr
brfile_getchr_cbfn
374
). This is called by BrFileGetChar()
62
(See Filing System Support, page 57).
brfile_putchr_cbfn * putchr
brfile_putchr_cbfn
379
). This is called by BrFilePutChar()
59
(See Filing System Support, page 57).
brfile_read_cbfn * read
brfile_read_cbfn
381
). This is called by BrFileRead()
60
(See Filing System Support, page 57).
brfile_write_cbfn * write
brfile_write_cbfn
382
). This is called by BrFileWrite()
58
(See Filing System Support, page 57).
brfile_getline_cbfn * getline
brfile_getline_cbfn
375
). This is called by BrFileGetLine()
61
(See Filing System Support, page 57).
brfile_putline_cbfn * putline
brfile_putline_cbfn
380
). This is called by BrFilePutLine()
59
(See Filing System Support, page 57).
brfile_advance_cbfn * advance
brfile_getchr_cbfn
374
). This is called by BrFileGetChar()
62
(See Filing System Support, page 57).
char * identifier
Null
if not required). A string constant is recommended.
Operations
Description:
Install a new file system.BrFilesystemSet()
const br_filesystem* BrFilesystemSet(const br_filesystem* newfs)
const br_filesystem * newfs
structure.
Result:
const br_filesystem *
Returns a pointer to the old br_filesystem
125 structure.
identifier
has been allocated from the heap.
Access & Maintenance
While the structure is the current handler (most recently passed to BrFilesystemSet()
127) the members should not be changed. No maintenance required.
Referencing & Lifetime
The structure must remain valid until a new handler is passed to BrFilesystemSet()
127.
Initialisation
The members should be set before the structure is passed to BrFilesystemSet()
127.
Construction & Destruction
The structure should ideally be statically constructed. Supplementary
The identifier
may be used to determine the current handler in use.
Generated with CERN WebMaker