NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
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.

Functions

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.

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

54{
55 return MUTT_MEM_CALLOC(1, struct MaildirEmailData);
56}
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
Maildir-specific Email data -.
Definition: edata.h:32
+ 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.

Parameters
eEmail
Return values
ptrMaildirEmailData

Definition at line 63 of file edata.c.

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