summaryrefslogtreecommitdiffstats
path: root/mpvcore/mp_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/mp_msg.h')
-rw-r--r--mpvcore/mp_msg.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/mpvcore/mp_msg.h b/mpvcore/mp_msg.h
index 7868d9c89d..4c5b6eabfb 100644
--- a/mpvcore/mp_msg.h
+++ b/mpvcore/mp_msg.h
@@ -137,12 +137,12 @@ bool mp_msg_test_log(struct mp_log *log, int lev);
#include "config.h"
#include "mpvcore/mp_common.h"
-char *mp_gtext(const char *string);
+#define mp_gtext(x) ((char*)(x))
// Note: using mp_msg_log or the MP_ERR/... macros is preferred.
void mp_msg_va(int mod, int lev, const char *format, va_list va);
void mp_msg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4);
-void mp_tmsg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4);
+#define mp_tmsg mp_msg
#define mp_dbg mp_msg
struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent,
@@ -150,8 +150,6 @@ struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent,
void mp_msg_log(struct mp_log *log, int lev, const char *format, ...)
PRINTF_ATTRIBUTE(3, 4);
-void mp_tmsg_log(struct mp_log *log, int lev, const char *format, ...)
- PRINTF_ATTRIBUTE(3, 4);
// Convenience macros, typically called with a pointer to a context struct
// as first argument, which has a "struct mp_log log;" member.