NeoMutt  2022-04-29-249-gaae397
Teaching an old dog new tricks
DOXYGEN
attach_data.h File Reference

Compose Attach Data. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ComposeAttachData
 Data to fill the Compose Attach Window. More...
 

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

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