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

Compose Shared Data. More...

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

Go to the source code of this file.

Functions

void compose_shared_data_free (struct MuttWindow *win, void **ptr)
 Create the compose shared data - Implements MuttWindow::wdata_free() -. More...
 
struct ComposeSharedDatacompose_shared_data_new (void)
 Free the compose shared data. More...
 

Detailed Description

Compose Shared 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 shared_data.c.

Function Documentation

◆ compose_shared_data_new()

struct ComposeSharedData* compose_shared_data_new ( void  )

Free the compose shared data.

Return values
ptrNew compose shared data

Definition at line 49 of file shared_data.c.

50 {
51  struct ComposeSharedData *shared = mutt_mem_calloc(1, sizeof(struct ComposeSharedData));
52 
53  shared->notify = notify_new();
54 
55  return shared;
56 }
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
Shared Compose Data.
Definition: shared_data.h:29
struct Notify * notify_new(void)
Create a new notifications handler.
Definition: notify.c:60
struct Notify * notify
Notifications: NotifyCompose.
Definition: shared_data.h:36
+ Here is the call graph for this function:
+ Here is the caller graph for this function: