Teaching an old dog new tricks
No Matches
private_data.h File Reference

Private state data for the Index. More...

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

Go to the source code of this file.

Data Structures

struct  IndexPrivateData
 Private state data for the Index. More...


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

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.h.

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 49 of file private_data.c.

51 struct IndexPrivateData *priv = mutt_mem_calloc(1, sizeof(struct IndexPrivateData));
53 priv->shared = shared;
54 priv->newcount = -1;
55 priv->oldcount = -1;
57 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: