NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
private_data.c
Go to the documentation of this file.
1
29#include "config.h"
30#include "mutt/lib.h"
31#include "private_data.h"
32
36void index_private_data_free(struct MuttWindow *win, void **ptr)
37{
38 if (!ptr || !*ptr)
39 return;
40
41 // struct IndexPrivateData *priv = *ptr;
42
43 FREE(ptr);
44}
45
52{
53 struct IndexPrivateData *priv = mutt_mem_calloc(1, sizeof(struct IndexPrivateData));
54
55 priv->shared = shared;
56 priv->newcount = -1;
57 priv->oldcount = -1;
58
59 return priv;
60}
void index_private_data_free(struct MuttWindow *win, void **ptr)
Free Private Index Data - Implements MuttWindow::wdata_free() -.
Definition: private_data.c:36
struct IndexPrivateData * index_private_data_new(struct IndexSharedData *shared)
Create new Index Data.
Definition: private_data.c:51
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
#define FREE(x)
Definition: memory.h:43
Convenience wrapper for the library headers.
Private state data for the Pager.
Private state data for the Index.
Definition: private_data.h:35
int newcount
New count of Emails in the Mailbox.
Definition: private_data.h:38
struct IndexSharedData * shared
Shared Index data.
Definition: private_data.h:42
int oldcount
Old count of Emails in the Mailbox.
Definition: private_data.h:37
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:37