about summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-07-31 08:44:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-07-31 08:44:16 +0000
commit0c9830d23c87ad2a572d2c6d16b13a34001b9634 (patch)
tree36db7fd2692c6558a0199b07b1f265808620337d /Src/zsh.h
parent8a466992dad9dd4ce4ef3c7f5845f5f340866d2c (diff)
downloadzsh-0c9830d23c87ad2a572d2c6d16b13a34001b9634.tar.gz
zsh-0c9830d23c87ad2a572d2c6d16b13a34001b9634.tar.xz
zsh-0c9830d23c87ad2a572d2c6d16b13a34001b9634.zip
25345, 25347: neaten interface from main shell to zle
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index da9664ef5..d245a416a 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -2373,12 +2373,22 @@ enum {
 
 typedef int (*CompctlReadFn) _((char *, char **, Options, char *));
 
-/* ZLE entry point pointers */
+/* ZLE entry point pointer */
 
-typedef void (*ZleVoidFn) _((void));
-typedef void (*ZleVoidIntFn) _((int));
-typedef char *(*ZleReadFn) _((char **, char **, int, int));
-typedef char *(*ZleGetLineFn) _((int *, int *));
+typedef char * (*ZleEntryPoint)(int cmd, va_list ap);
+
+/* Commands to pass to entry point */
+
+enum {
+    ZLE_CMD_GET_LINE,
+    ZLE_CMD_READ,
+    ZLE_CMD_ADD_TO_LINE,
+    ZLE_CMD_TRASH,
+    ZLE_CMD_RESET_PROMPT,
+    ZLE_CMD_REFRESH,
+    ZLE_CMD_SET_KEYMAP,
+    ZLE_CMD_GET_KEY
+};
 
 /***************************************/
 /* Hooks in core.                      */