NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
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
28struct KeyEvent;
29struct MuttWindow;
30
31extern struct MenuDefinition *MdPgp;
32
36struct PgpData
37{
38 bool done;
39 struct Menu *menu;
40 struct PgpUidArray *key_table;
41 struct PgpKeyInfo *key;
42};
43
57typedef int (*pgp_function_t)(struct PgpData *pd, const struct KeyEvent *event);
58
67
68int pgp_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event);
69
70#endif /* MUTT_NCRYPT_PGP_FUNCTIONS_H */
int pgp_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Pgp function - Implements function_dispatcher_t -.
struct MenuDefinition * MdPgp
Pgp Menu Definition.
Definition functions.c:37
int(* pgp_function_t)(struct PgpData *pd, const struct KeyEvent *event)
An event such as a keypress.
Definition get.h:50
Functions for a Dialog or Window.
Definition menu.h:80
Definition lib.h:80
Data to pass to the Pgp Functions.
struct Menu * menu
Pgp Menu.
bool done
Should we close the Dialog?
struct PgpUidArray * key_table
Array of Keys.
struct PgpKeyInfo * key
Selected Key.
A NeoMutt function.
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
pgp_function_t function
Function to call.
Information about a PGP key.
Definition pgplib.h:49