TrustCore SDK NanoSSL API reference  version 7.0
Callback Functions

Provides common SoT Platform callback functions, used by multiple SoT Platform components. More...

Typedefs

typedef void(* logFn) (sbyte4 module, sbyte4 severity, sbyte *msg)
 Callback for logging function. More...
 

Detailed Description

Typedef Documentation

◆ logFn

typedef void(* logFn) (sbyte4 module, sbyte4 severity, sbyte *msg)

Users can create custom logging functions and register them via MOCANA_initLog(), provided the custom functions have this signature.

For example, you can define a custom logging function as follows:

void MY_logFn(sbyte4 module, sbyte4 severity, sbyte *msg)
{
<custom logging code>
}

You would then register the custom logging function as follows:

status = MOCANA_initLog(MY_logFn);
if (OK != status)
{
<error handling code>
}