|
|
@ -9,7 +9,7 @@ struct sway_container;
|
|
|
|
typedef struct cmd_results *sway_cmd(int argc, char **argv);
|
|
|
|
typedef struct cmd_results *sway_cmd(int argc, char **argv);
|
|
|
|
|
|
|
|
|
|
|
|
struct cmd_handler {
|
|
|
|
struct cmd_handler {
|
|
|
|
char *command;
|
|
|
|
const char *command;
|
|
|
|
sway_cmd *handle;
|
|
|
|
sway_cmd *handle;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ enum expected_args {
|
|
|
|
struct cmd_results *checkarg(int argc, const char *name,
|
|
|
|
struct cmd_results *checkarg(int argc, const char *name,
|
|
|
|
enum expected_args type, int val);
|
|
|
|
enum expected_args type, int val);
|
|
|
|
|
|
|
|
|
|
|
|
const struct cmd_handler *find_handler(char *line,
|
|
|
|
const struct cmd_handler *find_handler(const char *line,
|
|
|
|
const struct cmd_handler *cmd_handlers, size_t handlers_size);
|
|
|
|
const struct cmd_handler *cmd_handlers, size_t handlers_size);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|