swu_logging_callback_t

Callback function to log messages generated by the library

Synopsis:

#include <swu/UpdateClient.h>

typedef void( *swu_logging_callback_t )
                ( swu_log_level_t level, 
                  const char *message, 
                  va_list msg_args );

Arguments:

level
Severity level of the message.
message
A null-terminated string containing the message to log.
msg_args
Variable argument list for formatting values within the message text.

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

The swu_logging_callback_t data type defines the prototype for a callback function that must be registered with swu_client_set_logging_callback() to receive log messages from the library. These messages may be errors, warnings, or debugging information. The callback function can set the level parameter to filter the messages by severity.