NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
cbar_data.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "cbar_data.h"
32
36void cbar_data_free(struct MuttWindow *win, void **ptr)
37{
38 if (!ptr || !*ptr)
39 return;
40
41 struct ComposeBarData *cbar_data = *ptr;
42
43 FREE(&cbar_data->compose_format);
44
45 FREE(ptr);
46}
47
53{
54 return mutt_mem_calloc(1, sizeof(struct ComposeBarData));
55}
struct ComposeBarData * cbar_data_new(void)
Create the private data for the Compose Bar.
Definition: cbar_data.c:52
Compose Bar Data.
void cbar_data_free(struct MuttWindow *win, void **ptr)
Free the private Compose Bar data - Implements MuttWindow::wdata_free() -.
Definition: cbar_data.c:36
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.
Data to fill the Compose Bar Window.
Definition: cbar_data.h:34
char * compose_format
Cached status string.
Definition: cbar_data.h:35