diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2017-04-15 10:58:31 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2017-04-15 10:58:31 +0100 |
commit | a6bb8ad100348693a39ea13ba6af361f2dab5101 (patch) | |
tree | 31fe0a8386aa4f5fe1f2dd4581cbf4044d102fdb /src/commands.h | |
parent | ec0923e5cf9715943b198ea5c6f60e1037cef248 (diff) | |
download | imv-a6bb8ad100348693a39ea13ba6af361f2dab5101.tar.gz |
Let commands take an arbitrary pointer
Diffstat (limited to 'src/commands.h')
-rw-r--r-- | src/commands.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.h b/src/commands.h index df8b43b..89f94a2 100644 --- a/src/commands.h +++ b/src/commands.h @@ -24,11 +24,11 @@ struct imv_commands { struct imv_list *command_list; }; -struct imv_commands *imv_commands_create(void); +struct imv_commands *imv_commands_create(); void imv_commands_free(struct imv_commands *cmds); void imv_command_register(struct imv_commands *cmds, const char *command, void (*handler)()); void imv_command_alias(struct imv_commands *cmds, const char *command, const char *alias); -int imv_command_exec(struct imv_commands *cmds, const char *command); +int imv_command_exec(struct imv_commands *cmds, const char *command, void *data); #endif |