NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
33#ifndef MUTT_BCACHE_LIB_H
34#define MUTT_BCACHE_LIB_H
35
36#include <stdio.h>
37
38struct ConnAccount;
39struct BodyCache;
40
54typedef int (*bcache_list_t)(const char *id, struct BodyCache *bcache, void *data);
55
56void mutt_bcache_close (struct BodyCache **ptr);
57int mutt_bcache_commit(struct BodyCache *bcache, const char *id);
58int mutt_bcache_del (struct BodyCache *bcache, const char *id);
59int mutt_bcache_exists(struct BodyCache *bcache, const char *id);
60FILE * mutt_bcache_get (struct BodyCache *bcache, const char *id);
61int mutt_bcache_list (struct BodyCache *bcache, bcache_list_t want_id, void *data);
62struct BodyCache *mutt_bcache_open (struct ConnAccount *account, const char *mailbox);
63FILE * mutt_bcache_put (struct BodyCache *bcache, const char *id);
64
65#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:54
int mutt_bcache_commit(struct BodyCache *bcache, const char *id)
Move a temporary file into the Body Cache.
Definition: bcache.c:249
struct BodyCache * mutt_bcache_open(struct ConnAccount *account, const char *mailbox)
Open an Email-Body Cache.
Definition: bcache.c:143
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
FILE * mutt_bcache_get(struct BodyCache *bcache, const char *id)
Open a file in the Body Cache.
Definition: bcache.c:182
void mutt_bcache_close(struct BodyCache **ptr)
Close an Email-Body Cache.
Definition: bcache.c:164
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
Local cache of email bodies.
Definition: bcache.c:51
Login details for a remote server.
Definition: connaccount.h:53