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

Nntp-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 nntp_edata_free (void **ptr)
 Free the private Email data - Implements Email::edata_free() More...
 
struct NntpEmailDatanntp_edata_new (void)
 Create a new NntpEmailData for an Email. More...
 
struct NntpEmailDatanntp_edata_get (struct Email *e)
 Get the private data for this Email. More...
 

Detailed Description

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

◆ nntp_edata_free()

void nntp_edata_free ( void **  ptr)

Free the private Email data - Implements Email::edata_free()

Definition at line 38 of file edata.c.

39 {
40  // struct NntpEmailData *edata = *ptr;
41  FREE(ptr);
42 }
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ nntp_edata_new()

struct NntpEmailData* nntp_edata_new ( void  )

Create a new NntpEmailData for an Email.

Return values
ptrNew NntpEmailData struct

Definition at line 48 of file edata.c.

49 {
50  return mutt_mem_calloc(1, sizeof(struct NntpEmailData));
51 }
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
NNTP-specific Email data -.
Definition: edata.h:34
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nntp_edata_get()

struct NntpEmailData* nntp_edata_get ( struct Email e)

Get the private data for this Email.

Parameters
eEmail
Return values
ptrPrivate Email data

Definition at line 58 of file edata.c.

59 {
60  if (!e)
61  return NULL;
62  return e->edata;
63 }
void * edata
Driver-specific data.
Definition: email.h:111
+ Here is the caller graph for this function: