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)
 
BOOL CallbackAppenderMessage (const wLogMessage *msg)
 
BOOL CallbackAppenderData (const wLogMessage *msg)
 
BOOL CallbackAppenderImage (const wLogMessage *msg)
 
BOOL CallbackAppenderPackage (const wLogMessage *msg)
 
int TestWLogCallback (int argc, char *argv[])
 

Variables

static const char * function = NULL
 
static const char * channels []
 
static const test_t messages []
 
static BOOL success = TRUE
 
static int pos = 0
 

Function Documentation

BOOL CallbackAppenderData ( const wLogMessage *  msg)

Here is the caller graph for this function:

BOOL CallbackAppenderImage ( const wLogMessage *  msg)

Here is the caller graph for this function:

BOOL CallbackAppenderMessage ( const wLogMessage *  msg)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL CallbackAppenderPackage ( const wLogMessage *  msg)

Here is the caller graph for this function:

static BOOL check ( const wLogMessage *  msg)
static

Here is the caller graph for this function:

int TestWLogCallback ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* channels[]
static
Initial value:
=
{
"com.test.channelA",
"com.test.channelB"
}
const char* function = NULL
static
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: include/winpr/wlog.h:38
#define WLOG_WARN
Definition: include/winpr/wlog.h:41
#define WLOG_ERROR
Definition: include/winpr/wlog.h:42
#define WLOG_INFO
Definition: include/winpr/wlog.h:40
int pos = 0
static
BOOL success = TRUE
static