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