summaryrefslogtreecommitdiffstats
path: root/attach.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-08-10 18:18:20 -0700
committerKevin McCarthy <kevin@8t8.us>2017-08-10 18:18:20 -0700
commit7a002ec117886669ba9e1f19bed506847b730c9d (patch)
tree11f11cf6d58c487183398e9f3a8de250d7c44a24 /attach.h
parent3433587a5a77ef94806236cbeb6181df71440928 (diff)
Add helpers to add and remove actx entries. (see #3728)
Use the helper in compose update_idx(), to consolidate the resize logic and simplify the code. Separate out the actx "free" routine from a routine to empty out the idx. The index regeneration routines should flush and rebuild the index without having to renerate the actx structure.
Diffstat (limited to 'attach.h')
-rw-r--r--attach.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/attach.h b/attach.h
index e5b3a82d..41d78087 100644
--- a/attach.h
+++ b/attach.h
@@ -59,6 +59,8 @@ 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_actx_add_attach (ATTACH_CONTEXT *actx, ATTACHPTR *attach, MUTTMENU *menu);
+void mutt_actx_free_entries (ATTACH_CONTEXT *actx);
void mutt_free_attach_context (ATTACH_CONTEXT **pactx);
#endif /* _ATTACH_H_ */