diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 5d45d78b..657f909e 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -31,7 +31,6 @@ enum cmd_status { | |||
31 | */ | 31 | */ |
32 | struct cmd_results { | 32 | struct cmd_results { |
33 | enum cmd_status status; | 33 | enum cmd_status status; |
34 | char *input; | ||
35 | /** | 34 | /** |
36 | * Human friendly error message, or NULL on success | 35 | * Human friendly error message, or NULL on success |
37 | */ | 36 | */ |
@@ -63,7 +62,7 @@ list_t *execute_command(char *command, struct sway_seat *seat, | |||
63 | * | 62 | * |
64 | * Do not use this under normal conditions. | 63 | * Do not use this under normal conditions. |
65 | */ | 64 | */ |
66 | struct cmd_results *config_command(char *command); | 65 | struct cmd_results *config_command(char *command, char **new_block); |
67 | /** | 66 | /** |
68 | * Parse and handle a sub command | 67 | * Parse and handle a sub command |
69 | */ | 68 | */ |
@@ -76,7 +75,7 @@ struct cmd_results *config_commands_command(char *exec); | |||
76 | /** | 75 | /** |
77 | * Allocates a cmd_results object. | 76 | * Allocates a cmd_results object. |
78 | */ | 77 | */ |
79 | struct cmd_results *cmd_results_new(enum cmd_status status, const char* input, const char *error, ...); | 78 | struct cmd_results *cmd_results_new(enum cmd_status status, const char *error, ...); |
80 | /** | 79 | /** |
81 | * Frees a cmd_results object. | 80 | * Frees a cmd_results object. |
82 | */ | 81 | */ |
@@ -88,8 +87,7 @@ void free_cmd_results(struct cmd_results *results); | |||
88 | */ | 87 | */ |
89 | char *cmd_results_to_json(list_t *res_list); | 88 | char *cmd_results_to_json(list_t *res_list); |
90 | 89 | ||
91 | struct cmd_results *add_color(const char *name, | 90 | struct cmd_results *add_color(char *buffer, const char *color); |
92 | char *buffer, const char *color); | ||
93 | 91 | ||
94 | /** | 92 | /** |
95 | * TODO: Move this function and its dependent functions to container.c. | 93 | * TODO: Move this function and its dependent functions to container.c. |