diff options
author | Max Kellermann <max@duempel.org> | 2008-12-16 21:22:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-16 21:22:10 +0100 |
commit | c50115f9a2c0b5f8fc89906629386b74139212cf (patch) | |
tree | 095de806b98c0373f9ed24dbddb8cc2d34c1b294 /src/ls.c | |
parent | e0be4400cf22a3bcb2a976a6b3d58183c0155b52 (diff) | |
download | mpd-c50115f9a2c0b5f8fc89906629386b74139212cf.tar.gz mpd-c50115f9a2c0b5f8fc89906629386b74139212cf.tar.xz mpd-c50115f9a2c0b5f8fc89906629386b74139212cf.zip |
ls: added uri_has_scheme()
uri_has_scheme() checks if an URI contains the sub string "://", which
makes MPD assume that it is a remote URI.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -42,6 +42,10 @@ void printRemoteUrlHandlers(struct client *client) } } +bool uri_has_scheme(const char *uri) +{ + return strstr(uri, "://") != NULL; +} bool isRemoteUrl(const char *url) { |