aboutsummaryrefslogtreecommitdiff
path: root/src/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.h')
-rw-r--r--src/commands.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/commands.h b/src/commands.h
index b3a78e6..df8b43b 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -18,9 +18,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef COMMANDS_H
#define COMMANDS_H
-void imv_command_register(const char *command, void (*handler)());
-void imv_command_alias(const char *command, const char *alias);
-int imv_command_exec(const char *command);
+struct imv_list;
+
+struct imv_commands {
+ struct imv_list *command_list;
+};
+
+struct imv_commands *imv_commands_create(void);
+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);
#endif