NeoMutt  2020-09-25
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 <stddef.h>
27 #include <stdbool.h>
28 #include "account.h"
29 #include "mailbox.h"
30 
31 struct ConfigSet;
32 
36 struct NeoMutt
37 {
38  struct Notify *notify;
39  struct ConfigSubset *sub;
40  struct AccountList accounts;
41 };
42 
43 extern struct NeoMutt *NeoMutt;
44 
49 {
53 };
54 
55 bool neomutt_account_add (struct NeoMutt *n, struct Account *a);
56 bool neomutt_account_remove(struct NeoMutt *n, struct Account *a);
57 void neomutt_free (struct NeoMutt **ptr);
58 struct NeoMutt *neomutt_new (struct ConfigSet *cs);
59 
60 void neomutt_mailboxlist_clear (struct MailboxList *ml);
61 size_t neomutt_mailboxlist_get_all(struct MailboxList *head, struct NeoMutt *n, enum MailboxType type);
62 
63 #endif /* MUTT_CORE_NEOMUTT_H */
Container for lots of config items.
Definition: set.h:228
struct AccountList accounts
List of all Accounts.
Definition: neomutt.h:40
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the main 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:137
A group of associated Mailboxes.
Definition: account.h:36
NotifyGlobal
Events not associated with an object.
Definition: neomutt.h:48
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:46
A group of associated Mailboxes.
Notification API.
Definition: notify.c:39
struct NeoMutt * NeoMutt
Global NeoMutt object.
Definition: neomutt.c:37
struct Notify * notify
Notifications handler.
Definition: neomutt.h:38
Representation of a mailbox.
MailboxType
Supported mailbox formats.
Definition: mailbox.h:43
NeoMutt is initialised.
Definition: neomutt.h:50
size_t neomutt_mailboxlist_get_all(struct MailboxList *head, struct NeoMutt *n, enum MailboxType type)
Get a List of all Mailboxes.
Definition: neomutt.c:160
NeoMutt is about to close.
Definition: neomutt.h:51
A timer has elapsed.
Definition: neomutt.h:52
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:39
bool neomutt_account_add(struct NeoMutt *n, struct Account *a)
Add an Account to the global list.
Definition: neomutt.c:84