NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
private_data.c File Reference

Private state data for the Pager. 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 pager_private_data_free (struct MuttWindow *win, void **ptr)
 Free Pager Data. More...
struct PagerPrivateDatapager_private_data_new (void)
 Create new Pager Data. More...

Detailed Description

Private state data for the Pager.

  • 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

◆ pager_private_data_free()

void pager_private_data_free ( struct MuttWindow win,
void **  ptr 

Free Pager Data.

ptrPager Data to free

Definition at line 38 of file private_data.c.

39 {
40  if (!ptr || !*ptr)
41  return;
43  // struct PagerPrivateData *priv = *ptr;
45  FREE(ptr);
46 }
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ pager_private_data_new()

struct PagerPrivateData* pager_private_data_new ( void  )

Create new Pager Data.

Return values
ptrNew PagerPrivateData

Definition at line 52 of file private_data.c.

53 {
54  struct PagerPrivateData *priv = mutt_mem_calloc(1, sizeof(struct PagerPrivateData));
56  return priv;
57 }
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 Pager.
Definition: private_data.h:39
+ Here is the call graph for this function:
+ Here is the caller graph for this function: