diff options
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c index 7dfbc2c..0fb8b46 100644 --- a/src/commands.c +++ b/src/commands.c @@ -72,4 +72,14 @@ int imv_command_exec(struct imv_commands *cmds, const char *command, void *data) return ret; } +int imv_command_exec_list(struct imv_commands *cmds, struct list *commands, void *data) +{ + int ret = 0; + for(size_t i = 0; i < commands->len; ++i) { + const char *command = commands->items[i]; + ret += imv_command_exec(cmds, command, data); + } + return ret; +} + /* vim:set ts=2 sts=2 sw=2 et: */ |