NeoMutt  2021-10-29-43-g6b8931
Teaching an old dog new tricks
DOXYGEN
edata.c
Go to the documentation of this file.
1 
29 #include "config.h"
30 #include <stddef.h>
31 #include "mutt/lib.h"
32 #include "email/lib.h"
33 #include "edata.h"
34 
38 void nntp_edata_free(void **ptr)
39 {
40  // struct NntpEmailData *edata = *ptr;
41  FREE(ptr);
42 }
43 
49 {
50  return mutt_mem_calloc(1, sizeof(struct NntpEmailData));
51 }
52 
59 {
60  if (!e)
61  return NULL;
62  return e->edata;
63 }
Structs that make up an email.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
#define FREE(x)
Definition: memory.h:40
Convenience wrapper for the library headers.
struct NntpEmailData * nntp_edata_new(void)
Create a new NntpEmailData for an Email.
Definition: edata.c:48
void nntp_edata_free(void **ptr)
Free the private Email data - Implements Email::edata_free()
Definition: edata.c:38
struct NntpEmailData * nntp_edata_get(struct Email *e)
Get the private data for this Email.
Definition: edata.c:58
Pop-specific Email data.
The envelope/body of an email.
Definition: email.h:37
void * edata
Driver-specific data.
Definition: email.h:72
NNTP-specific Email data -.
Definition: edata.h:35