gwenhywfar 5.10.1
Macros | Functions
testgui.c File Reference
#include "testgui_p.h"
#include <gwenhywfar/fslock.h>
#include <gwenhywfar/directory.h>
#include <gwenhywfar/debug.h>
Include dependency graph for testgui.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

static void _addLogLineToFile (GWEN_GUI *gui, const char *s)
 
static void _addLogLineToList (GWEN_GUI *gui, const char *s)
 
static GWENHYWFAR_CB void _freeData (GWEN_UNUSED void *bp, void *p)
 
static GWENHYWFAR_CB void _freeData (void *bp, void *p)
 
static GWENHYWFAR_CB int _logHook (GWEN_GUI *gui, const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s)
 
static void _writeLinesToFile (GWEN_GUI *gui)
 
void Test_Gui_FlushLogs (GWEN_GUI *gui)
 
void TestGui_AddLogLine (GWEN_GUI *gui, const char *s)
 
void TestGui_Extend (GWEN_GUI *gui)
 
void TestGui_SetLogFile (GWEN_GUI *gui, const char *fname)
 
void TestGui_SetLogLastX (GWEN_GUI *gui, int i)
 
void TestGui_Unextend (GWEN_GUI *gui)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file testgui.c.

Function Documentation

◆ _addLogLineToFile()

void _addLogLineToFile ( GWEN_GUI gui,
const char *  s 
)
static

Definition at line 195 of file testgui.c.

References GWEN_Directory_GetPath(), GWEN_FSLock_free(), GWEN_FSLock_Lock(), GWEN_FSLock_new(), GWEN_FSLock_ResultOk, GWEN_FSLock_TypeFile, GWEN_FSLock_Unlock(), GWEN_INHERIT_GETDATA, GWEN_PATH_FLAGS_VARIABLE, and NULL.

Referenced by TestGui_AddLogLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _addLogLineToList()

void _addLogLineToList ( GWEN_GUI gui,
const char *  s 
)
static

Definition at line 180 of file testgui.c.

References GWEN_INHERIT_GETDATA, GWEN_StringList_AppendString(), GWEN_StringList_Count(), and GWEN_StringList_RemoveFirstString().

Referenced by TestGui_AddLogLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _freeData() [1/2]

static GWENHYWFAR_CB void _freeData ( GWEN_UNUSED void *  bp,
void *  p 
)
static

Definition at line 75 of file testgui.c.

References GWEN_FREE_OBJECT, and GWEN_StringList_free().

Here is the call graph for this function:

◆ _freeData() [2/2]

static GWENHYWFAR_CB void _freeData ( void *  bp,
void *  p 
)
static

Referenced by TestGui_Extend().

Here is the caller graph for this function:

◆ _logHook()

static GWENHYWFAR_CB int _logHook ( GWEN_GUI gui,
const char *  logDomain,
GWEN_LOGGER_LEVEL  priority,
const char *  s 
)
static

Definition at line 103 of file testgui.c.

References GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_INHERIT_GETDATA, GWEN_Logger_CreateLogMessage(), and TestGui_AddLogLine().

Referenced by TestGui_Extend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _writeLinesToFile()

void _writeLinesToFile ( GWEN_GUI gui)
static

◆ Test_Gui_FlushLogs()

void Test_Gui_FlushLogs ( GWEN_GUI gui)

Definition at line 88 of file testgui.c.

References _writeLinesToFile(), GWEN_INHERIT_GETDATA, and GWEN_StringList_Clear().

Referenced by _finishGui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGui_AddLogLine()

void TestGui_AddLogLine ( GWEN_GUI gui,
const char *  s 
)

Definition at line 133 of file testgui.c.

References _addLogLineToFile(), _addLogLineToList(), and GWEN_INHERIT_GETDATA.

Referenced by _logHook(), _runModule(), and _runTest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGui_Extend()

void TestGui_Extend ( GWEN_GUI gui)

Definition at line 41 of file testgui.c.

References _freeData(), _logHook(), GWEN_Gui_SetLogHookFn(), GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, and GWEN_StringList_new().

Referenced by _setupGui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestGui_SetLogFile()

void TestGui_SetLogFile ( GWEN_GUI gui,
const char *  fname 
)

Definition at line 149 of file testgui.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by _setupGui().

Here is the caller graph for this function:

◆ TestGui_SetLogLastX()

void TestGui_SetLogLastX ( GWEN_GUI gui,
int  i 
)

Definition at line 167 of file testgui.c.

References GWEN_INHERIT_GETDATA.

Referenced by _setupGui().

Here is the caller graph for this function:

◆ TestGui_Unextend()

void TestGui_Unextend ( GWEN_GUI gui)

Definition at line 55 of file testgui.c.

References GWEN_FREE_OBJECT, GWEN_Gui_SetLogHookFn(), GWEN_INHERIT_GETDATA, GWEN_INHERIT_UNLINK, and GWEN_StringList_free().

Referenced by _finishGui().

Here is the call graph for this function:
Here is the caller graph for this function: