NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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() -.
 
struct NntpEmailDatanntp_edata_new (void)
 Create a new NntpEmailData for an Email.
 
struct NntpEmailDatanntp_edata_get (struct Email *e)
 Get the private data for this Email.
 

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_new()

struct NntpEmailData * nntp_edata_new ( void  )

Create a new NntpEmailData for an Email.

Return values
ptrNew NntpEmailData struct

Definition at line 50 of file edata.c.

51{
52 return mutt_mem_calloc(1, sizeof(struct NntpEmailData));
53}
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
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 60 of file edata.c.

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