NeoMutt  2021-10-29-220-g2b1eec
Teaching an old dog new tricks
DOXYGEN
adata.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_NOTMUCH_ADATA_H
24 #define MUTT_NOTMUCH_ADATA_H
25 
26 #include <notmuch.h>
27 #include <stdbool.h>
28 
29 struct Mailbox;
30 
35 {
36  notmuch_database_t *db;
37  bool longrun : 1;
38  bool trans : 1;
39 };
40 
41 void nm_adata_free(void **ptr);
42 struct NmAccountData *nm_adata_get (struct Mailbox *m);
43 struct NmAccountData *nm_adata_new (void);
44 
45 #endif /* MUTT_NOTMUCH_ADATA_H */
void nm_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free()
Definition: adata.c:39
struct NmAccountData * nm_adata_new(void)
Allocate and initialise a new NmAccountData structure.
Definition: adata.c:55
struct NmAccountData * nm_adata_get(struct Mailbox *m)
Get the Notmuch Account data.
Definition: adata.c:68
A mailbox.
Definition: mailbox.h:82
Notmuch-specific Account data -.
Definition: adata.h:35
bool longrun
A long-lived action is in progress.
Definition: adata.h:37
notmuch_database_t * db
Connection to Notmuch database.
Definition: adata.h:36
bool trans
Atomic transaction in progress.
Definition: adata.h:38