aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/Tag.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-20Util/ASCII: add function StringEqualsCaseASCII()Max Kellermann1-1/+2
Replaces GLib's g_ascii_strcasecmp().
2013-10-20TagType: rename enum tag_type to TagTypeMax Kellermann1-9/+9
2013-09-05Tag: remove the obsolete "bulk" modeMax Kellermann1-74/+3
Methods BeginAdd() and EndAdd() have been replaced by class TagBuilder.
2013-09-05Tag: compile-time initialisation of ignore_tag_itemsMax Kellermann1-9/+1
Move to TagSettings.c and use C99 initializers.
2013-09-05Tag: move fix_tag_value() to TagString.cxxMax Kellermann1-102/+2
2013-09-05Tag: remove unused methodsMax Kellermann1-56/+0
2013-09-05Tag: move configuration code to TagConfig.cxxMax Kellermann1-50/+0
Allow using the Tag.cxx library without the Config library.
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-0/+0
2013-09-05mpd_error.h: remove obsolete headerMax Kellermann1-3/+3
Migrate the remaining callers to FatalError().
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+2
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-07-31Tag: check bulk mode in Clear()Max Kellermann1-1/+8
2013-07-31Tag: add method Clear()Max Kellermann1-0/+16
Allow reusing Tag instances.
2013-07-30tag: convert to C++Max Kellermann1-133/+110
2013-07-28song: convert header to C++Max Kellermann1-1/+1
2013-01-07TagPool: use the Mutex class instead of GStaticMutexMax Kellermann1-10/+10
2013-01-07tag: convert to C++Max Kellermann1-65/+50
2012-08-08tag_pool: use GStaticMutexMax Kellermann1-10/+10
Eliminates explicit global initialisation.
2012-02-12tag: add attribute "has_playlist"Max Kellermann1-0/+2
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-09-25eliminate g_error() usageThomas Jansen1-2/+3
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
2010-06-30tag: added function tag_name_parse()Max Kellermann1-9/+41
Convert a string into a tag_type enum.
2010-03-17tag: added function tag_merge_replace()Max Kellermann1-0/+16
Like tag_merge(), but can deal with NULL parameters, and frees both tag objects.
2010-01-06tag: fixed memmove() size argument in tag_delete_item()Max Kellermann1-1/+1
This function has always been broken, but fortunately nobody used it.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-11-04tag: added function tag_name_parse()Max Kellermann1-9/+41
Convert a string into a tag_type enum.
2009-10-13tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann1-13/+13
2009-07-09Implement ArtistSort tagBart Nagel1-0/+1
2009-07-07tag: added tag "AlbumArtistSort"Max Kellermann1-0/+1
The tag_id3.c library supports both the documented "TSO2" tag, and the inofficial TXXX/ALBUMARTISTSORT. The Vorbis/FLAC decoder automatically supports the new tag, without further change.
2009-04-28song_save: don't call tag_free(NULL)Max Kellermann1-0/+2
When a song was in the database twice (which shouldn't happen), and the first song had no tag items, MPD calledd tag_free(NULL). Add a check to that source location, and an assertion to tag_free().
2009-04-28tag: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann1-2/+2
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
2009-03-15log: removed DEBUG() and FATAL()Max Kellermann1-3/+2
Use GLib the logging functions g_debug(), g_error() instead.
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-03-01tag: convert ignore_tag_items to a bool arrayMax Kellermann1-5/+5
2009-03-01tag: no CamelCaseMax Kellermann1-8/+8
Renamed functions and variables.
2009-02-28tag: moved APE code to tag_ape.cMax Kellermann1-120/+0
2009-02-27tag: don't accept invalid UTF-8 sequencesMax Kellermann1-5/+27
Overwrite invalid UTF-8 sequences with question marks.
2009-02-27tag: make tag.num_items unsignedMax Kellermann1-13/+4
There's no point in declaring num_items as a uint8_t, it doesn't save any space, due to padding. This allows us to lift the articial "255 items" limitation.
2009-02-27tag: no CamelCaseMax Kellermann1-37/+38
Renamed numOfItems to num_items.
2009-02-27tag: make tag_equal() return boolMax Kellermann1-12/+12
2009-02-17tag: fixed typo in MUSICBRAINZ_TRACKID tag nameMax Kellermann1-1/+1
2009-01-25tag: remove unused variable paramLaszlo Ashin1-3/+2
This variable doesn't have a role since 80799fa8.
2009-01-25use g_free() instead of free()Max Kellermann1-8/+6
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
2009-01-25conf: const pointers in block get functionsMax Kellermann1-1/+1
All config_get_block_*() functions should accept constant config_param pointers.
2009-01-25use config_get_string() instead of config_get_param()Max Kellermann1-5/+5
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
2009-01-24tag: added support for MusicBrainz tagsMax Kellermann1-1/+7
Added all important id tags from the MusicBrainz wiki: http://musicbrainz.org/doc/MusicBrainzTag This should automatically enable its suport in the vorbis and flac decoder plugins.
2009-01-17conf: no CamelCase, part IMax Kellermann1-2/+2
Renamed functions, types, variables.
2009-01-15tag: added tag_get_value()Max Kellermann1-3/+9
2009-01-13tag: added core support for the "album artist" tagMax Kellermann1-0/+1
Added TAG_ITEM_ALBUM_ARTIST. With this patch, MPD should be able to read the (inofficial) "ALBUMARTIST" Vorbis comment. Implementations in other decoder plugins will follow soon.
2009-01-04tag: allocate space for null terminator in clear_non_printable()Max Kellermann1-3/+1
Use g_strndup() instead of g_memdup().