NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
edata.h File Reference

Maildir-specific Email data. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MaildirEmailData
 Maildir-specific Email data -. More...
 

Functions

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

Detailed Description

Maildir-specific Email 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 edata.h.

Function Documentation

◆ maildir_edata_get()

struct MaildirEmailData * maildir_edata_get ( struct Email e)

Get the private data for this Email.

Parameters
eEmail
Return values
ptrMaildirEmailData

Definition at line 64 of file edata.c.

65{
66 if (!e)
67 return NULL;
68 return e->edata;
69}
void * edata
Driver-specific data.
Definition: email.h:74
+ Here is the caller graph for this function:

◆ 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.

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