The OpenVX Specification  r28647
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Detailed Description

Defines the debug logging interface.

The functions of the debugging interface allow clients to receive important debugging information about OpenVX.

See also
vx_status_e for the list of possible errors.
Log messages only can be received after the callback is installed.


typedef void(* vx_log_callback_f )(vx_context context, vx_reference ref, vx_status status, vx_char string[])
 The log callback function.


void vxAddLogEntry (vx_reference ref, vx_status status, const char *message,...)
 Adds a line to the log. More...
void vxRegisterLogCallback (vx_context context, vx_log_callback_f callback, vx_bool reentrant)
 Registers a callback facility to the OpenVX implementation to receive error logs. More...

Function Documentation

void vxAddLogEntry ( vx_reference  ref,
vx_status  status,
const char *  message,

Adds a line to the log.

[in]refThe reference to add the log entry against. Some valid value must be provided.
[in]statusThe status code. VX_SUCCESS status entries are ignored and not added.
[in]messageThe human readable message to add to the log.
[in]...a list of variable arguments to the message.
Messages may not exceed VX_MAX_LOG_MESSAGE_LEN bytes and will be truncated in the log if they exceed this limit.
void vxRegisterLogCallback ( vx_context  context,
vx_log_callback_f  callback,
vx_bool  reentrant 

Registers a callback facility to the OpenVX implementation to receive error logs.

[in]contextThe overall context to OpenVX.
[in]callbackThe callback function. If NULL, the previous callback is removed.
[in]reentrantIf reentrancy flag is vx_true_e, then the callback may be entered from multiple simultaneous tasks or threads (if the host OS supports this).