NeoMutt  2024-03-23-142-g2b2e76
Teaching an old dog new tricks
No Matches
private_data.c File Reference

Private state data for the Browser. More...

#include "config.h"
#include "mutt/lib.h"
#include "private_data.h"
#include "lib.h"
+ Include dependency graph for private_data.c:

Go to the source code of this file.


void browser_private_data_free (struct BrowserPrivateData **ptr)
 Free Private Browser Data - Implements MuttWindow::wdata_free() -.
struct BrowserPrivateDatabrowser_private_data_new (void)
 Create new Browser Data.

Detailed Description

Private state data for the Browser.

  • 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

◆ browser_private_data_new()

struct BrowserPrivateData * browser_private_data_new ( void  )

Create new Browser Data.

Return values
ptrNew BrowserPrivateData

Definition at line 55 of file private_data.c.

57 struct BrowserPrivateData *priv = mutt_mem_calloc(1, sizeof(struct BrowserPrivateData));
59 priv->OldLastDir = buf_pool_get();
60 priv->prefix = buf_pool_get();
62 return priv;
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
Definition: pool.c:81
Private state data for the Browser.
Definition: private_data.h:34
struct Buffer * prefix
Folder prefix string.
Definition: private_data.h:49
struct Buffer * OldLastDir
Previous to last dir.
Definition: private_data.h:48
+ Here is the call graph for this function:
+ Here is the caller graph for this function: