NeoMutt  2023-03-22-27-g3cb248
Teaching an old dog new tricks
private_data.c File Reference

Private state data for the Index. More...

#include "config.h"
#include "mutt/lib.h"
#include "private_data.h"
+ Include dependency graph for private_data.c:

Go to the source code of this file.


void index_private_data_free (struct MuttWindow *win, void **ptr)
 Free Private Index Data - Implements MuttWindow::wdata_free() -. More...
struct IndexPrivateDataindex_private_data_new (struct IndexSharedData *shared)
 Create new Index Data. More...

Detailed Description

Private state data for the Index.

  • 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 private_data.c.

Function Documentation

◆ index_private_data_new()

struct IndexPrivateData * index_private_data_new ( struct IndexSharedData shared)

Create new Index Data.

sharedShared Index data
Return values
ptrNew IndexPrivateData

Definition at line 51 of file private_data.c.

53 struct IndexPrivateData *priv = mutt_mem_calloc(1, sizeof(struct IndexPrivateData));
55 priv->shared = shared;
56 priv->newcount = -1;
57 priv->oldcount = -1;
59 return priv;
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
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
+ Here is the call graph for this function:
+ Here is the caller graph for this function: