NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
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 // struct ComposeSharedData *shared = *ptr;
39
40 FREE(ptr);
41}
42
48{
49 struct ComposeSharedData *shared = mutt_mem_calloc(1, sizeof(struct ComposeSharedData));
50
51 return shared;
52}
struct ComposeSharedData * compose_shared_data_new(void)
Free the compose shared data.
Definition: shared_data.c:47
void compose_shared_data_free(struct MuttWindow *win, void **ptr)
Create 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:43
Convenience wrapper for the library headers.
Shared Compose Data.
Definition: shared_data.h:33