NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
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.

Functions

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.

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

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

56{
57 struct BrowserPrivateData *priv = mutt_mem_calloc(1, sizeof(struct BrowserPrivateData));
58
59 priv->OldLastDir = buf_pool_get();
60 priv->prefix = buf_pool_get();
61
62 return priv;
63}
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: