Skip to main content
Version: Skinetic SDK 1.4.6

Callbacks

Types

Name
typedef void(ski_connection_state_t newStatus, ski_error_t error, uint32_t serialNumber, void *userData)ski_ConnectionCallback
typedef void()(ski_log_level_t level, const char scope, const char *msg)ski_log_callback_t

Types Documentation

typedef ski_ConnectionCallback

typedef void ski_ConnectionCallback(ski_connection_state_t newStatus, ski_error_t error, uint32_t serialNumber, void *userData);

Parameters:

  • newStatus status of the connection
  • error type of error occurring
  • serialNumber serial number of the device firing the callback
  • userData The value of a user supplied pointer passed to setConnectionCallback() intended for storing synthesis data etc.

Definition of connection callback prototype.

Functions of type ski_ConnectionCallback are implemented by clients. The callback is fired at the end of the connection routine whether it succeed or failed. It is also fired if a connection issue arise. The callback is not fired if none was passed to setConnectionCallback().

typedef ski_log_callback_t

typedef void(* ski_log_callback_t) (ski_log_level_t level, const char *scope, const char *msg);

Parameters:

  • level the level of the log message
  • scope string giving information about the SDK scope that send the log
  • msg string containing the log message

Signature of the callback function that can be registered to receive logs


Updated on 2024-05-23 at 10:02:49 +0000