NeoMutt  2021-02-05-666-ge300cd
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 "core/lib.h"
40 
47 {
48  const char *cmd_append;
49  const char *cmd_close;
50  const char *cmd_open;
51  long size;
52  const struct MxOps *child_ops;
53  bool locked;
54  FILE *fp_lock;
55 };
56 
57 void mutt_comp_init(void);
58 bool mutt_comp_can_append(struct Mailbox *m);
59 bool mutt_comp_can_read(const char *path);
60 int mutt_comp_valid_command(const char *cmd);
61 
62 extern struct MxOps MxCompOps;
63 
64 #endif /* MUTT_COMPMBOX_LIB_H */
const char * cmd_append
append-hook command
Definition: lib.h:48
FILE * fp_lock
fp used for locking
Definition: lib.h:54
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition: compress.c:408
struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps -Compress only uses open, close and check.
Definition: compress.c:932
long size
size of the compressed file
Definition: lib.h:51
bool locked
if realpath is locked
Definition: lib.h:53
const char * cmd_close
close-hook command
Definition: lib.h:49
Convenience wrapper for the core headers.
A mailbox.
Definition: mailbox.h:81
void mutt_comp_init(void)
Setup feature commands.
Definition: compress.c:69
Private data for compress.
Definition: lib.h:46
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition: compress.c:388
const struct MxOps * child_ops
callbacks of de-compressed file
Definition: lib.h:52
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition: compress.c:359
const char * cmd_open
open-hook command
Definition: lib.h:50
Definition: mxapi.h:103