diff options
author | emersion <contact@emersion.fr> | 2017-12-05 10:40:55 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-05 10:40:55 +0100 |
commit | 90f7f1a0e61fa20ed1b74b9df057aa70abc791ed (patch) | |
tree | e201e4fb9fef471dd2fcf9581e26addfe3550502 /include/sway/commands.h | |
parent | Merge pull request #1497 from emersion/cmd-exec (diff) | |
download | sway-90f7f1a0e61fa20ed1b74b9df057aa70abc791ed.tar.gz sway-90f7f1a0e61fa20ed1b74b9df057aa70abc791ed.tar.zst sway-90f7f1a0e61fa20ed1b74b9df057aa70abc791ed.zip |
Add minimal config subsystem
Diffstat (limited to 'include/sway/commands.h')
-rw-r--r-- | include/sway/commands.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index df5c6859..b1f0423d 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -47,6 +47,16 @@ struct cmd_results *checkarg(int argc, const char *name, | |||
47 | */ | 47 | */ |
48 | struct cmd_results *handle_command(char *command); | 48 | struct cmd_results *handle_command(char *command); |
49 | /** | 49 | /** |
50 | * Parse and handles a command during config file loading. | ||
51 | * | ||
52 | * Do not use this under normal conditions. | ||
53 | */ | ||
54 | struct cmd_results *config_command(char *command, enum cmd_status block); | ||
55 | /* | ||
56 | * Parses a command policy rule. | ||
57 | */ | ||
58 | struct cmd_results *config_commands_command(char *exec); | ||
59 | /** | ||
50 | * Allocates a cmd_results object. | 60 | * Allocates a cmd_results object. |
51 | */ | 61 | */ |
52 | struct cmd_results *cmd_results_new(enum cmd_status status, const char* input, const char *error, ...); | 62 | struct cmd_results *cmd_results_new(enum cmd_status status, const char* input, const char *error, ...); |