NeoMutt  2019-12-07-168-gc45f47
Teaching an old dog new tricks
DOXYGEN
neomutt.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CORE_NEOMUTT_H
24 #define MUTT_CORE_NEOMUTT_H
25 
26 #include <stdbool.h>
27 #include "account.h"
28 #include "mailbox.h"
29 
30 struct ConfigSet;
31 
35 struct NeoMutt
36 {
37  struct Notify *notify;
38  struct ConfigSubset *sub;
39  struct AccountList accounts;
40 };
41 
42 extern struct NeoMutt *NeoMutt;
43 
48 {
52 };
53 
54 bool neomutt_account_add (struct NeoMutt *n, struct Account *a);
55 bool neomutt_account_remove(struct NeoMutt *n, struct Account *a);
56 void neomutt_free (struct NeoMutt **ptr);
57 struct NeoMutt *neomutt_new (struct ConfigSet *cs);
58 
59 void neomutt_mailboxlist_clear (struct MailboxList *ml);
60 struct MailboxList neomutt_mailboxlist_get_all(struct NeoMutt *n, enum MailboxType magic);
61 
62 #endif /* MUTT_CORE_NEOMUTT_H */
Container for lots of config items.
Definition: set.h:168
struct AccountList accounts
List of all Accounts.
Definition: neomutt.h:39
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the master NeoMutt object.
Definition: neomutt.c:44
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Definition: neomutt.c:64
void neomutt_mailboxlist_clear(struct MailboxList *ml)
Free a Mailbox List.
Definition: neomutt.c:135
struct MailboxList neomutt_mailboxlist_get_all(struct NeoMutt *n, enum MailboxType magic)
Get a List of all Mailboxes.
Definition: neomutt.c:157
A group of associated Mailboxes.
Definition: account.h:36
NotifyGlobal
Events not associated with an object.
Definition: neomutt.h:47
bool neomutt_account_remove(struct NeoMutt *n, struct Account *a)
Remove an Account from the global list.
Definition: neomutt.c:105
A set of inherited config items.
Definition: subset.h:44
A group of associated Mailboxes.
Notification API.
Definition: notify.c:40
struct NeoMutt * NeoMutt
Global NeoMutt object.
Definition: neomutt.c:37
struct Notify * notify
Notifications handler.
Definition: neomutt.h:37
Representation of a mailbox.
MailboxType
Supported mailbox formats.
Definition: mailbox.h:42
NeoMutt is initialised.
Definition: neomutt.h:49
NeoMutt is about to close.
Definition: neomutt.h:50
A timer has elapsed.
Definition: neomutt.h:51
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:38
bool neomutt_account_add(struct NeoMutt *n, struct Account *a)
Add an Account to the global list.
Definition: neomutt.c:84