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

Compose Attach Data. More...

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

Go to the source code of this file.

Functions

void attach_data_free (struct Menu *menu, void **ptr)
 Free the Compose Attach Data - Implements Menu::mdata_free() -. More...
 
struct ComposeAttachDataattach_data_new (struct Email *e)
 Create new Compose Attach Data. More...
 

Detailed Description

Compose Attach 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 attach_data.c.

Function Documentation

◆ attach_data_new()

struct ComposeAttachData* attach_data_new ( struct Email e)

Create new Compose Attach Data.

Return values
ptrNew Compose Attach Data

Definition at line 50 of file attach_data.c.

51 {
52  struct ComposeAttachData *attach_data =
53  mutt_mem_calloc(1, sizeof(struct ComposeAttachData));
54 
55  attach_data->actx = mutt_actx_new();
56  attach_data->actx->email = e;
57 
58  return attach_data;
59 }
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
Data to fill the Compose Attach Window.
Definition: attach_data.h:32
struct Email * email
Used by recvattach for updating.
Definition: attach.h:51
struct AttachCtx * actx
Definition: attach_data.h:34
struct AttachCtx * mutt_actx_new(void)
Create a new Attachment Context.
Definition: attach.c:131
+ Here is the call graph for this function:
+ Here is the caller graph for this function: