From 994459e4cedf5cced518820f531b75feb521bea1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 11 Jan 2016 14:35:56 +0100 Subject: common: add mp_tag_str() utility function --- common/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/common.h') diff --git a/common/common.h b/common/common.h index 7312b85ec8..920ad76a56 100644 --- a/common/common.h +++ b/common/common.h @@ -90,4 +90,7 @@ bool mp_append_escaped_string(void *talloc_ctx, struct bstr *dst, char *mp_strerror_buf(char *buf, size_t buf_size, int errnum); #define mp_strerror(e) mp_strerror_buf((char[80]){0}, 80, e) +char *mp_tag_str_buf(char *buf, size_t buf_size, uint32_t tag); +#define mp_tag_str(t) mp_tag_str_buf((char[22]){0}, 22, t) + #endif /* MPLAYER_MPCOMMON_H */ -- cgit v1.2.3