NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mdata.h File Reference

Maildir-specific Mailbox data. More...

#include <sys/types.h>
#include <time.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  MaildirMboxData
 Maildir-specific Mailbox data -. More...
 

Functions

void maildir_mdata_free (void **ptr)
 Free the private Mailbox data - Implements Mailbox::mdata_free() -.
 
struct MaildirMboxDatamaildir_mdata_get (struct Mailbox *m)
 Get the private data for this Mailbox.
 
struct MaildirMboxDatamaildir_mdata_new (void)
 Create a new MaildirMboxData object.
 

Detailed Description

Maildir-specific Mailbox 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 mdata.h.

Function Documentation

◆ maildir_mdata_get()

struct MaildirMboxData * maildir_mdata_get ( struct Mailbox m)

Get the private data for this Mailbox.

Parameters
mMailbox
Return values
ptrMaildirMboxData

Definition at line 59 of file mdata.c.

60{
61 if (m && (m->type == MUTT_MAILDIR))
62 return m->mdata;
63
64 return NULL;
65}
@ MUTT_MAILDIR
'Maildir' Mailbox type
Definition: mailbox.h:48
enum MailboxType type
Mailbox type.
Definition: mailbox.h:102
void * mdata
Driver specific data.
Definition: mailbox.h:132
+ Here is the caller graph for this function:

◆ maildir_mdata_new()

struct MaildirMboxData * maildir_mdata_new ( void  )

Create a new MaildirMboxData object.

Return values
ptrNew MaildirMboxData struct

Definition at line 49 of file mdata.c.

50{
51 return MUTT_MEM_CALLOC(1, struct MaildirMboxData);
52}
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
Maildir-specific Mailbox data -.
Definition: mdata.h:35
+ Here is the caller graph for this function: