NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
pgp_functions.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_NCRYPT_PGP_FUNCTIONS_H
24
#define MUTT_NCRYPT_PGP_FUNCTIONS_H
25
26
#include <stdbool.h>
27
28
struct
KeyEvent
;
29
struct
MuttWindow
;
30
34
struct
PgpData
35
{
36
bool
done
;
37
struct
Menu
*
menu
;
38
struct
PgpUidArray *
key_table
;
39
struct
PgpKeyInfo
*
key
;
40
};
41
55
typedef
int (*
pgp_function_t
)(
struct
PgpData
*pd,
const
struct
KeyEvent
*event);
56
60
struct
PgpFunction
61
{
62
int
op
;
63
pgp_function_t
function
;
64
};
65
66
int
pgp_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
67
68
#endif
/* MUTT_NCRYPT_PGP_FUNCTIONS_H */
pgp_function_dispatcher
int pgp_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Pgp function - Implements function_dispatcher_t -.
Definition
functions_pgp.c:228
pgp_function_t
int(* pgp_function_t)(struct PgpData *pd, const struct KeyEvent *event)
Definition
pgp_functions.h:55
KeyEvent
An event such as a keypress.
Definition
get.h:75
Menu
Definition
lib.h:86
MuttWindow
Definition
mutt_window.h:129
PgpData
Data to pass to the Pgp Functions.
Definition
pgp_functions.h:35
PgpData::menu
struct Menu * menu
Pgp Menu.
Definition
pgp_functions.h:37
PgpData::done
bool done
Should we close the Dialog?
Definition
pgp_functions.h:36
PgpData::key_table
struct PgpUidArray * key_table
Array of Keys.
Definition
pgp_functions.h:38
PgpData::key
struct PgpKeyInfo * key
Selected Key.
Definition
pgp_functions.h:39
PgpFunction
A NeoMutt function.
Definition
pgp_functions.h:61
PgpFunction::op
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition
pgp_functions.h:62
PgpFunction::function
pgp_function_t function
Function to call.
Definition
pgp_functions.h:63
PgpKeyInfo
Information about a PGP key.
Definition
pgplib.h:49