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" } }

◆ pos

int pos = 0
static

◆ success

BOOL success = TRUE
static
WLOG_TRACE
#define WLOG_TRACE
Definition: include/winpr/wlog.h:39
WLOG_INFO
#define WLOG_INFO
Definition: include/winpr/wlog.h:41
WLOG_WARN
#define WLOG_WARN
Definition: include/winpr/wlog.h:42
WLOG_ERROR
#define WLOG_ERROR
Definition: include/winpr/wlog.h:43