axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axl_bool axl_stream_setup_check ( axlStream stream,
const char *  source_encoding,
axlStreamContentCheck  check,
axlPointer  user_data,
axlError **  error 
)

Function that allows to configure a handler that is executed to check content read into the axl stream buffer.

See axlStreamContentCheck for more information.

Parameters
streamThe stream that is going to be configured.
source_encodingThe source encoding detected.
checkThe function that implements the check.
user_dataUser defined data to be passed to the check function.
errorOptional axlError reference where errors will be reported.
Returns
The function returns axl_true if the cheker was installed and first execution was completed.

References axl_false, AXL_LEVEL_CRITICAL, axl_return_val_if_fail, axl_strdup(), and axl_true.