NeoMutt  2025-09-05-43-g177ed6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
private_data.c
Go to the documentation of this file.
1
22
28
29#include "config.h"
30#include "mutt/lib.h"
31#include "private_data.h"
32#include "lib.h"
33
38{
39 if (!ptr || !*ptr)
40 return;
41
42 struct BrowserPrivateData *priv = *ptr;
43
46 destroy_state(&priv->state);
47
48 FREE(ptr);
49}
50
56{
58
59 priv->old_last_dir = buf_pool_get();
60 priv->prefix = buf_pool_get();
61
62 return priv;
63}
void destroy_state(struct BrowserState *state)
Free the BrowserState.
Definition functions.c:135
Select a Mailbox from a list.
struct BrowserPrivateData * browser_private_data_new(void)
Create new Browser Data.
Private state data for the Browser.
void browser_private_data_free(struct BrowserPrivateData **ptr)
Free Private Browser Data - Implements MuttWindow::wdata_free() -.
#define FREE(x)
Definition memory.h:62
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:47
Convenience wrapper for the library headers.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
Definition pool.c:82
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
Definition pool.c:96
Private state data for the Browser.
struct Buffer * prefix
Folder prefix string.
struct Buffer * old_last_dir
Previous to last dir.
struct BrowserState state
State containing list of files/dir/mailboxes.