From 7cac6770e0b380d6e5f37b9fad71c9f7f15952ba Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 11 Apr 2014 18:56:47 +0200 Subject: Add support for async commands --- src/shell.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shell.h') diff --git a/src/shell.h b/src/shell.h index 18ceb2a..e6c3618 100644 --- a/src/shell.h +++ b/src/shell.h @@ -35,6 +35,7 @@ struct fastd_shell_command { char *command; char *dir; + bool sync; }; static inline void fastd_shell_command_unset(fastd_shell_command_t *command) { @@ -45,11 +46,12 @@ static inline void fastd_shell_command_unset(fastd_shell_command_t *command) { command->dir = NULL; } -static inline void fastd_shell_command_set(fastd_shell_command_t *command, const char *val) { +static inline void fastd_shell_command_set(fastd_shell_command_t *command, const char *val, bool sync) { fastd_shell_command_unset(command); command->command = strdup(val); command->dir = get_current_dir_name(); + command->sync = sync; } static inline bool fastd_shell_command_isset(const fastd_shell_command_t *command) { -- cgit v1.2.3