NeoMutt  2024-12-12-14-g7b49f7
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, 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
#define FREE(x)
Definition: memory.h:55
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
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