aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input/soup: new input plugin based on libsoupMax Kellermann2011-08-241-1/+1
| | | | | | | | To demonstrate the new I/O thread. libsoup is well-integrated into the GLib main loop, which made this plugin pretty easy to write. As a side effect, we have to initialize the I/O thread in all debug programs that use the input API.
* input: Add despotify input pluginSimon Kagstrom2011-03-291-0/+3
| | | | | | | | | | For Spotify tracks. Uses a spt URI, so with mpc you can play tracks with e.g., mpc add spt://spotify:track:5qENVY0YEdZ7fiuOax70x1 mpc play Uses the pcm_decoder_plugin for the output
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* configure.ac: hook the cdio_paranoia input pluginMax Kellermann2010-12-221-0/+3
|
* input/ffmpeg: new input plugin using libavformat's "avio" libraryMax Kellermann2010-05-181-0/+8
|
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* include config.h in all sourcesMax Kellermann2009-11-121-1/+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.
* input/lastfm: removed obsolete last.fm input pluginMax Kellermann2009-10-131-3/+0
| | | | | | This has been replaced by the last.fm playlist plugin. The input plugin has never worked well, and was just a playground to experiment with the last.fm radio protocol.
* configure.ac: rename HAVE_CURL to ENABLE_CURLMax Kellermann2009-09-241-1/+1
|
* all: Update copyright header.Avuton Olrich2009-03-131-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.
* ls: Print output of supported uri to fp rather than stdout.Avuton Olrich2009-03-031-1/+1
| | | | | Since there are no other callers than stdout, this wouldn't be a problem, but since there maybe in the future go ahead and fix it.
* cmdline: Print available protocols when --version is run.Avuton Olrich2009-03-031-0/+20
|
* input_lastfm: new input plugin for last.fm radioMax Kellermann2009-03-021-0/+3
| | | | | | | The lastfm input plugin enables MPD to play lastfm:// URLs. This plugin is not complete yet: it plays only the first song in the last.fm playlist, and the playlist parser isn't even implemented properly.
* ls: moved generic URI utilities to uri.cMax Kellermann2009-02-251-13/+1
| | | | | "ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
* added support for the MMS protocolMax Kellermann2009-01-291-0/+6
| | | | | | | This patch implements the MMS protocol, by using libmms. It is quite experimental: it does not support seeking yet, and it is currently using synchronous I/O, which causes MPD to hang while waiting for the server.
* ls: renamed functions, no CamelCaseMax Kellermann2009-01-041-4/+7
|
* ls: removed hasMusicSuffix() and get_archive_by_suffix()Max Kellermann2009-01-041-35/+0
| | | | | | | | Determine the suffix manually, and use decoder_plugin_from_suffix() and archive_plugin_from_suffix() instead. This way, song_file_update_inarchive() can be optimized: it does not have to translate its path.
* ls: include cleanupMax Kellermann2009-01-041-6/+4
| | | | | Don't include headers which are not used. Fix some includes in decoder_thread.c.
* list: removed linked list libraryMax Kellermann2009-01-021-1/+0
| | | | It's been superseded by GLib's GSList.
* ls.c: include config.h to have HAVE_CURL hereLaszlo Ashin2008-12-311-0/+1
|
* removed os_compat.hMax Kellermann2008-12-291-1/+2
| | | | | Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
* disable archive API without pluginsMax Kellermann2008-12-271-0/+2
| | | | | When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
* Merge branch 'experimental' of git://git.musicpd.org/metyl/mpdMax Kellermann2008-12-271-0/+15
|\ | | | | | | | | | | | | | | Conflicts: configure.ac src/ls.h src/output/shout_plugin.c
| * ls: adding get_archive_by_suffix() functionViliam Mateicka2008-12-161-0/+15
| |
* | ls: added uri_has_scheme()Max Kellermann2008-12-161-0/+4
| | | | | | | | | | uri_has_scheme() checks if an URI contains the sub string "://", which makes MPD assume that it is a remote URI.
* | ls: don't return suffix from parent directory nameMax Kellermann2008-12-161-1/+1
| | | | | | | | | | When a file had no file name extension, getSuffix() could return the extension of the parent directory (if it had one).
* | ls: reimplement getSuffix() with strrchr()Max Kellermann2008-12-161-8/+2
| | | | | | | | | | The old getSuffix() code was quite wasteful, and can be replaced completely with strrchr().
* | ls: use boolMax Kellermann2008-12-161-5/+4
| | | | | | | | Use the C99 "bool" data type instead of "int".
* | ls: make printRemoteUrlHandlers() return voidMax Kellermann2008-12-161-3/+1
| | | | | | | | | | printRemoteUrlHandlers() cannot fail, and does not need a return value.
* | ls: removed isValidRemoteUtf8Url()Max Kellermann2008-12-161-40/+0
|/ | | | | The function didn't do anything useful, it was just several lines obfuscating that it was only forwarding isRemoteUrl()'s return value.
* decoder: return const decoder_plugin structsMax Kellermann2008-11-011-2/+3
| | | | | The decoder_plugin structs must never change. Don't work with non-const pointers.
* utils: use g_str_has_prefix() instead of prefixcmp()Max Kellermann2008-10-281-2/+1
| | | | Remove duplicated code from MPD.
* http: use libcurlMax Kellermann2008-10-261-0/+2
| | | | | | | MPD's HTTP client code has always been broken, no matter how effort was put into fixing it. Replace it with libcurl, which is known to be quite stable. This adds a fat library dependency, but only for people who need streaming.
* command: added print_spl_list()Max Kellermann2008-10-221-18/+0
| | | | | The function print_spl_list() replaces the old function lsPlaylists() from ls.c.
* stored_playlist: added spl_list()Max Kellermann2008-10-221-73/+9
| | | | | | spl_list() provides an interface for enumerating all stored playlists. This separates the internal playlist logic from the protocol specific function lsPlaylists().
* ls: removed myStat(), isFile(), isDir()Max Kellermann2008-10-141-47/+0
| | | | The mapper code has replaced these functions.
* song: stat file in song_file_update(), don't use isMusic()Max Kellermann2008-10-131-12/+0
| | | | | | | isMusic() used to be a very inefficient function: with every invocation, it did another stat() on the specified file. There is only one caller, do the stat() there manually and use hasMusicSuffix() instead of isMusic().
* playlist: don't use isPlaylist() in deletePlaylist()Max Kellermann2008-10-131-16/+0
| | | | | | The only caller of deletePlaylist() appends PLAYLIST_FILE_SUFFIX, so we can be sure it's already there. We don't need to stat the file, since unlink() does all the checking.
* song: removed type SongListMax Kellermann2008-09-261-0/+1
| | | | SongList has been superseded by struct songvec.
* start using prefixcmp()Eric Wong2008-09-231-2/+1
| | | | | LOC reduction and less noise makes things easier for tired old folks to follow.
* ls: don't pass "fd" to lsPlaylists(), printRemoteUrlHandlers()Max Kellermann2008-09-071-6/+6
| | | | Pass the client struct instead of the raw file descriptor.
* pass constant pointersMax Kellermann2008-08-291-3/+3
| | | | And again, convert arguments to const.
* renamed functions in decoder_list.hMax Kellermann2008-08-261-1/+1
| | | | InputPlugin to decoder_plugin, and no camelCase.
* renamed InputPlugin to struct decoder_pluginMax Kellermann2008-08-261-4/+5
| | | | | | "decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required.
* use size_tMax Kellermann2008-03-261-5/+5
| | | | | | | | When dealing with in-memory lengths, the standard type "size_t" should be used. Missing one can be quite dangerous, because an attacker could provoke an integer under-/overflow, which may provide an attack vector. git-svn-id: https://svn.musicpd.org/mpd/trunk@7205 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* eliminated duplicate initializationMax Kellermann2008-03-261-1/+1
| | | | | | | Local variables which are never read before the first assignment don't need initialization. Saves a few bytes of text. Also don't reset variables which are never read until function return. git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* fix -Wconst warningsMax Kellermann2008-02-051-17/+17
| | | | | | [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
* fixed -Wshadow warningsMax Kellermann2008-01-261-17/+18
| | | | | Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Cleanup #includes of standard system headers and put them in one placeEric Wong2008-01-031-4/+1
| | | | | | | | | | | | | 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
* Merge branches/ew r7104Eric Wong2007-12-281-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thread-safety work in preparation for rewrite to use pthreads Expect no regressions against trunk (r7078), possibly minor performance improvements in update (due to fewer heap allocations), but increased stack usage. Applied the following patches: * maxpath_str for reentrancy (temporary fix, reverted) * path: start working on thread-safe variants of these methods * Re-entrancy work on path/character-set conversions * directory.c: exploreDirectory() use reentrant functions here * directory/update: more use of reentrant functions + cleanups * string_toupper: a strdup-less version of strDupToUpper * get_song_url: a static-variable-free version of getSongUrl() * Use reentrant/thread-safe get_song_url everywhere * replace rmp2amp with the reentrant version, rmp2amp_r * Get rid of the non-reentrant/non-thread-safe rpp2app, too. * buffer2array: assert strdup() returns a usable value in unit tests * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants * fix storing playlists w/o absolute paths * parent_path(), a reentrant version of parentPath() * parentPath => parent_path for reentrancy and thread-safety * allow "make test" to automatically run embedded unit tests * remove convStrDup() and maxpath_str() * use MPD_PATH_MAX everywhere instead of MAXPATHLEN * path: get rid of appendSlash, pfx_path and just use pfx_dir * get_song_url: fix the ability to play songs in the top-level music_directory git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f