NeoMutt  2021-10-29-220-g2b1eec
Teaching an old dog new tricks
Go to the documentation of this file.
34 #ifndef MUTT_BCACHE_LIB_H
35 #define MUTT_BCACHE_LIB_H
37 #include <stdio.h>
39 struct ConnAccount;
40 struct BodyCache;
55 typedef int (*bcache_list_t)(const char *id, struct BodyCache *bcache, void *data);
57 void mutt_bcache_close (struct BodyCache **bcache);
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);
66 #endif /* MUTT_BCACHE_LIB_H */
int mutt_bcache_exists(struct BodyCache *bcache, const char *id)
Check if a file exists in the Body Cache.
Definition: bcache.c:289
int(* bcache_list_t)(const char *id, struct BodyCache *bcache, void *data)
Definition: lib.h:55
struct BodyCache * mutt_bcache_open(struct ConnAccount *account, const char *mailbox)
Open an Email-Body Cache.
Definition: bcache.c:145
int mutt_bcache_commit(struct BodyCache *bcache, const char *id)
Move a temporary file into the Body Cache.
Definition: bcache.c:249
int mutt_bcache_list(struct BodyCache *bcache, bcache_list_t want_id, void *data)
Find matching entries in the Body Cache.
Definition: bcache.c:331
int mutt_bcache_del(struct BodyCache *bcache, const char *id)
Delete a file from the Body Cache.
Definition: bcache.c:266
FILE * mutt_bcache_put(struct BodyCache *bcache, const char *id)
Create a file in the Body Cache.
Definition: bcache.c:209
FILE * mutt_bcache_get(struct BodyCache *bcache, const char *id)
Open a file in the Body Cache.
Definition: bcache.c:181
void mutt_bcache_close(struct BodyCache **bcache)
Close an Email-Body Cache.
Definition: bcache.c:166
Local cache of email bodies.
Definition: bcache.c:51
Login details for a remote server.
Definition: connaccount.h:53