NeoMutt  2024-03-23-142-g2b2e76
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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 <locale.h>
28#include <stdbool.h>
29#include "account.h"
30#include "mailbox.h"
31#ifdef __APPLE__
32#include <xlocale.h>
33#endif
34
35struct ConfigSet;
36
40struct NeoMutt
41{
42 struct Notify *notify;
45 struct ConfigSubset *sub;
46 struct AccountList accounts;
47 locale_t time_c_locale;
48};
49
50extern struct NeoMutt *NeoMutt;
51
58{
62};
63
64bool neomutt_account_add (struct NeoMutt *n, struct Account *a);
65bool neomutt_account_remove(struct NeoMutt *n, const struct Account *a);
66void neomutt_free (struct NeoMutt **ptr);
67struct NeoMutt *neomutt_new (struct ConfigSet *cs);
68
69void neomutt_mailboxlist_clear (struct MailboxList *ml);
70size_t neomutt_mailboxlist_get_all(struct MailboxList *head, struct NeoMutt *n, enum MailboxType type);
71
72#endif /* MUTT_CORE_NEOMUTT_H */
MailboxType
Supported mailbox formats.
Definition: mailbox.h:41
Maildir Account.
Maildir Mailbox.
void neomutt_mailboxlist_clear(struct MailboxList *ml)
Free a Mailbox List.
Definition: neomutt.c:163
NotifyGlobal
Events not associated with an object.
Definition: neomutt.h:58
@ NT_GLOBAL_STARTUP
NeoMutt is initialised.
Definition: neomutt.h:59
@ NT_GLOBAL_COMMAND
A NeoMutt command.
Definition: neomutt.h:61
@ NT_GLOBAL_SHUTDOWN
NeoMutt is about to close.
Definition: neomutt.h:60
bool neomutt_account_add(struct NeoMutt *n, struct Account *a)
Add an Account to the global list.
Definition: neomutt.c:105
size_t neomutt_mailboxlist_get_all(struct MailboxList *head, struct NeoMutt *n, enum MailboxType type)
Get a List of all Mailboxes.
Definition: neomutt.c:186
bool neomutt_account_remove(struct NeoMutt *n, const struct Account *a)
Remove an Account from the global list.
Definition: neomutt.c:128
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the main NeoMutt object.
Definition: neomutt.c:45
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Definition: neomutt.c:81
A group of associated Mailboxes.
Definition: account.h:36
Container for lots of config items.
Definition: set.h:252
A set of inherited config items.
Definition: subset.h:47
Container for Accounts, Notifications.
Definition: neomutt.h:41
struct Notify * notify_timeout
Timeout notifications handler.
Definition: neomutt.h:44
struct Notify * notify_resize
Window resize notifications handler.
Definition: neomutt.h:43
struct AccountList accounts
List of all Accounts.
Definition: neomutt.h:46
struct Notify * notify
Notifications handler.
Definition: neomutt.h:42
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:45
locale_t time_c_locale
Current locale but LC_TIME=C.
Definition: neomutt.h:47
Notification API.
Definition: notify.c:53