diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:24 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-02 00:13:19 -0700 |
commit | dc5e7c97a337025ef7c51f3191548188b56f5162 (patch) | |
tree | 1f5324ce3870d800a5a035e8bdfb2ff86cb2691b | |
parent | 95451b5821da1383f476cd8d6c6c8d12e683b777 (diff) | |
download | mpd-dc5e7c97a337025ef7c51f3191548188b56f5162.tar.gz mpd-dc5e7c97a337025ef7c51f3191548188b56f5162.tar.xz mpd-dc5e7c97a337025ef7c51f3191548188b56f5162.zip |
tag: converted tag_add_item() to an inline function
-rw-r--r-- | src/tag.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -75,8 +75,11 @@ void tag_free(struct mpd_tag *tag); void tag_add_item_n(struct mpd_tag *tag, enum tag_type itemType, const char *value, size_t len); -#define tag_add_item(tag, itemType, value) \ - tag_add_item_n(tag, itemType, value, strlen(value)) +static inline void tag_add_item(struct mpd_tag *tag, enum tag_type itemType, + const char *value) +{ + tag_add_item_n(tag, itemType, value, strlen(value)); +} void tag_print_types(int fd); |