NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
wdata.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include "
mutt/lib.h
"
31
#include "
wdata.h
"
32
37
struct
ProgressWindowData
*
progress_wdata_new
(
void
)
38
{
39
return
MUTT_MEM_CALLOC
(1,
struct
ProgressWindowData
);
40
}
41
45
void
progress_wdata_free
(
struct
MuttWindow
*
win
,
void
**ptr)
46
{
47
if
(!
win
|| !ptr || !*ptr)
48
return
;
49
50
FREE
(ptr);
51
}
progress_wdata_free
void progress_wdata_free(struct MuttWindow *win, void **ptr)
Free Progress Bar Window data - Implements MuttWindow::wdata_free() -.
Definition
wdata.c:45
FREE
#define FREE(x)
Free memory and set the pointer to NULL.
Definition
memory.h:68
MUTT_MEM_CALLOC
#define MUTT_MEM_CALLOC(n, type)
Definition
memory.h:52
lib.h
Convenience wrapper for the library headers.
progress_wdata_new
struct ProgressWindowData * progress_wdata_new(void)
Create new Progress Bar Window Data.
Definition
wdata.c:37
wdata.h
Progress Bar Window Data.
MuttWindow
Definition
mutt_window.h:129
ProgressWindowData
Progress Bar Window Data.
Definition
wdata.h:36
ProgressWindowData::win
struct MuttWindow * win
Window to draw on.
Definition
wdata.h:37