NeoMutt  2024-04-25-97-g7d2481
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
wdata.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "wdata.h"
32#ifdef USE_AUTOCRYPT
33#include "autocrypt/lib.h"
34#endif
35
39void env_wdata_free(struct MuttWindow *win, void **ptr)
40{
41 if (!ptr || !*ptr)
42 return;
43
44 FREE(ptr);
45}
46
52{
53 struct EnvelopeWindowData *wdata = mutt_mem_calloc(1, sizeof(struct EnvelopeWindowData));
54
55#ifdef USE_AUTOCRYPT
57#endif
58
59 return wdata;
60}
Autocrypt end-to-end encryption.
@ AUTOCRYPT_REC_OFF
No recommendations.
Definition: lib.h:159
struct EnvelopeWindowData * env_wdata_new(void)
Create new Envelope Data.
Definition: wdata.c:51
void env_wdata_free(struct MuttWindow *win, void **ptr)
Free the Envelope Data - Implements MuttWindow::wdata_free() -.
Definition: wdata.c:39
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
#define FREE(x)
Definition: memory.h:45
Convenience wrapper for the library headers.
Progress Bar Window Data.
Data to fill the Envelope Window.
Definition: wdata.h:38
enum AutocryptRec autocrypt_rec
Autocrypt recommendation.
Definition: wdata.h:50