NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
33
34
#ifndef MUTT_BCACHE_LIB_H
35
#define MUTT_BCACHE_LIB_H
36
37
#include <stdio.h>
38
39
struct
ConnAccount
;
40
struct
BodyCache
;
41
55
typedef
int (*
bcache_list_t
)(
const
char
*id,
struct
BodyCache
*bcache,
void
*data);
56
57
void
mutt_bcache_close
(
struct
BodyCache
**ptr);
58
int
mutt_bcache_commit
(
struct
BodyCache
*bcache,
const
char
*
id
);
59
int
mutt_bcache_del
(
struct
BodyCache
*bcache,
const
char
*
id
);
60
int
mutt_bcache_exists
(
struct
BodyCache
*bcache,
const
char
*
id
);
61
FILE *
mutt_bcache_get
(
struct
BodyCache
*bcache,
const
char
*
id
);
62
int
mutt_bcache_list
(
struct
BodyCache
*bcache,
bcache_list_t
want_id,
void
*data);
63
struct
BodyCache
*
mutt_bcache_open
(
struct
ConnAccount
*account,
const
char
*mailbox);
64
FILE *
mutt_bcache_put
(
struct
BodyCache
*bcache,
const
char
*
id
);
65
66
#endif
/* MUTT_BCACHE_LIB_H */
mutt_bcache_exists
int mutt_bcache_exists(struct BodyCache *bcache, const char *id)
Check if a file exists in the Body Cache.
Definition
bcache.c:313
bcache_list_t
int(* bcache_list_t)(const char *id, struct BodyCache *bcache, void *data)
Definition
lib.h:55
mutt_bcache_commit
int mutt_bcache_commit(struct BodyCache *bcache, const char *id)
Move a temporary file into the Body Cache.
Definition
bcache.c:270
mutt_bcache_open
struct BodyCache * mutt_bcache_open(struct ConnAccount *account, const char *mailbox)
Open an Email-Body Cache.
Definition
bcache.c:162
mutt_bcache_list
int mutt_bcache_list(struct BodyCache *bcache, bcache_list_t want_id, void *data)
Find matching entries in the Body Cache.
Definition
bcache.c:355
mutt_bcache_get
FILE * mutt_bcache_get(struct BodyCache *bcache, const char *id)
Open a file in the Body Cache.
Definition
bcache.c:201
mutt_bcache_close
void mutt_bcache_close(struct BodyCache **ptr)
Close an Email-Body Cache.
Definition
bcache.c:183
mutt_bcache_del
int mutt_bcache_del(struct BodyCache *bcache, const char *id)
Delete a file from the Body Cache.
Definition
bcache.c:290
mutt_bcache_put
FILE * mutt_bcache_put(struct BodyCache *bcache, const char *id)
Create a file in the Body Cache.
Definition
bcache.c:228
BodyCache
Local cache of email bodies.
Definition
bcache.c:49
ConnAccount
Login details for a remote server.
Definition
connaccount.h:59