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

Private state data for the Pager. More...

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include "mutt/lib.h"
#include "lib.h"
#include "menu/lib.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  PagerPrivateData
 Private state data for the Pager. More...
 

Functions

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.

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

◆ pager_private_data_free()

void pager_private_data_free ( struct MuttWindow win,
void **  ptr 
)

Free Pager Data.

Parameters
winWindow
ptrPager Data to free

Definition at line 38 of file private_data.c.

39 {
40  if (!ptr || !*ptr)
41  return;
42 
43  // struct PagerPrivateData *priv = *ptr;
44 
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));
55 
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: