NeoMutt  2022-04-29-323-g5fcc6c
Teaching an old dog new tricks
DOXYGEN
wdata.c File Reference

Envelope Window Data. More...

#include "config.h"
#include "mutt/lib.h"
#include "wdata.h"
#include "autocrypt/lib.h"
+ Include dependency graph for wdata.c:

Go to the source code of this file.

Functions

void env_wdata_free (struct MuttWindow *win, void **ptr)
 Free the Envelope Data - Implements MuttWindow::wdata_free() -. More...
 
struct EnvelopeWindowDataenv_wdata_new (void)
 Create new Envelope Data. More...
 

Detailed Description

Envelope Window Data.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file wdata.c.

Function Documentation

◆ env_wdata_new()

struct EnvelopeWindowData * env_wdata_new ( void  )

Create new Envelope Data.

Return values
ptrNew Envelope Data

Definition at line 55 of file wdata.c.

56{
57 struct EnvelopeWindowData *wdata = mutt_mem_calloc(1, sizeof(struct EnvelopeWindowData));
58
59 STAILQ_INIT(&wdata->to_list);
60 STAILQ_INIT(&wdata->cc_list);
61 STAILQ_INIT(&wdata->bcc_list);
62
63#ifdef USE_AUTOCRYPT
65#endif
66
67 return wdata;
68}
@ AUTOCRYPT_REC_OFF
No recommendations.
Definition: lib.h:158
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
#define STAILQ_INIT(head)
Definition: queue.h:372
Data to fill the Envelope Window.
Definition: wdata.h:39
struct ListHead cc_list
'Cc:' list of addresses
Definition: wdata.h:45
struct ListHead bcc_list
'Bcc:' list of addresses
Definition: wdata.h:46
enum AutocryptRec autocrypt_rec
Autocrypt recommendation.
Definition: wdata.h:57
struct ListHead to_list
'To:' list of addresses
Definition: wdata.h:44
+ Here is the call graph for this function:
+ Here is the caller graph for this function: