NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
mdata.h File Reference

Nntp-specific Mailbox data. More...

#include <stdbool.h>
#include "lib.h"
+ Include dependency graph for mdata.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NntpMboxData
 NNTP-specific Mailbox data -. More...


void nntp_mdata_free (void **ptr)
 Free the private Mailbox data - Implements Mailbox::mdata_free() More...

Detailed Description

Nntp-specific Mailbox data.

  • 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

Definition in file mdata.h.

Function Documentation

◆ nntp_mdata_free()

void nntp_mdata_free ( void **  ptr)

Free the private Mailbox data - Implements Mailbox::mdata_free()

Definition at line 38 of file mdata.c.

39 {
40  struct NntpMboxData *mdata = *ptr;
42  nntp_acache_free(mdata);
43  mutt_bcache_close(&mdata->bcache);
44  FREE(&mdata->newsrc_ent);
45  FREE(&mdata->desc);
46  FREE(ptr);
47 }
void * mdata
Driver specific data.
Definition: mailbox.h:136
struct BodyCache * bcache
Definition: mdata.h:49
struct NewsrcEntry * newsrc_ent
Definition: mdata.h:46
NNTP-specific Mailbox data -.
Definition: mdata.h:32
#define FREE(x)
Definition: memory.h:40
void nntp_acache_free(struct NntpMboxData *mdata)
Remove all temporarily cache files.
Definition: newsrc.c:102
void mutt_bcache_close(struct BodyCache **bcache)
Close an Email-Body Cache.
Definition: bcache.c:164
char * desc
Definition: mdata.h:35
+ Here is the call graph for this function:
+ Here is the caller graph for this function: