NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1 
34 #ifndef MUTT_COMPMBOX_LIB_H
35 #define MUTT_COMPMBOX_LIB_H
36 
37 #include <stdbool.h>
38 #include <stdio.h>
39 #include "mx.h"
40 
41 struct Mailbox;
42 
49 {
50  const char *cmd_append;
51  const char *cmd_close;
52  const char *cmd_open;
53  long size;
54  const struct MxOps *child_ops;
55  bool locked;
56  FILE *fp_lock;
57 };
58 
59 void mutt_comp_init(void);
60 bool mutt_comp_can_append(struct Mailbox *m);
61 bool mutt_comp_can_read(const char *path);
62 int mutt_comp_valid_command(const char *cmd);
63 
64 extern struct MxOps MxCompOps;
65 
66 #endif /* MUTT_COMPMBOX_LIB_H */
CompressInfo::cmd_close
const char * cmd_close
close-hook command
Definition: lib.h:51
mutt_comp_valid_command
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition: compress.c:405
Mailbox
A mailbox.
Definition: mailbox.h:81
CompressInfo
Private data for compress.
Definition: lib.h:48
MxOps
The Mailbox API.
Definition: mx.h:116
CompressInfo::cmd_open
const char * cmd_open
open-hook command
Definition: lib.h:52
MxCompOps
struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps.
Definition: compress.c:926
mutt_comp_init
void mutt_comp_init(void)
Setup feature commands.
Definition: compress.c:66
CompressInfo::child_ops
const struct MxOps * child_ops
callbacks of de-compressed file
Definition: lib.h:54
CompressInfo::fp_lock
FILE * fp_lock
fp used for locking
Definition: lib.h:56
mutt_comp_can_append
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition: compress.c:356
CompressInfo::cmd_append
const char * cmd_append
append-hook command
Definition: lib.h:50
mutt_comp_can_read
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition: compress.c:385
mx.h
CompressInfo::locked
bool locked
if realpath is locked
Definition: lib.h:55
CompressInfo::size
long size
size of the compressed file
Definition: lib.h:53