2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000,2 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
15 /* maximal length of a key binding sequence used for buffer in km_bindkey */
18 /* type for key storage, the rest of mutt works fine with int type */
19 typedef short keycode_t;
21 void km_bind (char *, int, int, char *, char *);
22 void km_bindkey (char *, int, int);
25 /* entry in the keymap tree */
27 char *macro; /* macro expansion (op == OP_MACRO) */
28 char *descr; /* description of a macro for the help menu */
29 struct keymap_t *next; /* next key in map */
30 short op; /* operation to perform */
31 short eq; /* number of leading keys equal to next entry */
32 short len; /* length of key sequence (unit: sizeof (keycode_t)) */
33 keycode_t *keys; /* key sequence */
36 char *km_keyname (int);
37 int km_expand_key (char *, size_t, struct keymap_t *);
38 struct keymap_t *km_find_func (int, int);
40 void km_error_key (int);
41 void mutt_what_key (void);
59 #ifdef CRYPT_BACKEND_GPGME
61 MENU_KEY_SELECT_SMIME,
73 /* the keymap trees (one for each menu) */
74 extern struct keymap_t *Keymaps[];
76 /* dokey() records the last real key pressed */
79 extern struct mapping_t Menus[];
82 char *name; /* name of the function */
83 int op; /* function id number */
84 char *seq; /* default key binding */
87 struct binding_t *km_get_table (int menu);
89 extern struct binding_t OpGeneric[];
90 extern struct binding_t OpPost[];
91 extern struct binding_t OpMain[];
92 extern struct binding_t OpAttach[];
93 extern struct binding_t OpPager[];
94 extern struct binding_t OpCompose[];
95 extern struct binding_t OpBrowser[];
96 extern struct binding_t OpEditor[];
97 extern struct binding_t OpQuery[];
98 extern struct binding_t OpAlias[];
100 extern struct binding_t OpPgp[];
102 extern struct binding_t OpSmime[];
105 extern struct binding_t OpMix[];
108 #include "keymap_defs.h"
110 #endif /* KEYMAP_H */