NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
cbar_data.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include "
mutt/lib.h
"
31
#include "
cbar_data.h
"
32
36
void
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
52
struct
ComposeBarData
*
cbar_data_new
(
void
)
53
{
54
return
MUTT_MEM_CALLOC
(1,
struct
ComposeBarData
);
55
}
cbar_data_new
struct ComposeBarData * cbar_data_new(void)
Create the private data for the Compose Bar.
Definition
cbar_data.c:52
cbar_data.h
Compose Bar Data.
cbar_data_free
void cbar_data_free(struct MuttWindow *win, void **ptr)
Free the private Compose Bar data - Implements MuttWindow::wdata_free() -.
Definition
cbar_data.c:36
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.
ComposeBarData
Data to fill the Compose Bar Window.
Definition
cbar_data.h:32
ComposeBarData::compose_format
char * compose_format
Cached status string.
Definition
cbar_data.h:33
MuttWindow
Definition
mutt_window.h:129