NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
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...
 

Functions

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.

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

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

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