NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
private_data.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "private_data.h"
32
38void attach_private_data_free(struct Menu *menu, void **ptr)
39{
40 if (!ptr || !*ptr)
41 return;
42
43 // struct AttachPrivateData *priv = *ptr;
44
45 FREE(ptr);
46}
47
53{
54 struct AttachPrivateData *priv = mutt_mem_calloc(1, sizeof(struct AttachPrivateData));
55
56 return priv;
57}
struct AttachPrivateData * attach_private_data_new(void)
Create new Attach Data.
Definition: private_data.c:52
void attach_private_data_free(struct Menu *menu, void **ptr)
Free Attach Data - Implements Menu::mdata_free() -.
Definition: private_data.c:38
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.
Private state data for the Pager.
Private state data for Attachments.
Definition: private_data.h:34
struct Menu * menu
Current Menu.
Definition: private_data.h:35
Definition: lib.h:69