gwenhywfar 5.12.0
nogui.c File Reference
#include "nogui_p.h"
Include dependency graph for nogui.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG

Functions

static int GWENHYWFAR_CB _checkCert (GWEN_GUI *gui, const GWEN_SSLCERTDESCR *cert, GWEN_SYNCIO *sio, uint32_t guiid)
int GWENHYWFAR_CB _checkCert (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const GWEN_SSLCERTDESCR *cert, GWEN_UNUSED GWEN_SYNCIO *sio, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _closeDialog (GWEN_GUI *gui, GWEN_DIALOG *dlg)
int GWENHYWFAR_CB _closeDialog (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED GWEN_DIALOG *dlg)
static int GWENHYWFAR_CB _execDialog (GWEN_GUI *gui, GWEN_DIALOG *dlg, uint32_t guiid)
int GWENHYWFAR_CB _execDialog (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED GWEN_DIALOG *dlg, GWEN_UNUSED uint32_t guiid)
static void GWENHYWFAR_CB _freeData (GWEN_UNUSED void *bp, void *p)
static int GWENHYWFAR_CB _getFilename (GWEN_GUI *gui, const char *caption, GWEN_GUI_FILENAME_TYPE fnt, uint32_t flags, const char *patterns, GWEN_BUFFER *pathBuffer, uint32_t guiid)
int GWENHYWFAR_CB _getFilename (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *caption, GWEN_UNUSED GWEN_GUI_FILENAME_TYPE fnt, GWEN_UNUSED uint32_t flags, GWEN_UNUSED const char *patterns, GWEN_UNUSED GWEN_BUFFER *pathBuffer, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _getPassword (GWEN_GUI *gui, uint32_t flags, const char *token, const char *title, const char *text, char *buffer, int minLen, int maxLen, GWEN_GUI_PASSWORD_METHOD methodId, GWEN_DB_NODE *methodParams, uint32_t guiid)
int GWENHYWFAR_CB _getPassword (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, GWEN_UNUSED const char *token, GWEN_UNUSED const char *title, GWEN_UNUSED const char *text, GWEN_UNUSED char *buffer, GWEN_UNUSED int minLen, GWEN_UNUSED int maxLen, GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD methodId, GWEN_UNUSED GWEN_DB_NODE *methodParams, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _getSyncio (GWEN_GUI *gui, const char *url, const char *defaultProto, int defaultPort, GWEN_SYNCIO **pSio)
int GWENHYWFAR_CB _getSyncio (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *url, GWEN_UNUSED const char *defaultProto, GWEN_UNUSED int defaultPort, GWEN_UNUSED GWEN_SYNCIO **pSio)
static void GWENHYWFAR_CB _hideBox (GWEN_GUI *gui, uint32_t id)
void GWENHYWFAR_CB _hideBox (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t id)
static int GWENHYWFAR_CB _inputBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, char *buffer, int minLen, int maxLen, uint32_t guiid)
int GWENHYWFAR_CB _inputBox (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, GWEN_UNUSED const char *title, GWEN_UNUSED const char *text, GWEN_UNUSED char *buffer, GWEN_UNUSED int minLen, GWEN_UNUSED int maxLen, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _keyDataFromTextOpenSsl (GWEN_GUI *gui, const char *text, unsigned char *buffer, unsigned int bufLength)
int GWENHYWFAR_CB _keyDataFromTextOpenSsl (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *text, GWEN_UNUSED unsigned char *buffer, GWEN_UNUSED unsigned int bufLength)
static int GWENHYWFAR_CB _logHook (GWEN_GUI *gui, const char *logDomain, GWEN_LOGGER_LEVEL priority, const char *s)
int GWENHYWFAR_CB _logHook (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *logDomain, GWEN_UNUSED GWEN_LOGGER_LEVEL priority, GWEN_UNUSED const char *s)
static int GWENHYWFAR_CB _messageBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, const char *b1, const char *b2, const char *b3, uint32_t guiid)
int GWENHYWFAR_CB _messageBox (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, GWEN_UNUSED const char *title, GWEN_UNUSED const char *text, GWEN_UNUSED const char *b1, GWEN_UNUSED const char *b2, GWEN_UNUSED const char *b3, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _openDialog (GWEN_GUI *gui, GWEN_DIALOG *dlg, uint32_t guiid)
int GWENHYWFAR_CB _openDialog (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED GWEN_DIALOG *dlg, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _print (GWEN_GUI *gui, const char *docTitle, const char *docType, const char *descr, const char *text, uint32_t guiid)
int GWENHYWFAR_CB _print (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *docTitle, GWEN_UNUSED const char *docType, GWEN_UNUSED const char *descr, GWEN_UNUSED const char *text, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _progressAdvance (GWEN_GUI *gui, uint32_t pid, uint64_t progress)
int GWENHYWFAR_CB _progressAdvance (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t pid, GWEN_UNUSED uint64_t progress)
static int GWENHYWFAR_CB _progressEnd (GWEN_GUI *gui, uint32_t pid)
int GWENHYWFAR_CB _progressEnd (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t pid)
static int GWENHYWFAR_CB _progressLog (GWEN_GUI *gui, uint32_t pid, GWEN_LOGGER_LEVEL level, const char *text)
int GWENHYWFAR_CB _progressLog (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t pid, GWEN_UNUSED GWEN_LOGGER_LEVEL level, GWEN_UNUSED const char *text)
static int GWENHYWFAR_CB _progressSetTotal (GWEN_GUI *gui, uint32_t pid, uint64_t total)
int GWENHYWFAR_CB _progressSetTotal (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t pid, GWEN_UNUSED uint64_t total)
static uint32_t GWENHYWFAR_CB _progressStart (GWEN_GUI *gui, uint32_t progressFlags, const char *title, const char *text, uint64_t total, uint32_t guiid)
uint32_t GWENHYWFAR_CB _progressStart (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t progressFlags, GWEN_UNUSED const char *title, GWEN_UNUSED const char *text, GWEN_UNUSED uint64_t total, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _readDialogPrefs (GWEN_GUI *gui, const char *groupName, const char *altName, GWEN_DB_NODE **pDb)
int GWENHYWFAR_CB _readDialogPrefs (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *groupName, GWEN_UNUSED const char *altName, GWEN_UNUSED GWEN_DB_NODE **pDb)
static int GWENHYWFAR_CB _runDialog (GWEN_GUI *gui, GWEN_DIALOG *dlg, int timeout)
int GWENHYWFAR_CB _runDialog (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED GWEN_DIALOG *dlg, GWEN_UNUSED int timeout)
static int GWENHYWFAR_CB _setPasswordStatus (GWEN_GUI *gui, const char *token, const char *pin, GWEN_GUI_PASSWORD_STATUS status, GWEN_UNUSED uint32_t guiid)
int GWENHYWFAR_CB _setPasswordStatus (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *token, GWEN_UNUSED const char *pin, GWEN_UNUSED GWEN_GUI_PASSWORD_STATUS status, GWEN_UNUSED uint32_t guiid)
static uint32_t GWENHYWFAR_CB _showBox (GWEN_GUI *gui, uint32_t flags, const char *title, const char *text, uint32_t guiid)
uint32_t GWENHYWFAR_CB _showBox (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED uint32_t flags, GWEN_UNUSED const char *title, GWEN_UNUSED const char *text, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _waitForSockets (GWEN_GUI *gui, GWEN_SOCKET_LIST2 *readSockets, GWEN_SOCKET_LIST2 *writeSockets, int msecs, uint32_t guiid)
int GWENHYWFAR_CB _waitForSockets (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED GWEN_SOCKET_LIST2 *readSockets, GWEN_UNUSED GWEN_SOCKET_LIST2 *writeSockets, GWEN_UNUSED int msecs, GWEN_UNUSED uint32_t guiid)
static int GWENHYWFAR_CB _writeDialogPrefs (GWEN_GUI *gui, const char *groupName, GWEN_DB_NODE *db)
int GWENHYWFAR_CB _writeDialogPrefs (GWEN_UNUSED GWEN_GUI *gui, GWEN_UNUSED const char *groupName, GWEN_UNUSED GWEN_DB_NODE *db)
GWEN_GUIGWEN_NoGui_new (void)

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 30 of file nogui.c.

Function Documentation

◆ _checkCert() [1/2]

int GWENHYWFAR_CB _checkCert ( GWEN_GUI * gui,
const GWEN_SSLCERTDESCR * cert,
GWEN_SYNCIO * sio,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _checkCert() [2/2]

int GWENHYWFAR_CB _checkCert ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const GWEN_SSLCERTDESCR * cert,
GWEN_UNUSED GWEN_SYNCIO * sio,
GWEN_UNUSED uint32_t guiid )

Definition at line 387 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _closeDialog() [1/2]

int GWENHYWFAR_CB _closeDialog ( GWEN_GUI * gui,
GWEN_DIALOG * dlg )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _closeDialog() [2/2]

int GWENHYWFAR_CB _closeDialog ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED GWEN_DIALOG * dlg )

Definition at line 425 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _execDialog() [1/2]

int GWENHYWFAR_CB _execDialog ( GWEN_GUI * gui,
GWEN_DIALOG * dlg,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _execDialog() [2/2]

int GWENHYWFAR_CB _execDialog ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED GWEN_DIALOG * dlg,
GWEN_UNUSED uint32_t guiid )

Definition at line 407 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _freeData()

◆ _getFilename() [1/2]

int GWENHYWFAR_CB _getFilename ( GWEN_GUI * gui,
const char * caption,
GWEN_GUI_FILENAME_TYPE fnt,
uint32_t flags,
const char * patterns,
GWEN_BUFFER * pathBuffer,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _getFilename() [2/2]

int GWENHYWFAR_CB _getFilename ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * caption,
GWEN_UNUSED GWEN_GUI_FILENAME_TYPE fnt,
GWEN_UNUSED uint32_t flags,
GWEN_UNUSED const char * patterns,
GWEN_UNUSED GWEN_BUFFER * pathBuffer,
GWEN_UNUSED uint32_t guiid )

Definition at line 461 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _getPassword() [1/2]

int GWENHYWFAR_CB _getPassword ( GWEN_GUI * gui,
uint32_t flags,
const char * token,
const char * title,
const char * text,
char * buffer,
int minLen,
int maxLen,
GWEN_GUI_PASSWORD_METHOD methodId,
GWEN_DB_NODE * methodParams,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _getPassword() [2/2]

int GWENHYWFAR_CB _getPassword ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t flags,
GWEN_UNUSED const char * token,
GWEN_UNUSED const char * title,
GWEN_UNUSED const char * text,
GWEN_UNUSED char * buffer,
GWEN_UNUSED int minLen,
GWEN_UNUSED int maxLen,
GWEN_UNUSED GWEN_GUI_PASSWORD_METHOD methodId,
GWEN_UNUSED GWEN_DB_NODE * methodParams,
GWEN_UNUSED uint32_t guiid )

Definition at line 338 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _getSyncio() [1/2]

int GWENHYWFAR_CB _getSyncio ( GWEN_GUI * gui,
const char * url,
const char * defaultProto,
int defaultPort,
GWEN_SYNCIO ** pSio )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _getSyncio() [2/2]

int GWENHYWFAR_CB _getSyncio ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * url,
GWEN_UNUSED const char * defaultProto,
GWEN_UNUSED int defaultPort,
GWEN_UNUSED GWEN_SYNCIO ** pSio )

Definition at line 474 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _hideBox() [1/2]

void GWENHYWFAR_CB _hideBox ( GWEN_GUI * gui,
uint32_t id )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _hideBox() [2/2]

void GWENHYWFAR_CB _hideBox ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t id )

Definition at line 272 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _inputBox() [1/2]

int GWENHYWFAR_CB _inputBox ( GWEN_GUI * gui,
uint32_t flags,
const char * title,
const char * text,
char * buffer,
int minLen,
int maxLen,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _inputBox() [2/2]

int GWENHYWFAR_CB _inputBox ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t flags,
GWEN_UNUSED const char * title,
GWEN_UNUSED const char * text,
GWEN_UNUSED char * buffer,
GWEN_UNUSED int minLen,
GWEN_UNUSED int maxLen,
GWEN_UNUSED uint32_t guiid )

Definition at line 247 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _keyDataFromTextOpenSsl() [1/2]

int GWENHYWFAR_CB _keyDataFromTextOpenSsl ( GWEN_GUI * gui,
const char * text,
unsigned char * buffer,
unsigned int bufLength )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _keyDataFromTextOpenSsl() [2/2]

int GWENHYWFAR_CB _keyDataFromTextOpenSsl ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * text,
GWEN_UNUSED unsigned char * buffer,
GWEN_UNUSED unsigned int bufLength )

Definition at line 397 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _logHook() [1/2]

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

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new(), and TestGui_Extend().

Here is the caller graph for this function:

◆ _logHook() [2/2]

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

Definition at line 366 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _messageBox() [1/2]

int GWENHYWFAR_CB _messageBox ( GWEN_GUI * gui,
uint32_t flags,
const char * title,
const char * text,
const char * b1,
const char * b2,
const char * b3,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _messageBox() [2/2]

int GWENHYWFAR_CB _messageBox ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t flags,
GWEN_UNUSED const char * title,
GWEN_UNUSED const char * text,
GWEN_UNUSED const char * b1,
GWEN_UNUSED const char * b2,
GWEN_UNUSED const char * b3,
GWEN_UNUSED uint32_t guiid )

Definition at line 233 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _openDialog() [1/2]

int GWENHYWFAR_CB _openDialog ( GWEN_GUI * gui,
GWEN_DIALOG * dlg,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _openDialog() [2/2]

int GWENHYWFAR_CB _openDialog ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED GWEN_DIALOG * dlg,
GWEN_UNUSED uint32_t guiid )

Definition at line 416 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _print() [1/2]

int GWENHYWFAR_CB _print ( GWEN_GUI * gui,
const char * docTitle,
const char * docType,
const char * descr,
const char * text,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _print() [2/2]

int GWENHYWFAR_CB _print ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * docTitle,
GWEN_UNUSED const char * docType,
GWEN_UNUSED const char * descr,
GWEN_UNUSED const char * text,
GWEN_UNUSED uint32_t guiid )

Definition at line 326 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _progressAdvance() [1/2]

int GWENHYWFAR_CB _progressAdvance ( GWEN_GUI * gui,
uint32_t pid,
uint64_t progress )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _progressAdvance() [2/2]

int GWENHYWFAR_CB _progressAdvance ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t pid,
GWEN_UNUSED uint64_t progress )

Definition at line 290 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _progressEnd() [1/2]

int GWENHYWFAR_CB _progressEnd ( GWEN_GUI * gui,
uint32_t pid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _progressEnd() [2/2]

int GWENHYWFAR_CB _progressEnd ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t pid )

Definition at line 318 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _progressLog() [1/2]

int GWENHYWFAR_CB _progressLog ( GWEN_GUI * gui,
uint32_t pid,
GWEN_LOGGER_LEVEL level,
const char * text )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _progressLog() [2/2]

int GWENHYWFAR_CB _progressLog ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t pid,
GWEN_UNUSED GWEN_LOGGER_LEVEL level,
GWEN_UNUSED const char * text )

Definition at line 308 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _progressSetTotal() [1/2]

int GWENHYWFAR_CB _progressSetTotal ( GWEN_GUI * gui,
uint32_t pid,
uint64_t total )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _progressSetTotal() [2/2]

int GWENHYWFAR_CB _progressSetTotal ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t pid,
GWEN_UNUSED uint64_t total )

Definition at line 299 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _progressStart() [1/2]

uint32_t GWENHYWFAR_CB _progressStart ( GWEN_GUI * gui,
uint32_t progressFlags,
const char * title,
const char * text,
uint64_t total,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _progressStart() [2/2]

uint32_t GWENHYWFAR_CB _progressStart ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t progressFlags,
GWEN_UNUSED const char * title,
GWEN_UNUSED const char * text,
GWEN_UNUSED uint64_t total,
GWEN_UNUSED uint32_t guiid )

Definition at line 278 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _readDialogPrefs() [1/2]

int GWENHYWFAR_CB _readDialogPrefs ( GWEN_GUI * gui,
const char * groupName,
const char * altName,
GWEN_DB_NODE ** pDb )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _readDialogPrefs() [2/2]

int GWENHYWFAR_CB _readDialogPrefs ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * groupName,
GWEN_UNUSED const char * altName,
GWEN_UNUSED GWEN_DB_NODE ** pDb )

Definition at line 442 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _runDialog() [1/2]

int GWENHYWFAR_CB _runDialog ( GWEN_GUI * gui,
GWEN_DIALOG * dlg,
int timeout )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _runDialog() [2/2]

int GWENHYWFAR_CB _runDialog ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED GWEN_DIALOG * dlg,
GWEN_UNUSED int timeout )

Definition at line 433 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _setPasswordStatus() [1/2]

int GWENHYWFAR_CB _setPasswordStatus ( GWEN_GUI * gui,
const char * token,
const char * pin,
GWEN_GUI_PASSWORD_STATUS status,
GWEN_UNUSED uint32_t guiid )
static

References GWEN_UNUSED, and GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _setPasswordStatus() [2/2]

int GWENHYWFAR_CB _setPasswordStatus ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * token,
GWEN_UNUSED const char * pin,
GWEN_UNUSED GWEN_GUI_PASSWORD_STATUS status,
GWEN_UNUSED uint32_t guiid )

Definition at line 355 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _showBox() [1/2]

uint32_t GWENHYWFAR_CB _showBox ( GWEN_GUI * gui,
uint32_t flags,
const char * title,
const char * text,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _showBox() [2/2]

uint32_t GWENHYWFAR_CB _showBox ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED uint32_t flags,
GWEN_UNUSED const char * title,
GWEN_UNUSED const char * text,
GWEN_UNUSED uint32_t guiid )

Definition at line 261 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _waitForSockets() [1/2]

int GWENHYWFAR_CB _waitForSockets ( GWEN_GUI * gui,
GWEN_SOCKET_LIST2 * readSockets,
GWEN_SOCKET_LIST2 * writeSockets,
int msecs,
uint32_t guiid )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _waitForSockets() [2/2]

int GWENHYWFAR_CB _waitForSockets ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED GWEN_SOCKET_LIST2 * readSockets,
GWEN_UNUSED GWEN_SOCKET_LIST2 * writeSockets,
GWEN_UNUSED int msecs,
GWEN_UNUSED uint32_t guiid )

Definition at line 376 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ _writeDialogPrefs() [1/2]

int GWENHYWFAR_CB _writeDialogPrefs ( GWEN_GUI * gui,
const char * groupName,
GWEN_DB_NODE * db )
static

References GWENHYWFAR_CB.

Referenced by GWEN_NoGui_new().

Here is the caller graph for this function:

◆ _writeDialogPrefs() [2/2]

int GWENHYWFAR_CB _writeDialogPrefs ( GWEN_UNUSED GWEN_GUI * gui,
GWEN_UNUSED const char * groupName,
GWEN_UNUSED GWEN_DB_NODE * db )

Definition at line 452 of file nogui.c.

References GWEN_UNUSED, and GWENHYWFAR_CB.

◆ GWEN_NoGui_new()

GWEN_GUI * GWEN_NoGui_new ( void )

Create a GUI which does nothing at all, no interaction whatsoever. Every functions just returns "0" (meaning all fine) without doing anything.

You can use this GUI in side-threads which are not allowed to call real GUI functions but want to use functions which might call GWEN_GUI functions.

Due to its simplicity it can also serve as a template for your own GUI implementation.

Definition at line 182 of file nogui.c.

References _checkCert(), _closeDialog(), _execDialog(), _freeData(), _getFilename(), _getPassword(), _getSyncio(), _hideBox(), _inputBox(), _keyDataFromTextOpenSsl(), _logHook(), _messageBox(), _openDialog(), _print(), _progressAdvance(), _progressEnd(), _progressLog(), _progressSetTotal(), _progressStart(), _readDialogPrefs(), _runDialog(), _setPasswordStatus(), _showBox(), _waitForSockets(), _writeDialogPrefs(), GWEN_Gui_new(), GWEN_Gui_SetCheckCertFn(), GWEN_Gui_SetCloseDialogFn(), GWEN_Gui_SetExecDialogFn(), GWEN_Gui_SetGetFileNameFn(), GWEN_Gui_SetGetPasswordFn(), GWEN_Gui_SetGetSyncIoFn(), GWEN_Gui_SetHideBoxFn(), GWEN_Gui_SetInputBoxFn(), GWEN_Gui_SetKeyDataFromTextOpenSslFn(), GWEN_Gui_SetLogHookFn(), GWEN_Gui_SetMessageBoxFn(), GWEN_Gui_SetOpenDialogFn(), GWEN_Gui_SetPrintFn(), GWEN_Gui_SetProgressAdvanceFn(), GWEN_Gui_SetProgressEndFn(), GWEN_Gui_SetProgressLogFn(), GWEN_Gui_SetProgressSetTotalFn(), GWEN_Gui_SetProgressStartFn(), GWEN_Gui_SetReadDialogPrefsFn(), GWEN_Gui_SetRunDialogFn(), GWEN_Gui_SetSetPasswordStatusFn(), GWEN_Gui_SetShowBoxFn(), GWEN_Gui_SetWaitForSocketsFn(), GWEN_Gui_SetWriteDialogPrefsFn(), GWEN_INHERIT_SETDATA, and GWEN_NEW_OBJECT.

Here is the call graph for this function: