NeoMutt  2024-10-02-7-gd3e66a
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, sizeof(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
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
#define FREE(x)
Definition: memory.h:45
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