diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 15:04:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 15:04:49 +0200 |
commit | d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69 (patch) | |
tree | 2c50a2528b0b2e56a6b1749385b2290150810e5b /src/tag_pool.h | |
parent | d8ad109e10c547ed4167daa9117a09d432b1b571 (diff) | |
download | mpd-d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69.tar.gz mpd-d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69.tar.xz mpd-d38d2bc3533dcfb661a3cbb8bd6cd9574c31ab69.zip |
tag: optimize tag_dup(), copy item references
Don't call tag_pool_get_item() for duplicating tags, just increase the
item's reference counter instead.
Diffstat (limited to 'src/tag_pool.h')
-rw-r--r-- | src/tag_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tag_pool.h b/src/tag_pool.h index 4f063d1ed..e19b2f4b4 100644 --- a/src/tag_pool.h +++ b/src/tag_pool.h @@ -26,6 +26,8 @@ struct tag_item; struct tag_item *tag_pool_get_item(enum tag_type type, const char *value, int length); +struct tag_item *tag_pool_dup_item(struct tag_item *item); + void tag_pool_put_item(struct tag_item *item); #endif |