aboutsummaryrefslogtreecommitdiff
path: root/src/commands.h
blob: cf81f6836afc237caae5b6c06889743d901ab4c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef COMMANDS_H
#define COMMANDS_H

struct list;

struct imv_commands {
  struct 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)(struct list*, const char*, void*));
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, void *data);
int imv_command_exec_list(struct imv_commands *cmds, struct list *commands, void *data);

#endif

/* vim:set ts=2 sts=2 sw=2 et: */