NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
env_data.c File Reference

Compose Envelope Data. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Compose Envelope 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 env_data.c.

Function Documentation

◆ env_data_new()

struct ComposeEnvelopeData* env_data_new ( void  )

Create new Compose Envelope Data.

Return values
ptrNew Compose Envelope Data

Definition at line 51 of file env_data.c.

52 {
53  struct ComposeEnvelopeData *env_data =
54  mutt_mem_calloc(1, sizeof(struct ComposeEnvelopeData));
55 
56  STAILQ_INIT(&env_data->to_list);
57  STAILQ_INIT(&env_data->cc_list);
58  STAILQ_INIT(&env_data->bcc_list);
59 
60  return env_data;
61 }
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
struct ListHead cc_list
'Cc:' list of addresses
Definition: env_data.h:42
Data to fill the Compose Envelope Window.
Definition: env_data.h:37
#define STAILQ_INIT(head)
Definition: queue.h:372
struct ListHead bcc_list
'Bcc:' list of addresses
Definition: env_data.h:43
struct ListHead to_list
'To:' list of addresses
Definition: env_data.h:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function: