NeoMutt
2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
38
void
attach_private_data_free
(
struct
Menu
*
menu
,
void
**ptr)
39
{
40
if
(!ptr || !*ptr)
41
return
;
42
43
FREE
(ptr);
44
}
45
50
struct
AttachPrivateData
*
attach_private_data_new
(
void
)
51
{
52
struct
AttachPrivateData
*priv =
mutt_mem_calloc
(1,
sizeof
(
struct
AttachPrivateData
));
53
54
return
priv;
55
}
attach_private_data_new
struct AttachPrivateData * attach_private_data_new(void)
Create new Attach Data.
Definition:
private_data.c:50
attach_private_data_free
void attach_private_data_free(struct Menu *menu, void **ptr)
Free the Attach Data - Implements Menu::mdata_free() -.
Definition:
private_data.c:38
mutt_mem_calloc
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition:
memory.c:51
FREE
#define FREE(x)
Definition:
memory.h:45
lib.h
Convenience wrapper for the library headers.
private_data.h
Private state data for the Pager.
AttachPrivateData
Private state data for Attachments.
Definition:
private_data.h:36
AttachPrivateData::menu
struct Menu * menu
Current Menu.
Definition:
private_data.h:37
Menu
Definition:
lib.h:79