diff options
author | Kevin McCarthy <kevin@8t8.us> | 2017-08-10 18:18:19 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2017-08-10 18:18:19 -0700 |
commit | 3433587a5a77ef94806236cbeb6181df71440928 (patch) | |
tree | 2dbfdc6bbe6cd6701eb24270a246b9a038fa906e /attach.h | |
parent | a19e52661bb5f4e6d34c803f469f6835c309e06a (diff) |
Change helpers functions to pass actx. (see #3728)
Change the pager, compose, recvattach and recvcmd to pass the actx
instead of the individual idx and idxlen parameters.
Separate out the compose menu exit logic to first free the BODY data
and then call the shared actx free function at the bottom.
Diffstat (limited to 'attach.h')
-rw-r--r-- | attach.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -42,7 +42,7 @@ typedef struct attach_ctx void mutt_gen_attach_list (ATTACH_CONTEXT *, BODY *, int, int, int); void mutt_update_tree (ATTACH_CONTEXT *); -int mutt_view_attachment (FILE*, BODY *, int, HEADER *, ATTACHPTR **, short); +int mutt_view_attachment (FILE*, BODY *, int, HEADER *, ATTACH_CONTEXT *); int mutt_tag_attach (MUTTMENU *menu, int n, int m); int mutt_attach_display_loop (MUTTMENU *menu, int op, FILE *fp, HEADER *hdr, @@ -54,10 +54,10 @@ void mutt_save_attachment_list (FILE *fp, int tag, BODY *top, HEADER *hdr, MUTTM void mutt_pipe_attachment_list (FILE *fp, int tag, BODY *top, int filter); void mutt_print_attachment_list (FILE *fp, int tag, BODY *top); -void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *); -void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *); -void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *); -void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int); +void mutt_attach_bounce (FILE *, HEADER *, ATTACH_CONTEXT *, BODY *); +void mutt_attach_resend (FILE *, HEADER *, ATTACH_CONTEXT *, BODY *); +void mutt_attach_forward (FILE *, HEADER *, ATTACH_CONTEXT *, BODY *); +void mutt_attach_reply (FILE *, HEADER *, ATTACH_CONTEXT *, BODY *, int); void mutt_free_attach_context (ATTACH_CONTEXT **pactx); |