aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/TagSettings.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag/TagSettings.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tag/TagSettings.h b/src/tag/TagSettings.h
index cf91b52e1..a58bd8915 100644
--- a/src/tag/TagSettings.h
+++ b/src/tag/TagSettings.h
@@ -21,9 +21,28 @@
#define MPD_TAG_SETTINGS_H
#include "TagType.h"
+#include "Compiler.h"
#include <stdbool.h>
extern bool ignore_tag_items[TAG_NUM_OF_ITEM_TYPES];
+#ifdef __cplusplus
+
+gcc_const
+static inline bool
+IsTagEnabled(unsigned tag)
+{
+ return !ignore_tag_items[tag];
+}
+
+gcc_const
+static inline bool
+IsTagEnabled(TagType tag)
+{
+ return IsTagEnabled(unsigned(tag));
+}
+
+#endif
+
#endif