2015-08-05 17:30:40 -04:00
|
|
|
#ifndef _SWAY_COMMANDS_H
|
|
|
|
#define _SWAY_COMMANDS_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
struct cmd_handler {
|
2015-08-10 14:09:51 -05:00
|
|
|
char *command;
|
2015-08-10 16:51:18 -05:00
|
|
|
bool (*handle)(struct sway_config *config, int argc, char **argv);
|
2015-08-05 17:30:40 -04:00
|
|
|
};
|
|
|
|
|
2015-08-10 17:32:50 -07:00
|
|
|
bool handle_command(struct sway_config *config, char *command);
|
2015-08-05 17:30:40 -04:00
|
|
|
|
|
|
|
#endif
|