NeoMutt  2024-02-01-23-g345d7b
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
33#ifndef MUTT_COMPMBOX_LIB_H
34#define MUTT_COMPMBOX_LIB_H
35
36#include <stdbool.h>
37#include <stdio.h>
38#include "core/lib.h"
39
46{
47 const char *cmd_append;
48 const char *cmd_close;
49 const char *cmd_open;
50 long size;
51 const struct MxOps *child_ops;
52 bool locked;
53 FILE *fp_lock;
54};
55
56void mutt_comp_init(void);
57bool mutt_comp_can_append(struct Mailbox *m);
58bool mutt_comp_can_read(const char *path);
59int mutt_comp_valid_command(const char *cmd);
60
61extern const struct MxOps MxCompOps;
62
63#endif /* MUTT_COMPMBOX_LIB_H */
void mutt_comp_init(void)
Setup feature commands.
Definition: compress.c:74
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition: compress.c:343
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition: compress.c:392
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition: compress.c:372
Convenience wrapper for the core headers.
const struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps -.
Definition: compress.c:897
Private data for compress.
Definition: lib.h:46
const char * cmd_append
append-hook command
Definition: lib.h:47
FILE * fp_lock
fp used for locking
Definition: lib.h:53
const char * cmd_open
open-hook command
Definition: lib.h:49
const struct MxOps * child_ops
callbacks of de-compressed file
Definition: lib.h:51
bool locked
if realpath is locked
Definition: lib.h:52
const char * cmd_close
close-hook command
Definition: lib.h:48
long size
size of the compressed file
Definition: lib.h:50
A mailbox.
Definition: mailbox.h:79
Definition: mxapi.h:91