summaryrefslogtreecommitdiffstats
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/player.h b/src/player.h
index 607c1c1..e6b4f17 100644
--- a/src/player.h
+++ b/src/player.h
@@ -3,8 +3,14 @@
#include "list.h"
#include "util.h"
+#define PLAYER_STATUS_INFO(...) \
+ PLAYER_STATUS(PLAYER_STATUS_MSG_INFO, __VA_ARGS__)
+
+#define PLAYER_STATUS_ERR(...) \
+ PLAYER_STATUS(PLAYER_STATUS_MSG_ERR, __VA_ARGS__)
+
#define PLAYER_STATUS(lvl, ...) do { \
- player.status_lvl = PLAYER_STATUS_MSG_ ## lvl; \
+ player.status_lvl = (lvl); \
if (player.status) free(player.status); \
player.status = aprintf(__VA_ARGS__); \
} while (0)