FreeRDP
TestWLogCallback.c File Reference
#include <winpr/crt.h>
#include <winpr/tchar.h>
#include <winpr/path.h>
#include <winpr/wlog.h>

Functions

static BOOL check (const wLogMessage *msg)
 
static BOOL CallbackAppenderMessage (const wLogMessage *msg)
 
static BOOL CallbackAppenderData (const wLogMessage *msg)
 
static BOOL CallbackAppenderImage (const wLogMessage *msg)
 
static BOOL CallbackAppenderPackage (const wLogMessage *msg)
 
int TestWLogCallback (int argc, char *argv[])
 

Variables

static const char * function = NULL
 
static const char * channels [] = { "com.test.channelA", "com.test.channelB" }
 
static const test_t messages []
 
static BOOL success = TRUE
 
static int pos = 0
 

Function Documentation

◆ CallbackAppenderData()

static BOOL CallbackAppenderData ( const wLogMessage msg)
static
Here is the caller graph for this function:

◆ CallbackAppenderImage()

static BOOL CallbackAppenderImage ( const wLogMessage msg)
static
Here is the caller graph for this function:

◆ CallbackAppenderMessage()

static BOOL CallbackAppenderMessage ( const wLogMessage msg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CallbackAppenderPackage()

static BOOL CallbackAppenderPackage ( const wLogMessage msg)
static
Here is the caller graph for this function:

◆ check()

static BOOL check ( const wLogMessage msg)
static
Here is the caller graph for this function:

◆ TestWLogCallback()

int TestWLogCallback ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ channels

const char* channels[] = { "com.test.channelA", "com.test.channelB" }
static

◆ function

const char* function = NULL
static

◆ messages

const test_t messages[]
static
Initial value:
= { { WLOG_INFO, "this is a test", "com.test.channelA" },
{ WLOG_INFO, "Just some info", "com.test.channelB" },
{ WLOG_WARN, "this is a %dnd %s", "com.test.channelA" },
{ WLOG_WARN, "we're warning a %dnd %s", "com.test.channelB" },
{ WLOG_ERROR, "this is an error", "com.test.channelA" },
{ WLOG_ERROR, "we've got an error", "com.test.channelB" },
{ WLOG_TRACE, "this is a trace output", "com.test.channelA" },
{ WLOG_TRACE, "leaving a trace behind", "com.test.channelB" } }
#define WLOG_TRACE
Definition: dsp_fdk_impl.c:32
#define WLOG_INFO
Definition: dsp_fdk_impl.c:34
#define WLOG_WARN
Definition: dsp_fdk_impl.c:35
#define WLOG_ERROR
Definition: dsp_fdk_impl.c:36

◆ pos

int pos = 0
static

◆ success

BOOL success = TRUE
static