From bb0f1e2ea23bb278f02c2a4ff19e5c6fa6946b92 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 21 Feb 2022 17:17:08 +0100 Subject: Bug fixes, added select track shortcut and reindex command --- src/cmd.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cmd.h') diff --git a/src/cmd.h b/src/cmd.h index 26f572b..4327545 100644 --- a/src/cmd.h +++ b/src/cmd.h @@ -4,6 +4,11 @@ #include +#define CMD_SET_STATUS(...) do { \ + free(cmd_status); \ + cmd_status = aprintf(__VA_ARGS__); \ + } while (0) + typedef bool (*cmd_func)(const wchar_t *args); struct cmd { @@ -12,7 +17,8 @@ struct cmd { }; void cmd_init(void); +void cmd_deinit(void); extern const struct cmd commands[]; extern const size_t command_count; -extern wchar_t *cmd_status; +extern char *cmd_status; -- cgit v1.2.3-71-gd317