aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/TagSettings.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 18:34:12 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 18:34:12 +0200
commit5d5f21bfc5911f9f80b3e24871287ac58db9543f (patch)
tree3f218719baec92da5264266ffe33e313b82e43b9 /src/tag/TagSettings.c
parentfcccedc5884a672eb66221d66fdda4755b4286ba (diff)
downloadmpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.tar.gz
mpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.tar.xz
mpd-5d5f21bfc5911f9f80b3e24871287ac58db9543f.zip
Tag: compile-time initialisation of ignore_tag_items
Move to TagSettings.c and use C99 initializers.
Diffstat (limited to 'src/tag/TagSettings.c')
-rw-r--r--src/tag/TagSettings.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tag/TagSettings.c b/src/tag/TagSettings.c
new file mode 100644
index 000000000..eb2db2ba5
--- /dev/null
+++ b/src/tag/TagSettings.c
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * http://www.musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include "TagSettings.h"
+
+bool ignore_tag_items[TAG_NUM_OF_ITEM_TYPES] = {
+ /* ignore comments by default */
+ [TAG_COMMENT] = true,
+};