RecAPI
_R_IOStreamfuncs Struct Reference

Container structure of the IOStream callback functions. More...

List of all members.

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

Detailed Description

Container structure of the IOStream callback functions.

streamname is UTF8 in open/access/is_stream

Note:
See kRecSetIOStreamCB

Member Data Documentation

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.

Perform the close operation. Return 0 if no error, otherwise with errno.

Preform the commit.

Not used

Return 1 if this stream belongs to the application otherwise 0.

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.

Perform the read operation. Return 0 if no error, otherwise with errno.

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.

Perform the stream operation. Return 0 if no error, otherwise with errno.

Perform the trim if it is possible.

Perform the write operation. Return 0 if no error, otherwise with errno.