NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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{
50};
51
58{
61 struct Expando *cmd_open;
62 long size;
63 const struct MxOps *child_ops;
64 bool locked;
65 FILE *fp_lock;
66};
67
68void mutt_comp_init(void);
69bool mutt_comp_can_append(struct Mailbox *m);
70bool mutt_comp_can_read(const char *path);
71int mutt_comp_valid_command(const char *cmd);
72
73extern const struct MxOps MxCompOps;
74
75#endif /* MUTT_COMPMBOX_LIB_H */
void mutt_comp_init(void)
Setup feature commands.
Definition: compress.c:91
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition: compress.c:365
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition: compress.c:414
ExpandoDataCompress
Expando UIDs for Compression.
Definition: lib.h:47
@ ED_CMP_FROM
'from' path
Definition: lib.h:48
@ ED_CMP_TO
'to' path
Definition: lib.h:49
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition: compress.c:394
Convenience wrapper for the core headers.
const struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps -.
Definition: compress.c:932
Private data for compress.
Definition: lib.h:58
struct Expando * cmd_open
open-hook command
Definition: lib.h:61
FILE * fp_lock
fp used for locking
Definition: lib.h:65
struct Expando * cmd_append
append-hook command
Definition: lib.h:59
const struct MxOps * child_ops
callbacks of de-compressed file
Definition: lib.h:63
bool locked
if realpath is locked
Definition: lib.h:64
long size
size of the compressed file
Definition: lib.h:62
struct Expando * cmd_close
close-hook command
Definition: lib.h:60
Parsed Expando trees.
Definition: expando.h:41
A mailbox.
Definition: mailbox.h:79
Definition: mxapi.h:91