gwenhywfar  5.10.1
Typedefs | Functions
cprogress_l.h File Reference
#include <gwenhywfar/list.h>
#include <gwenhywfar/gui.h>
#include <gwenhywfar/buffer.h>
#include <gwenhywfar/logger.h>
Include dependency graph for cprogress_l.h:

Go to the source code of this file.

Typedefs

typedef struct GWEN_GUI_CPROGRESS GWEN_GUI_CPROGRESS
 

Functions

int GWEN_Gui_CProgress_Advance (GWEN_GUI_CPROGRESS *cp, uint64_t progress)
 
int GWEN_Gui_CProgress_End (GWEN_GUI_CPROGRESS *cp)
 
void GWEN_Gui_CProgress_free (GWEN_GUI_CPROGRESS *cp)
 
int GWEN_Gui_CProgress_GetAborted (const GWEN_GUI_CPROGRESS *cp)
 
uint64_t GWEN_Gui_CProgress_GetCurrent (const GWEN_GUI_CPROGRESS *cp)
 
GWEN_GUIGWEN_Gui_CProgress_GetGui (const GWEN_GUI_CPROGRESS *cp)
 
uint32_t GWEN_Gui_CProgress_GetId (const GWEN_GUI_CPROGRESS *cp)
 
const char * GWEN_Gui_CProgress_GetLogBuf (const GWEN_GUI_CPROGRESS *cp)
 
const char * GWEN_Gui_CProgress_GetText (const GWEN_GUI_CPROGRESS *cp)
 
const char * GWEN_Gui_CProgress_GetTitle (const GWEN_GUI_CPROGRESS *cp)
 
uint64_t GWEN_Gui_CProgress_GetTotal (const GWEN_GUI_CPROGRESS *cp)
 
int GWEN_Gui_CProgress_Log (GWEN_GUI_CPROGRESS *cp, GWEN_LOGGER_LEVEL level, const char *text)
 
GWEN_GUI_CPROGRESSGWEN_Gui_CProgress_new (GWEN_GUI *gui, uint32_t id, uint32_t progressFlags, const char *title, const char *text, uint64_t total)
 
void GWEN_Gui_CProgress_SetTotal (GWEN_GUI_CPROGRESS *cp, uint64_t i)
 

Typedef Documentation

◆ GWEN_GUI_CPROGRESS

Definition at line 14 of file cprogress_l.h.

Function Documentation

◆ GWEN_Gui_CProgress_Advance()

int GWEN_Gui_CProgress_Advance ( GWEN_GUI_CPROGRESS cp,
uint64_t  progress 
)

◆ GWEN_Gui_CProgress_End()

int GWEN_Gui_CProgress_End ( GWEN_GUI_CPROGRESS cp)

Definition at line 272 of file cprogress.c.

References CProgressLevel, GWEN_ERROR_USER_ABORTED, GWEN_GUI_FLAGS_NONINTERACTIVE, GWEN_Gui_GetFlags(), GWEN_Gui_StdPrintf(), and GWEN_LoggerLevel_Notice.

Referenced by GWEN_Gui_CGui_ProgressEnd().

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

◆ GWEN_Gui_CProgress_free()

void GWEN_Gui_CProgress_free ( GWEN_GUI_CPROGRESS cp)

Definition at line 75 of file cprogress.c.

References GWEN_Buffer_free(), GWEN_FREE_OBJECT, and GWEN_LIST_FINI.

Referenced by GWEN_Gui_CGui_ProgressEnd().

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

◆ GWEN_Gui_CProgress_GetAborted()

int GWEN_Gui_CProgress_GetAborted ( const GWEN_GUI_CPROGRESS cp)

Definition at line 153 of file cprogress.c.

◆ GWEN_Gui_CProgress_GetCurrent()

uint64_t GWEN_Gui_CProgress_GetCurrent ( const GWEN_GUI_CPROGRESS cp)

Definition at line 136 of file cprogress.c.

◆ GWEN_Gui_CProgress_GetGui()

GWEN_GUI* GWEN_Gui_CProgress_GetGui ( const GWEN_GUI_CPROGRESS cp)

Definition at line 88 of file cprogress.c.

◆ GWEN_Gui_CProgress_GetId()

uint32_t GWEN_Gui_CProgress_GetId ( const GWEN_GUI_CPROGRESS cp)

Definition at line 96 of file cprogress.c.

Referenced by GWEN_Gui_CGui__findProgress(), and GWEN_Gui_CGui_ProgressStart().

Here is the caller graph for this function:

◆ GWEN_Gui_CProgress_GetLogBuf()

const char* GWEN_Gui_CProgress_GetLogBuf ( const GWEN_GUI_CPROGRESS cp)

Definition at line 144 of file cprogress.c.

References GWEN_Buffer_GetStart().

Here is the call graph for this function:

◆ GWEN_Gui_CProgress_GetText()

const char* GWEN_Gui_CProgress_GetText ( const GWEN_GUI_CPROGRESS cp)

Definition at line 112 of file cprogress.c.

◆ GWEN_Gui_CProgress_GetTitle()

const char* GWEN_Gui_CProgress_GetTitle ( const GWEN_GUI_CPROGRESS cp)

Definition at line 104 of file cprogress.c.

◆ GWEN_Gui_CProgress_GetTotal()

uint64_t GWEN_Gui_CProgress_GetTotal ( const GWEN_GUI_CPROGRESS cp)

Definition at line 120 of file cprogress.c.

◆ GWEN_Gui_CProgress_Log()

int GWEN_Gui_CProgress_Log ( GWEN_GUI_CPROGRESS cp,
GWEN_LOGGER_LEVEL  level,
const char *  text 
)

◆ GWEN_Gui_CProgress_new()

GWEN_GUI_CPROGRESS* GWEN_Gui_CProgress_new ( GWEN_GUI gui,
uint32_t  id,
uint32_t  progressFlags,
const char *  title,
const char *  text,
uint64_t  total 
)

Definition at line 28 of file cprogress.c.

References CProgressLevel, GWEN_Buffer_new(), GWEN_GUI_PROGRESS_DELAY, GWEN_Gui_StdPrintf(), GWEN_LIST_INIT, GWEN_Logger_Name2Level(), GWEN_LoggerLevel_Info, GWEN_LoggerLevel_Unknown, GWEN_LoggerLevel_Warning, and GWEN_NEW_OBJECT.

Referenced by GWEN_Gui_CGui_ProgressStart().

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

◆ GWEN_Gui_CProgress_SetTotal()

void GWEN_Gui_CProgress_SetTotal ( GWEN_GUI_CPROGRESS cp,
uint64_t  i 
)

Definition at line 128 of file cprogress.c.

Referenced by GWEN_Gui_CGui_ProgressSetTotal().

Here is the caller graph for this function: