if (use_pager)
{
- pager_t info;
+ struct Pager info;
memset(&info, 0, sizeof(info));
info.fp = fp;
if (builtin)
{
- pager_t info;
+ struct Pager info;
if (WithCrypto && (cur->security & APPLICATION_SMIME) && (cmflags & MUTT_CM_VERIFY))
{
}
/* Invoke the builtin pager */
- memset(&info, 0, sizeof(pager_t));
+ memset(&info, 0, sizeof(struct Pager));
info.hdr = cur;
info.ctx = Context;
rc = mutt_pager(NULL, tempfile, MUTT_PAGER_MESSAGE, &info);
return (ch >= 0) ? ch : EOF;
}
-int mutt_do_pager(const char *banner, const char *tempfile, int do_color, pager_t *info)
+int mutt_do_pager(const char *banner, const char *tempfile, int do_color, struct Pager *info)
{
int rc;
typedef struct
{
int flags;
- pager_t *extra;
+ struct Pager *extra;
int indexlen;
int indicator; /* the indicator line of the PI */
int oldtopline;
can be distinguished by whether or not ``hdr'' is NULL. The ``hdr'' arg
is there so that we can do operations on the current message without the
need to pop back out to the main-menu. */
-int mutt_pager(const char *banner, const char *fname, int flags, pager_t *extra)
+int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *extra)
{
static char searchbuf[STRING] = "";
char buffer[LONG_STRING];
#define MUTT_DISPLAYFLAGS (MUTT_SHOW | MUTT_PAGER_NSKIP | MUTT_PAGER_MARKER)
-typedef struct
+struct Pager
{
struct Context *ctx; /* current mailbox */
struct Header *hdr; /* current message */
FILE *fp; /* source stream */
struct AttachPtr **idx; /* attachment information */
short idxlen;
-} pager_t;
+};
-int mutt_do_pager(const char *banner, const char *tempfile, int do_color, pager_t *info);
-int mutt_pager(const char *banner, const char *fname, int flags, pager_t *extra);
+int mutt_do_pager(const char *banner, const char *tempfile, int do_color, struct Pager *info);
+int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *extra);
void update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, int index_hint);
#endif /* _MUTT_PAGER_H */