aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-26{playlist,input}/despotify: remove defunct pluginMax Kellermann1-3/+0
2014-02-06input/nfs: new plugin using libnfsMax Kellermann1-0/+3
2014-01-24Client*: move to client/Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-29input/smbclient: new input pluginMax Kellermann1-0/+3
2013-12-19add draft ALSA input pluginSteven O'Brien1-0/+3
I've created an elementary input plugin that plays sound from the soundcard, so you can use MPD to listen to anything connected to the line-in jack, or to Video4Linux FM radio cards that send audio through the soundcard. There has been a small number of posts here in the past requesting line-in input, so here is a first, simplistic stab at it. The patch adds a new sheme, alsa://, which causes mpd to play data read directly from a souncdard. It defaults to hw:0,0, but you can pass any ALSA device name in the URI. So, using mpc for example: mpc add alsa:// mpc play will play from device hw:0,0. To use a diffferent device: mpc add alsa://hw:1,0
2013-11-28Util/StringUtil: add StringStartsWith()Max Kellermann1-3/+2
Replaces GLib's g_str_has_prefix().
2013-11-28include cleanup using iwyuMax Kellermann1-2/+0
2013-10-19*: use references instead of pointersMax Kellermann1-1/+1
2013-09-05input/curl: enable httpsAles Guzik1-0/+1
2013-04-17input/soup: plugin removedMax Kellermann1-1/+1
This plugin is cumbersome to support, now that MPD is migrating away from GLib and the GLib event loop. It has no practical advantages over the CURL plugin. Soup requires the bloated GType library.
2013-04-08uri: convert to C++Max Kellermann1-5/+1
2013-01-03Client: rename the struct client to class ClientMax Kellermann1-1/+1
2013-01-03ls.h: rename to ls.hxxMax Kellermann1-1/+1
2013-01-03client: convert to C++Max Kellermann1-1/+2
2013-01-03ls: convert to C++Max Kellermann1-1/+4
2012-08-02gcc.h: re-add gcc_const and gcc_pureMax Kellermann1-0/+2
Remove GLib dependency from some headers.
2012-06-12cmdline: consistent plugin listingsMax Kellermann1-2/+2
2011-08-24input/soup: new input plugin based on libsoupMax Kellermann1-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.
2011-03-29input: Add despotify input pluginSimon Kagstrom1-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
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-12-22configure.ac: hook the cdio_paranoia input pluginMax Kellermann1-0/+3
2010-05-18input/ffmpeg: new input plugin using libavformat's "avio" libraryMax Kellermann1-0/+8
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-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.
2009-10-13input/lastfm: removed obsolete last.fm input pluginMax Kellermann1-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.
2009-09-24configure.ac: rename HAVE_CURL to ENABLE_CURLMax Kellermann1-1/+1
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-03ls: Print output of supported uri to fp rather than stdout.Avuton Olrich1-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.
2009-03-03cmdline: Print available protocols when --version is run.Avuton Olrich1-0/+20
2009-03-02input_lastfm: new input plugin for last.fm radioMax Kellermann1-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.
2009-02-25ls: moved generic URI utilities to uri.cMax Kellermann1-13/+1
"ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
2009-01-29added support for the MMS protocolMax Kellermann1-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.
2009-01-04ls: renamed functions, no CamelCaseMax Kellermann1-4/+7
2009-01-04ls: removed hasMusicSuffix() and get_archive_by_suffix()Max Kellermann1-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.
2009-01-04ls: include cleanupMax Kellermann1-6/+4
Don't include headers which are not used. Fix some includes in decoder_thread.c.
2009-01-02list: removed linked list libraryMax Kellermann1-1/+0
It's been superseded by GLib's GSList.
2008-12-31ls.c: include config.h to have HAVE_CURL hereLaszlo Ashin1-0/+1
2008-12-29removed os_compat.hMax Kellermann1-1/+2
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
2008-12-27disable archive API without pluginsMax Kellermann1-0/+2
When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
2008-12-16ls: adding get_archive_by_suffix() functionViliam Mateicka1-0/+15
2008-12-16ls: added uri_has_scheme()Max Kellermann1-0/+4
uri_has_scheme() checks if an URI contains the sub string "://", which makes MPD assume that it is a remote URI.
2008-12-16ls: don't return suffix from parent directory nameMax Kellermann1-1/+1
When a file had no file name extension, getSuffix() could return the extension of the parent directory (if it had one).
2008-12-16ls: reimplement getSuffix() with strrchr()Max Kellermann1-8/+2
The old getSuffix() code was quite wasteful, and can be replaced completely with strrchr().
2008-12-16ls: use boolMax Kellermann1-5/+4
Use the C99 "bool" data type instead of "int".
2008-12-16ls: make printRemoteUrlHandlers() return voidMax Kellermann1-3/+1
printRemoteUrlHandlers() cannot fail, and does not need a return value.
2008-12-16ls: removed isValidRemoteUtf8Url()Max Kellermann1-40/+0
The function didn't do anything useful, it was just several lines obfuscating that it was only forwarding isRemoteUrl()'s return value.
2008-11-01decoder: return const decoder_plugin structsMax Kellermann1-2/+3
The decoder_plugin structs must never change. Don't work with non-const pointers.
2008-10-28utils: use g_str_has_prefix() instead of prefixcmp()Max Kellermann1-2/+1
Remove duplicated code from MPD.
2008-10-26http: use libcurlMax Kellermann1-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.