aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-02 00:19:57 -0700
commitb24dbaef8dc73ccff85ae3948ff508c1cab4ede9 (patch)
treefa1a97e6b2a9fb663850385e9a6a59b1a048218b /src/tag.h
parent62f527a609d14890886580fe453a9219ae0a2bf7 (diff)
downloadmpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.tar.gz
mpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.tar.xz
mpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.zip
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.
Diffstat (limited to 'src/tag.h')
-rw-r--r--src/tag.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag.h b/src/tag.h
index 4ee93ee1f..6452691be 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 mpd_tag {
int time;