libdas2
das2 core C utilities
|
Callback processing for das2 stream reads and writes. More...
Callback processing for das2 stream reads and writes.
These structure allow one to hook in Das2 Stream object processing that is triggered when Headers and Data are read or written to a file.
Go to the source code of this file.
Data Structures | |
interface | StreamHandler |
A set of callbacks used for input and output stream processing. More... | |
Typedefs | |
typedef DasErrCode(* | StreamDescHandler )(StreamDesc *sd, void *ud) |
Definition of the callback function invoked when a stream header is encountered in the input. More... | |
typedef DasErrCode(* | PktDescHandler )(StreamDesc *sd, PktDesc *pd, void *ud) |
Definition of the callback function invoked when a packet header is encountered in the input. More... | |
typedef DasErrCode(* | PktRedefHandler )(StreamDesc *sd, PktDesc *pd, void *ud) |
Definition of the callback function invoked when a packet header is going to be deleted. More... | |
typedef DasErrCode(* | PktDataHandler )(PktDesc *pd, void *ud) |
Callback function invoked when a data packet is encountered in the input. More... | |
typedef DasErrCode(* | CloseHandler )(StreamDesc *sd, void *ud) |
Callback functions that invoked on Stream Close callback function that is called at the end of the stream. More... | |
typedef DasErrCode(* | ExceptionHandler )(OobExcept *se, void *ud) |
Callback functions that handle exceptions. More... | |
typedef DasErrCode(* | CommentHandler )(OobComment *se, void *ud) |
Callback functions that handle comments. More... | |
typedef DasErrCode(* StreamDescHandler)(StreamDesc *sd, void *ud) |
Definition of the callback function invoked when a stream header is encountered in the input.
sd | A pointer to the parsed StreamDesc |
pd | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* PktDescHandler)(StreamDesc *sd, PktDesc *pd, void *ud) |
Definition of the callback function invoked when a packet header is encountered in the input.
sd | A pointer to the parsed Stream Descriptor |
pd | A pointer to the parsed Packet Descriptor |
ud | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* PktRedefHandler)(StreamDesc *sd, PktDesc *pd, void *ud) |
Definition of the callback function invoked when a packet header is going to be deleted.
This only occurs if streams re-define packet IDs
@param | sd A pointer to the parsed Stream Descriptor |
pd | A pointer to the parsed Packet Descriptor |
ud | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* PktDataHandler)(PktDesc *pd, void *ud) |
Callback function invoked when a data packet is encountered in the input.
sd | A pointer to the parsed Packet Descriptor |
ud | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* CloseHandler)(StreamDesc *sd, void *ud) |
Callback functions that invoked on Stream Close callback function that is called at the end of the stream.
sd | A pointer to the parsed Stream Descriptor |
ud | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* ExceptionHandler)(OobExcept *se, void *ud) |
Callback functions that handle exceptions.
se | A pointer to the parsed Exception |
ud | A pointer to a user data structure, may be NULL. |
typedef DasErrCode(* CommentHandler)(OobComment *se, void *ud) |
Callback functions that handle comments.
se | A pointer to the parsed Comment |
ud | A pointer to a user data structure, may be NULL. |