aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-08-04 00:13:22 +0200
committerMax Kellermann <max@duempel.org>2009-08-04 00:13:22 +0200
commitb06b4f937d51b11278266ecc4b41da61adeb871f (patch)
tree702c9f4ba1cf0fda1a239d899be72ac48d0eca1d /src
parent86c6bb618b40d08f389cc51972cec65b51dad308 (diff)
downloadmpd-b06b4f937d51b11278266ecc4b41da61adeb871f.tar.gz
mpd-b06b4f937d51b11278266ecc4b41da61adeb871f.tar.xz
mpd-b06b4f937d51b11278266ecc4b41da61adeb871f.zip
tag_id3: converted tag_is_id3v1() to an inline function
Prefer C over CPP.
Diffstat (limited to '')
-rw-r--r--src/tag_id3.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tag_id3.c b/src/tag_id3.c
index 32a693edf..0432c88b1 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -34,7 +34,6 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "id3"
-# define tag_is_id3v1(tag) (id3_tag_options(tag, 0, 0) & ID3_TAG_OPTION_ID3V1)
# ifndef ID3_FRAME_COMPOSER
# define ID3_FRAME_COMPOSER "TCOM"
# endif
@@ -54,6 +53,12 @@
#define ID3_FRAME_ALBUM_ARTIST "TPE2"
#endif
+static inline bool
+tag_is_id3v1(struct id3_tag *tag)
+{
+ return (id3_tag_options(tag, 0, 0) & ID3_TAG_OPTION_ID3V1) != 0;
+}
+
static id3_utf8_t *
tag_id3_getstring(const struct id3_frame *frame, unsigned i)
{