summaryrefslogtreecommitdiffstats
path: root/src/player.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-04 15:37:00 +0100
committerLouis Burda <quent.burda@gmail.com>2023-02-04 15:37:00 +0100
commit4f3bfa23ed263e79db97d14032f569fa539ab9fc (patch)
tree5da6e4c8e9b83383ee2967c4889adc8a95ca7cb4 /src/player.h
parent440e88cfbbc2f24ca0fa22c448d597e751d49dc2 (diff)
downloadtmus-4f3bfa23ed263e79db97d14032f569fa539ab9fc.tar.gz
tmus-4f3bfa23ed263e79db97d14032f569fa539ab9fc.zip
Improve player status display
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/player.h b/src/player.h
index e6b4f17..d1038ef 100644
--- a/src/player.h
+++ b/src/player.h
@@ -3,21 +3,15 @@
#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 = (lvl); \
- if (player.status) free(player.status); \
- player.status = aprintf(__VA_ARGS__); \
+#define PLAYER_STATUS(...) do { \
+ free(user_status); \
+ user_status = aprintf("Player: " __VA_ARGS__); \
+ user_status_uptime = 20; \
} while (0)
enum {
- PLAYER_STATUS_OK,
- PLAYER_STATUS_ERR
+ PLAYER_OK,
+ PLAYER_ERR
};
enum {