NeoMutt  2024-04-25-85-g27bab4
Teaching an old dog new tricks
No Matches
edata.c File Reference

Maildir-specific Email data. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "edata.h"
+ Include dependency graph for edata.c:

Go to the source code of this file.


void maildir_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() -.
struct MaildirEmailDatamaildir_edata_new (void)
 Create a new MaildirEmailData object.
struct MaildirEmailDatamaildir_edata_get (struct Email *e)
 Get the private data for this Email.

Detailed Description

Maildir-specific Email data.

  • 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

Definition in file edata.c.

Function Documentation

◆ maildir_edata_new()

struct MaildirEmailData * maildir_edata_new ( void  )

Create a new MaildirEmailData object.

Return values
ptrNew MaildirEmailData struct

Definition at line 53 of file edata.c.

55 struct MaildirEmailData *edata = mutt_mem_calloc(1, sizeof(struct MaildirEmailData));
56 return edata;
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
void * edata
Driver-specific data.
Definition: email.h:74
Maildir-specific Email data -.
Definition: edata.h:32
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ maildir_edata_get()

struct MaildirEmailData * maildir_edata_get ( struct Email e)

Get the private data for this Email.

Return values

Definition at line 64 of file edata.c.

66 if (!e)
67 return NULL;
68 return e->edata;
+ Here is the caller graph for this function: