aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabasePrint.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-08-07locate: add "casefold" flag to parserMax Kellermann1-9/+2
Fold the case during construction, without having to create another copy.
2012-08-07db_selection: rename to DatabaseSelectionMax Kellermann1-14/+8
2012-08-07db_print.h: rename to DatabasePrint.hxxMax Kellermann1-5/+5
2012-08-07Database{Plugin,Visitor}: pass referencesMax Kellermann1-46/+43
2012-08-02db_print: convert to C++Max Kellermann1-154/+91
2012-02-12db_print: print extra "playlist" object for embedded CUE sheetsMax Kellermann1-12/+30
This finally enables the new embedded CUE sheet code: when a song file contains a playlist, it is printed in the "lsinfo" output, so clients get to know about this.
2012-02-12playlist_vector: use the list_head libraryMax Kellermann1-0/+1
2011-10-08db_print: print absolute URI of playlist entriesMax Kellermann1-3/+17
The protocol mandates that playlist URIs are absolute (i.e. full URI relative to the music directory, not relative to the parent directory). This adds the parameter "directory" to the "playlist" visitor method.
2011-09-13db_print: move code to function db_selection_print()Max Kellermann1-2/+15
Use it in handle_lsinfo(), and eliminate some duplicate code.
2011-09-13db_visitor: add method playlist()Max Kellermann1-0/+37
2011-09-13database: don't allow uri==NULLMax Kellermann1-1/+1
Add nonnull attributes and fix all callers.
2011-09-13database: add struct db_visitorMax Kellermann1-52/+92
Use this struct for db_walk().
2011-09-06dbUtils: move code to db_print.cMax Kellermann1-72/+1
2011-09-05dbUtils: pass player_control to findAddIn()Max Kellermann1-7/+12
Allow calling findAddIn() without a client object.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-5/+11
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2011-01-10dbUtils: don't use directoryAddSongToPlaylist() twiceMax Kellermann1-1/+1
In findAddInDirectory(), call playlist_append_song() directly, to have some more type checking.
2010-02-08song_print: song_print() returns voidMax Kellermann1-2/+2
The only "return" statement always returns 0.
2010-01-02dbUtils: return empty tag value only if no value was foundMax Kellermann1-1/+4
This fixes a regression in the patch "return multiple tag values per song": even when the song has values for the specified tag type, the empty string gets added to the set, because the "return" was removed. This patch adds a flag which remembers whether at least one value was found.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-27dbUtils: return multiple tag values per songMax Kellermann1-1/+0
When collecting tag values for the result set, add all of a song's tag values of the searched type. This affects the "list" command. Previously, "list" only considered the first tag value of a song.
2009-12-26song: added function song_get_duration()Max Kellermann1-2/+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-10-13song: renamed attribute "url" to "uri"Max Kellermann1-2/+2
2009-08-25command: add "findadd" command.Anton Khirnov1-0/+22
2009-07-14playlist: no CamelCaseMax Kellermann1-1/+1
2009-03-15dbUtils: removed printSavedMemoryFromFilenames()Max Kellermann1-35/+0
The function is unused.
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-02-27tag: no CamelCaseMax Kellermann1-3/+3
Renamed numOfItems to num_items.
2009-02-04playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann1-1/+1
Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
2009-01-25use g_free() instead of free()Max Kellermann1-1/+1
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-24locate: added locate_item_list_casefold()Max Kellermann1-6/+2
Merged casefolding code from two locations into this one library function.
2009-01-24queue_print, dbUtils: use struct locate_item_listMax Kellermann1-39/+21
Changed the function prototypes to get locate_item_list objects instead of num_items/items.
2009-01-24locate: added struct locate_item_listMax Kellermann1-5/+6
Instead of passing two parameters around (number of items, array of items), combine both in a variable size struct.
2009-01-24locate: no CamelCaseMax Kellermann1-7/+7
Renamed functions and variables.
2009-01-24locate: renamed LocateTagItem to "struct locate_item"Max Kellermann1-14/+18
No CamelCase and no typedefs.
2009-01-22locate: use const pointersMax Kellermann1-20/+13
Pass const pointers where no writes are performed.
2009-01-18stats: use one db_walk() to obtain statsMax Kellermann1-41/+0
Don't use dbUtils.h functions. This reduces 4 full database walks to just one.
2009-01-04directory: added directory_is_root()Max Kellermann1-3/+4
directory_is_root() is cheaper than isRootDirectory(directory_get_path()).
2009-01-03dbUtils: use GLib instead of utils.hMax Kellermann1-3/+4
2008-11-24dbUtils.c: replaced mpd_unused by G_GNUC_UNUSEDThomas Jansen1-2/+2
2008-10-22stored_playlist: no CamelCaseMax Kellermann1-1/+1
Renamed all public functions, prefix is "spl_".
2008-10-22renamed storedPlaylist.c to stored_playlist.cMax Kellermann1-1/+1
No CamelCase in file names.
2008-10-15locate: use g_utf8_casefold() instead of string_toupper()Max Kellermann1-2/+4
string_toupper() and strDupToUpper() were not able to deal with character sets other than US-ASCII. Use GLib's g_utf8_casefold() for strings.
2008-10-08directory: fix update in root directoryMax Kellermann1-2/+2
Commit 0bfe7802 broke update for new files in the root directory, because music_root->path was an empty string and not NULL. There were some NULL tests missing. Change them to !isRootDirectory(path) instead of path!=NULL.
2008-10-08directory: eliminate CamelCaseMax Kellermann1-2/+2
CamelCase is ugly, rename the functions.
2008-10-08database: renamed functions, "db_" prefix and no CamelCaseMax Kellermann1-15/+13
Yet another CamelCase removal patch.
2008-10-08directory: moved code to database.cMax Kellermann1-0/+1
Taming the directory.c monster, part II: move the database management stuff to database. directory.c should only contain code which works on directory objects.
2008-10-08song: converted typedef Song to struct songMax Kellermann1-12/+23
Again, a data type which can be forward-declared.
2008-10-08directory: converted typedef Directory to struct directoryMax Kellermann1-6/+8
The struct can be forward-declared by other headers, which relaxes the header dependencies.