NeoMutt  2021-02-05-89-gabe350
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 */
neomutt_mailboxlist_clear
void neomutt_mailboxlist_clear(struct MailboxList *ml)
Free a Mailbox List.
Definition: neomutt.c:137
NeoMutt::accounts
struct AccountList accounts
List of all Accounts.
Definition: neomutt.h:40
account.h
NT_GLOBAL_STARTUP
@ NT_GLOBAL_STARTUP
NeoMutt is initialised.
Definition: neomutt.h:50
NeoMutt::notify
struct Notify * notify
Notifications handler.
Definition: neomutt.h:38
neomutt_account_remove
bool neomutt_account_remove(struct NeoMutt *n, struct Account *a)
Remove an Account from the global list.
Definition: neomutt.c:105
NT_GLOBAL_TIMEOUT
@ NT_GLOBAL_TIMEOUT
A timer has elapsed.
Definition: neomutt.h:52
mailbox.h
NotifyGlobal
NotifyGlobal
Events not associated with an object.
Definition: neomutt.h:48
NT_GLOBAL_SHUTDOWN
@ NT_GLOBAL_SHUTDOWN
NeoMutt is about to close.
Definition: neomutt.h:51
Account
A group of associated Mailboxes.
Definition: account.h:36
Notify
Notification API.
Definition: notify.c:39
NeoMutt
struct NeoMutt * NeoMutt
Global NeoMutt object.
Definition: neomutt.c:37
NeoMutt
Container for Accounts, Notifications.
Definition: neomutt.h:36
ConfigSet
Container for lots of config items.
Definition: set.h:228
MailboxType
MailboxType
Supported mailbox formats.
Definition: mailbox.h:43
neomutt_mailboxlist_get_all
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::sub
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:39
ConfigSubset
A set of inherited config items.
Definition: subset.h:46
neomutt_account_add
bool neomutt_account_add(struct NeoMutt *n, struct Account *a)
Add an Account to the global list.
Definition: neomutt.c:84
neomutt_free
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Definition: neomutt.c:64
neomutt_new
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the main NeoMutt object.
Definition: neomutt.c:44