From e5a7879892f12cb60fa2d2857b0e14d328a7d5ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2008 09:38:33 +0200 Subject: tag: converted tag_item.value to a char array The value is stored in the same memory allocation as the tag_item struct; this saves memory because we do not store the value pointer anymore. Also remove the getTagItemString()/removeTagItemString() dummies. --- src/tag.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tag.h') diff --git a/src/tag.h b/src/tag.h index 1618c0f5..afded5d7 100644 --- a/src/tag.h +++ b/src/tag.h @@ -41,8 +41,8 @@ extern const char *mpdTagItemKeys[]; struct tag_item { enum tag_type type; - char *value; -}; + char value[1]; +} mpd_unused; struct tag { int time; -- cgit v1.2.3