aboutsummaryrefslogtreecommitdiff
path: root/src/tag.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
commite5a7879892f12cb60fa2d2857b0e14d328a7d5ae (patch)
tree6b5ee152733367e1751765d00a3c90919e52b130 /src/tag.h
parentb731bbe93abd48e745d72958be0c253ade7a9d08 (diff)
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 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;