NeoMutt  2024-02-01-25-ga71e95
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
shared_data.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "shared_data.h"
32
36void compose_shared_data_free(struct MuttWindow *win, void **ptr)
37{
38 if (!ptr || !*ptr)
39 return;
40
41 FREE(ptr);
42}
43
49{
50 struct ComposeSharedData *shared = mutt_mem_calloc(1, sizeof(struct ComposeSharedData));
51
52 return shared;
53}
struct ComposeSharedData * compose_shared_data_new(void)
Free the compose shared data.
Definition: shared_data.c:48
void compose_shared_data_free(struct MuttWindow *win, void **ptr)
Free the compose shared data - Implements MuttWindow::wdata_free() -.
Definition: shared_data.c:36
Data shared between Index, Pager and Sidebar.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
#define FREE(x)
Definition: memory.h:45
Convenience wrapper for the library headers.
Shared Compose Data.
Definition: shared_data.h:35