about summary refs log tree commit diff stats
path: root/src/LYKeymap.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-07-17 03:30:30 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2000-07-17 03:30:30 -0400
commit3f6f71189bc39edb970df722688fb4a6bf2bdfe4 (patch)
treeb53d87e5651c2013b53f1238f60aee74b251a90a /src/LYKeymap.h
parentfe76940414337a9058df2d426bf5527154ca283a (diff)
downloadlynx-snapshots-3f6f71189bc39edb970df722688fb4a6bf2bdfe4.tar.gz
snapshot of project "lynx", label v2-8-4dev_5
Diffstat (limited to 'src/LYKeymap.h')
-rw-r--r--src/LYKeymap.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/LYKeymap.h b/src/LYKeymap.h
index c4f47672..b53e657f 100644
--- a/src/LYKeymap.h
+++ b/src/LYKeymap.h
@@ -1,11 +1,11 @@
 #ifndef LYKEYMAP_H
 #define LYKEYMAP_H
 
-#ifndef HTUTILS_H
 #include <HTUtils.h>
-#endif
+#include <HTList.h>
 
 extern BOOLEAN LYisNonAlnumKeyname PARAMS((int ch, int KeyName));
+extern HTList *LYcommandList NOPARAMS;
 extern char *LYKeycodeToString PARAMS((int c, BOOLEAN upper8));
 extern char *fmt_keys PARAMS((int lkc_first, int lkc_second));
 extern char *key_for_func PARAMS((int func));
@@ -111,10 +111,13 @@ extern LYKeymap_t key_override[];
 /*  Variables for holding and passing around lynxactioncodes are
  *  generally of type int, the types LYKeymap_t and LYKeymapCodes
  *  are currently only used for the definitions.  That could change. - kw
+ *
+ *  The values in this enum are indexed against the command names in the
+ *  'revmap[]' array in LYKeymap.c
  */
-/* The order of this enum must match the 'revmap[]' array in LYKeymap.c */
 typedef enum {
     LYK_UNKNOWN=0
+  , LYK_COMMAND
   , LYK_1
   , LYK_2
   , LYK_3
@@ -243,5 +246,16 @@ typedef enum {
 #endif
 } LYKeymapCode;
 
+/*
+ * Symbol table for internal commands.
+ */
+typedef struct {
+	LYKeymapCode code;
+	CONST char *name;
+	CONST char *doc;
+} Kcmd;
+
+extern Kcmd * LYKeycodeToKcmd PARAMS((LYKeymapCode code));
+extern Kcmd * LYStringToKcmd PARAMS((CONST char * name));
 
 #endif /* LYKEYMAP_H */
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312