NeoMutt  2024-04-25-1-g3de005
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
msgwin_wdata.c File Reference

Message Window private data. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "msgwin_wdata.h"
+ Include dependency graph for msgwin_wdata.c:

Go to the source code of this file.

Functions

void msgwin_wdata_free (struct MuttWindow *win, void **ptr)
 Free the private data - Implements MuttWindow::wdata_free() -.
 
struct MsgWinWindowDatamsgwin_wdata_new (void)
 Create new private data for the Message Window.
 

Detailed Description

Message Window private data.

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 msgwin_wdata.c.

Function Documentation

◆ msgwin_wdata_new()

struct MsgWinWindowData * msgwin_wdata_new ( void  )

Create new private data for the Message Window.

Return values
ptrNew private data

Definition at line 60 of file msgwin_wdata.c.

61{
62 struct MsgWinWindowData *wdata = mutt_mem_calloc(1, sizeof(struct MsgWinWindowData));
63
64 wdata->text = buf_new(NULL);
65
66 return wdata;
67}
struct Buffer * buf_new(const char *str)
Allocate a new Buffer.
Definition: buffer.c:303
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
Message Window private Window data.
Definition: msgwin_wdata.h:66
struct Buffer * text
Cached display string.
Definition: msgwin_wdata.h:67
+ Here is the call graph for this function:
+ Here is the caller graph for this function: