NeoMutt  2023-11-03-85-g512e01
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
shared_data.h
Go to the documentation of this file.
1
23#ifndef MUTT_INDEX_SHARED_DATA_H
24#define MUTT_INDEX_SHARED_DATA_H
25
26#include <stdbool.h>
27#include <stdio.h>
28
29struct MailboxView;
30struct Email;
31struct MuttWindow;
32
37{
38 struct ConfigSubset *sub;
39 struct Account *account;
41 struct Mailbox *mailbox;
42 struct Email *email;
43 size_t email_seq;
44 struct Notify *notify;
47};
48
49void index_shared_data_free(struct MuttWindow *win, void **ptr);
51
52bool index_shared_data_is_cur_email(const struct IndexSharedData *shared, const struct Email *e);
53void index_shared_data_set_mview (struct IndexSharedData *shared, struct MailboxView *mv);
54void index_shared_data_set_email (struct IndexSharedData *shared, struct Email *e);
55
56#endif /* MUTT_INDEX_SHARED_DATA_H */
void index_shared_data_free(struct MuttWindow *win, void **ptr)
Free Shared Index Data - Implements MuttWindow::wdata_free() -.
Definition: shared_data.c:277
void index_shared_data_set_email(struct IndexSharedData *shared, struct Email *e)
Set the current Email for the Index and friends.
Definition: shared_data.c:234
bool index_shared_data_is_cur_email(const struct IndexSharedData *shared, const struct Email *e)
Check whether an email is the currently selected Email.
Definition: shared_data.c:263
struct IndexSharedData * index_shared_data_new(void)
Create new Index Data.
Definition: shared_data.c:306
void index_shared_data_set_mview(struct IndexSharedData *shared, struct MailboxView *mv)
Set the MailboxView for the Index and friends.
Definition: shared_data.c:159
A group of associated Mailboxes.
Definition: account.h:37
A set of inherited config items.
Definition: subset.h:47
The envelope/body of an email.
Definition: email.h:37
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:37
size_t email_seq
Sequence number of the current email.
Definition: shared_data.h:43
struct Account * account
Current Account.
Definition: shared_data.h:39
struct Email * email
Currently selected Email.
Definition: shared_data.h:42
struct Mailbox * mailbox
Current Mailbox.
Definition: shared_data.h:41
bool attach_msg
Are we in "attach message" mode?
Definition: shared_data.h:46
struct ConfigSubset * sub
Config set to use.
Definition: shared_data.h:38
struct MailboxView * mailbox_view
Current Mailbox view.
Definition: shared_data.h:40
struct SearchState * search_state
State of the current search.
Definition: shared_data.h:45
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
Definition: shared_data.h:44
View of a Mailbox.
Definition: mview.h:39
A mailbox.
Definition: mailbox.h:79
Notification API.
Definition: notify.c:53
Holds state of a search.
Definition: search_state.h:35