CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
cdi_test.h File Reference

The declarations in this header file correspond to the definitions in cdi_test.c. More...

#include <stdbool.h>
#include <stdint.h>
#include "cdi_core_api.h"
#include "test_args.h"
#include "test_configuration.h"

Go to the source code of this file.

Macros

#define DEFAULT_LOG_LEVEL   (kLogDebug)
 Default log level (ie. kLogInfo, kLogDebug, etc).
 
#define DEFAULT_LOG_COMPONENT   (kLogComponentProbe)
 Default log component (ie. kLogComponentGeneric, kLogComponentPayloadConfig, etc).
 
#define TEST_LOG_GLOBAL(log_level, ...)
 Log through cdi_test's global log handle.
 

Functions

GlobalTestSettingsGetGlobalTestSettings (void)
 

Detailed Description

The declarations in this header file correspond to the definitions in cdi_test.c.

Macro Definition Documentation

◆ TEST_LOG_GLOBAL

#define TEST_LOG_GLOBAL ( log_level,
... )
Value:
CdiLogger(GetGlobalTestSettings()->test_app_global_log_handle, kLogComponentGeneric, log_level, __FUNCTION__, \
__LINE__, __VA_ARGS__)
@ kLogComponentGeneric
Generic component.
Definition cdi_log_enums.h:36
CDI_INTERFACE void CdiLogger(CdiLogHandle handle, CdiLogComponent component, CdiLogLevel log_level, const char *function_name_str, int line_number, const char *format_str,...)
Definition logger.c:862
GlobalTestSettings * GetGlobalTestSettings(void)
Definition cdi_test.c:285

Log through cdi_test's global log handle.

Function Documentation

◆ GetGlobalTestSettings()

GlobalTestSettings * GetGlobalTestSettings ( void )

Return the pointer to the global test settings structure.

Returns
The pointer to the global test settings structure.