aboutsummaryrefslogtreecommitdiff
path: root/src/song.h
Commit message (Collapse)AuthorAge
* Playlist, Song: clarify parameter encodingMax Kellermann2013-01-18
|
* song: don't use GLibMax Kellermann2013-01-08
|
* util/list: don't use GLibMax Kellermann2013-01-08
|
* Directory: rename struct directory to DirectoryMax Kellermann2013-01-03
|
* ProxyDatabase: pass "detached" objects to visitorsMax Kellermann2012-08-15
| | | | Fixes wrong object URIs with duplicate base names.
* Song: add function song_dup_detached()Max Kellermann2012-08-15
| | | | | Initial support for "detached" songs that come from the database, but are private copies.
* Song: add function song_equals()Max Kellermann2012-08-15
| | | | | decoder_is_current_song() now recognizes different instances of the same physical song.
* Song: move trivial inline functions upMax Kellermann2012-08-15
|
* song: use C++ compilerMax Kellermann2012-08-08
|
* song: add function song_replace_uri()Max Kellermann2012-02-12
|
* directory: replace songvec with doubly linked listMax Kellermann2012-01-24
|
* copyright year 2011Max Kellermann2011-01-29
|
* Update copyright notices.Avuton Olrich2009-12-31
|
* song: added support for selecting a time rangeMax Kellermann2009-12-27
| | | | | | Added attributes start_ms, end_ms. This allows us to address a portion of a song file (important for CUE support). There is no support yet for storing these attributes in the state file.
* song: added function song_get_duration()Max Kellermann2009-12-26
|
* song_save: load one song at a timeMax Kellermann2009-11-01
| | | | | Changed songvec_load() to song_load(). Added start and end markers for each song. Removed the "key" line, it's redundant.
* song: renamed attribute "url" to "uri"Max Kellermann2009-10-13
|
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | 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.
* song: allocate the result of song_get_url()Max Kellermann2009-01-04
|
* song: adding support for songs in archivesViliam Mateicka2008-12-16
|
* added prefix to header macrosMax Kellermann2008-10-31
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* playlist: added support for adding songs not in the music databaseMax Kellermann2008-10-15
| | | | | Clients which have authenticated via unix socket may add local files to the MPD playlist, provided that they own the file.
* song: added song_in_database()Max Kellermann2008-10-15
| | | | | | | Some functions assume that a song is not in the database when it is a remote song. Based on that, they decide whether they are responsible for freeing the song struct. Add a special function which checks whether a song is in the database (currently equal to song_is_file()).
* song: pass const song pointer to song_get_url()Max Kellermann2008-10-14
| | | | song_get_url() doesn't modify the song object.
* song: song_file_update() returns boolMax Kellermann2008-10-08
| | | | | | Instead of returning 0 or -1, return true on success and false on failure. This seems more natural, and when the C library was designed, there was no "bool" data type.
* song: removed CamelCaseMax Kellermann2008-10-08
| | | | CamelCase is ugly... rename all functions.
* song: replaced all song constructorsMax Kellermann2008-10-08
| | | | | | Provide separate constructors for creating a remote song, a local song, and one for loading data from a song file. This way, we can add more assertions.
* use the "bool" data type instead of "int"Max Kellermann2008-10-08
| | | | "bool" should be used in C99 programs for boolean values.
* don't include os_compat.hMax Kellermann2008-10-08
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* CPP include cleanupMax Kellermann2008-10-08
| | | | Include only headers which are really used.
* song: converted typedef Song to struct songMax Kellermann2008-10-08
| | | | Again, a data type which can be forward-declared.
* directory: converted typedef Directory to struct directoryMax Kellermann2008-10-08
| | | | | The struct can be forward-declared by other headers, which relaxes the header dependencies.
* song: really make the song struct non-packedMax Kellermann2008-10-07
| | | | Somehow I must have missed this in commit 22e40b61.
* directory: serialize song deletes from playlist during updateEric Wong2008-10-07
| | | | | | | | | | | | | | | | This makes the update code thread-safe and doesn't penalize the playlist code by complicating it with complicated and error-prone locks (and the associated overhead, not everybody has a thread-implementation as good as NPTL). The update task blocks during the delete; but the update task is a slow task anyways so we can block w/o people caring too much. This was also our only freeSong call site, so remove that function. Note that deleting entire directories is not fully thread-safe, yet; as their traversals are not yet locked.
* song: stop storing song_typeEric Wong2008-10-06
| | | | | | | We already know if a song is a URL or not based on whether it has parentDir defined or not. Hopefully one day in the future we can drop HTTP support from MPD entirely when an HTTP filesystem comes along and we can access streams via open(2).
* song: don't make the struct packedMax Kellermann2008-10-06
| | | | | | The "packed" attribute may have negative side effects on performance. Remove the "packed" attribute, and increase the size of "song.url" to a multiple of the machine word size.
* song: use flex arrays to store song->urlEric Wong2008-10-06
| | | | | | Reduce the number of allocations we make, so there's less pressure on the allocator and less overhead to keep track of the allocations in.
* song: get rid of newNullSong()Eric Wong2008-10-06
| | | | | It didn't save us any lines of code nor did it do anything useful since we would overwrite everything anyways.
* assume stdint.h and stddef.h are availableMax Kellermann2008-09-29
| | | | | | Since we use a C99 compiler now, we can assert that the C99 standard headers are available, no need for complicated compile time checks. Kill mpd_types.h.
* song: converted "type" to enumMax Kellermann2008-09-29
| | | | | | Having an enum type is much nicer than an anonymous integer plus CPP macros. Note that the old code didn't save any space by declaring the variable 8 bit, due to padding.
* switch to C99 types, part IIMax Kellermann2008-09-29
| | | | | Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
* song: removed type SongListMax Kellermann2008-09-26
| | | | SongList has been superseded by struct songvec.
* pass "struct client" to dbUtils.c, song.c, tag_print.cMax Kellermann2008-09-07
| | | | | | Don't pass the raw file descriptor around. This migration patch is rather large, because all of the sources have inter dependencies - we have to change all of them at the same time.
* song: moved code to song_print.c, song_save.cMax Kellermann2008-09-07
| | | | | | | Move everything which dumps song information (via tag_print.c) to a separate source file. song_print.c gets code which writes song data to the client; song_save.c is responsible for serializing songs from the tag cache.
* include cleanupMax Kellermann2008-09-06
| | | | As usual, include only headers which are really needed.
* song: don't export newNullSong()Max Kellermann2008-08-29
| | | | The function newNullSong() is only used internally in song.c.
* tag: renamed MpdTag and MpdTagItem to struct tag, struct mpd_tag_itemMax Kellermann2008-08-29
| | | | | Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
* song: document get_song_url()Eric Wong2008-04-12
| | | | | [merged r7184 from branches/ew] git-svn-id: https://svn.musicpd.org/mpd/trunk@7242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* fix -Wconst warningsMax Kellermann2008-02-05
| | | | | | [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Cleanup #includes of standard system headers and put them in one placeEric Wong2008-01-03
| | | | | | | | | | | | | This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f