NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
adata.h
Go to the documentation of this file.
1
22
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
34
struct
NmAccountData
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 */
nm_adata_free
void nm_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free() -.
Definition
adata.c:39
nm_adata_new
struct NmAccountData * nm_adata_new(void)
Allocate and initialise a new NmAccountData structure.
Definition
adata.c:58
nm_adata_get
struct NmAccountData * nm_adata_get(struct Mailbox *m)
Get the Notmuch Account data.
Definition
adata.c:69
Mailbox
A mailbox.
Definition
mailbox.h:81
NmAccountData
Notmuch-specific Account data -.
Definition
adata.h:35
NmAccountData::longrun
bool longrun
A long-lived action is in progress.
Definition
adata.h:37
NmAccountData::db
notmuch_database_t * db
Connection to Notmuch database.
Definition
adata.h:36
NmAccountData::trans
bool trans
Atomic transaction in progress.
Definition
adata.h:38