NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.c
Go to the documentation of this file.
1
29#include "config.h"
30#ifdef _MAKEDOC
31#include "docs/makedoc_defs.h"
32#else
33#include <stddef.h>
34#include "gui/lib.h"
35#include "key/lib.h"
36#endif
37
38// clang-format off
42const struct MenuFuncOp OpPgp[] = { /* map: pgp */
43 { "exit", OP_EXIT },
44 { "verify-key", OP_VERIFY_KEY },
45 { "view-name", OP_VIEW_ID },
46 { NULL, 0 },
47};
48
52const struct MenuFuncOp OpSmime[] = { /* map: smime */
53 { "exit", OP_EXIT },
54#ifdef CRYPT_BACKEND_GPGME
55 { "verify-key", OP_VERIFY_KEY },
56 { "view-name", OP_VIEW_ID },
57#endif
58 { NULL, 0 },
59};
60
64const struct MenuOpSeq PgpDefaultBindings[] = { /* map: pgp */
65 { OP_EXIT, "q" },
66 { OP_VERIFY_KEY, "c" },
67 { OP_VIEW_ID, "%" },
68 { 0, NULL },
69};
70
74const struct MenuOpSeq SmimeDefaultBindings[] = { /* map: smime */
75 { OP_EXIT, "q" },
76#ifdef CRYPT_BACKEND_GPGME
77 { OP_VERIFY_KEY, "c" },
78 { OP_VIEW_ID, "%" },
79#endif
80 { 0, NULL },
81};
82// clang-format on
Convenience wrapper for the gui headers.
Manage keymappings.
const struct MenuFuncOp OpSmime[]
Functions for the Smime Menu.
Definition: functions.c:52
const struct MenuFuncOp OpPgp[]
Functions for the Pgp Menu.
Definition: functions.c:42
const struct MenuOpSeq PgpDefaultBindings[]
Key bindings for the Pgp Menu.
Definition: functions.c:64
const struct MenuOpSeq SmimeDefaultBindings[]
Key bindings for the Smime Menu.
Definition: functions.c:74
Mapping between a function and an operation.
Definition: lib.h:101
Mapping between an operation and a key sequence.
Definition: lib.h:110