diff options
author | rcyeske <rcyeske> | 2001-02-14 03:40:37 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-02-14 03:40:37 +0000 |
commit | a236c27d3d36f586e630bf2831a33f7e1647f544 (patch) | |
tree | bca96b0ed4f7fb80cc0eca4e67721e3b2c486f3a /src/actions.h | |
parent | 8ac85c9dc7fc78bd60c306c3d807886136b72a10 (diff) | |
download | ratpoison-a236c27d3d36f586e630bf2831a33f7e1647f544.zip |
added interactive commands
Diffstat (limited to 'src/actions.h')
-rw-r--r-- | src/actions.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/actions.h b/src/actions.h index 047a6f7..a5b0a26 100644 --- a/src/actions.h +++ b/src/actions.h @@ -18,22 +18,40 @@ /* Prototypes of all actions that can be performed with keystrokes. */ +#define MAX_COMMAND_LENGTH 100 +#define MAX_ARGS_LENGTH 100 + +typedef struct user_command user_command; + +enum argtype { arg_VOID, arg_STRING, arg_NUMBER }; + +struct +user_command +{ + char *name; + void (*func)(void *); + int argtype; +}; + void switch_to(void *which); void bye(void *dummy); void generate_prefix (void *data); void abort_keypress (void *data); void goto_window_number (void* data); void spawn(void *data); -void execute_command (void *data); +void shell_command (void *data); +void command (void *data); +void command (void *data); void kill_window (void *data); void delete_window (void *data); void rename_current_window (void *data); void goto_win_by_name (void *data); void last_window (void *data); -void next_window (void *data); -void prev_window (void *data); +/* void next_window (void *data); */ +/* void prev_window (void *data); */ void toggle_bar (void *data); void maximize (void *data); void show_clock (void *data); +void show_version (void *data); extern rp_action key_actions[]; |