|
RecAPI
|
Container structure of the IOStream callback functions. More...
Public Attributes | |
| open_stream_f * | ropen_stream |
| read_stream_f * | rread_stream |
| write_stream_f * | rwrite_stream |
| tell_stream_f * | rtell_stream |
| seek_stream_f * | rseek_stream |
| close_stream_f * | rclose_stream |
| error_stream_f * | rerror_stream |
| access_stream_f * | raccess_stream |
| commit_stream_f * | rcommit_stream |
| trim_stream_f * | rtrim_stream |
| is_stream_f * | ris_stream |
Container structure of the IOStream callback functions.
streamname is UTF8 in open/access/is_stream
| access_stream_f* _R_IOStreamfuncs::raccess_stream |
Return 1 if the named stream belongs to the application and it exists. Return -1 if the application stream does not exist. Return 0 if the specified stream does not belong to the application.
| close_stream_f* _R_IOStreamfuncs::rclose_stream |
Perform the close operation. Return 0 if no error, otherwise with errno.
| commit_stream_f* _R_IOStreamfuncs::rcommit_stream |
Preform the commit.
| error_stream_f* _R_IOStreamfuncs::rerror_stream |
Not used
| is_stream_f* _R_IOStreamfuncs::ris_stream |
Return 1 if this stream belongs to the application otherwise 0.
| open_stream_f* _R_IOStreamfuncs::ropen_stream |
Preform the open on the specified stream. Stream names are given on regular CSDK API and passed here. Use simple strings to name and identify the application handled stream. Return 0 ID when the actual name does not belong to the application. Name of the stream in the application. This name is passed back in the open callback. mode: create 1, read 2, write 4, readwrite 6 Your generated ID will be passed with other callbacks. You can map it to your IO handle object or routins. Return 0 if no error, otherwise with errno.
| read_stream_f* _R_IOStreamfuncs::rread_stream |
Perform the read operation. Return 0 if no error, otherwise with errno.
| seek_stream_f* _R_IOStreamfuncs::rseek_stream |
Perform the seek operation. Origin: Set 0, Current 1, End 2 If the stream does not have seek capability, use forward read (into memory) technic to emulate the seek what CSDK requires to work properly specificaly in some image inputs. Return 0 if no error, otherwise with errno.
| tell_stream_f* _R_IOStreamfuncs::rtell_stream |
Perform the stream operation. Return 0 if no error, otherwise with errno.
| trim_stream_f* _R_IOStreamfuncs::rtrim_stream |
Perform the trim if it is possible.
| write_stream_f* _R_IOStreamfuncs::rwrite_stream |
Perform the write operation. Return 0 if no error, otherwise with errno.