NeoMutt  2023-05-17-16-g61469c
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 FREE(ptr);
41}
#define FREE(x)
Definition: memory.h:43
+ 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 47 of file edata.c.

48{
49 return mutt_mem_calloc(1, sizeof(struct NntpEmailData));
50}
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:35
+ 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 57 of file edata.c.

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