NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
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.

Functions

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.

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

Function Documentation

◆ index_private_data_new()

struct IndexPrivateData * index_private_data_new ( struct IndexSharedData shared)

Create new Index Data.

Parameters
sharedShared Index data
Return values
ptrNew IndexPrivateData

Definition at line 51 of file private_data.c.

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 * 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: