NeoMutt  2024-04-25-97-g7d2481
Teaching an old dog new tricks
No Matches
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() -.
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.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 49 of file private_data.c.

51 struct IndexPrivateData *priv = mutt_mem_calloc(1, sizeof(struct IndexPrivateData));
53 priv->shared = shared;
54 priv->oldcount = -1;
56 return priv;
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
Private state data for the Index.
Definition: private_data.h:35
struct IndexSharedData * shared
Shared Index data.
Definition: private_data.h:40
int oldcount
Old count of mails in the mailbox.
Definition: private_data.h:37
+ Here is the call graph for this function:
+ Here is the caller graph for this function: