NeoMutt  2022-04-29-178-g3b62e6
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1
34#ifndef MUTT_BCACHE_LIB_H
35#define MUTT_BCACHE_LIB_H
36
37#include <stdio.h>
38
39struct ConnAccount;
40struct BodyCache;
41
55typedef int (*bcache_list_t)(const char *id, struct BodyCache *bcache, void *data);
56
57void mutt_bcache_close (struct BodyCache **bcache);
58int mutt_bcache_commit(struct BodyCache *bcache, const char *id);
59int mutt_bcache_del (struct BodyCache *bcache, const char *id);
60int mutt_bcache_exists(struct BodyCache *bcache, const char *id);
61FILE * mutt_bcache_get (struct BodyCache *bcache, const char *id);
62int mutt_bcache_list (struct BodyCache *bcache, bcache_list_t want_id, void *data);
63struct BodyCache *mutt_bcache_open (struct ConnAccount *account, const char *mailbox);
64FILE * mutt_bcache_put (struct BodyCache *bcache, const char *id);
65
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:288
int(* bcache_list_t)(const char *id, struct BodyCache *bcache, void *data)
Definition: lib.h:55
int mutt_bcache_commit(struct BodyCache *bcache, const char *id)
Move a temporary file into the Body Cache.
Definition: bcache.c:248
struct BodyCache * mutt_bcache_open(struct ConnAccount *account, const char *mailbox)
Open an Email-Body Cache.
Definition: bcache.c:144
int mutt_bcache_list(struct BodyCache *bcache, bcache_list_t want_id, void *data)
Find matching entries in the Body Cache.
Definition: bcache.c:330
FILE * mutt_bcache_get(struct BodyCache *bcache, const char *id)
Open a file in the Body Cache.
Definition: bcache.c:180
int mutt_bcache_del(struct BodyCache *bcache, const char *id)
Delete a file from the Body Cache.
Definition: bcache.c:265
FILE * mutt_bcache_put(struct BodyCache *bcache, const char *id)
Create a file in the Body Cache.
Definition: bcache.c:208
void mutt_bcache_close(struct BodyCache **bcache)
Close an Email-Body Cache.
Definition: bcache.c:165
Local cache of email bodies.
Definition: bcache.c:51
Login details for a remote server.
Definition: connaccount.h:53