NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
wdata.c
Go to the documentation of this file.
1
22
28
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
39
void
env_wdata_free
(
struct
MuttWindow
*win,
void
**ptr)
40
{
41
if
(!ptr || !*ptr)
42
return
;
43
44
FREE
(ptr);
45
}
46
51
struct
EnvelopeWindowData
*
env_wdata_new
(
void
)
52
{
53
struct
EnvelopeWindowData
*wdata =
MUTT_MEM_CALLOC
(1,
struct
EnvelopeWindowData
);
54
55
#ifdef USE_AUTOCRYPT
56
wdata->
autocrypt_rec
=
AUTOCRYPT_REC_OFF
;
57
#endif
58
59
return
wdata;
60
}
lib.h
Autocrypt end-to-end encryption.
AUTOCRYPT_REC_OFF
@ AUTOCRYPT_REC_OFF
No recommendations.
Definition
lib.h:167
env_wdata_new
struct EnvelopeWindowData * env_wdata_new(void)
Create new Envelope Data.
Definition
wdata.c:51
wdata.h
Envelope Window Data.
env_wdata_free
void env_wdata_free(struct MuttWindow *win, void **ptr)
Free the Envelope Data - Implements MuttWindow::wdata_free() -.
Definition
wdata.c:39
FREE
#define FREE(x)
Free memory and set the pointer to NULL.
Definition
memory.h:68
MUTT_MEM_CALLOC
#define MUTT_MEM_CALLOC(n, type)
Definition
memory.h:52
lib.h
Convenience wrapper for the library headers.
EnvelopeWindowData
Data to fill the Envelope Window.
Definition
wdata.h:38
EnvelopeWindowData::autocrypt_rec
enum AutocryptRec autocrypt_rec
Autocrypt recommendation.
Definition
wdata.h:50
MuttWindow
Definition
mutt_window.h:129