aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-16 21:22:10 +0100
committerMax Kellermann <max@duempel.org>2008-12-16 21:22:10 +0100
commitc50115f9a2c0b5f8fc89906629386b74139212cf (patch)
tree095de806b98c0373f9ed24dbddb8cc2d34c1b294 /src/ls.h
parente0be4400cf22a3bcb2a976a6b3d58183c0155b52 (diff)
downloadmpd-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 '')
-rw-r--r--src/ls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ls.h b/src/ls.h
index 5ea65faf7..799d5dd4f 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -28,6 +28,12 @@ struct client;
const char *getSuffix(const char *utf8file);
+/**
+ * Checks whether the specified URI has a schema in the form
+ * "scheme://".
+ */
+bool uri_has_scheme(const char *uri);
+
bool isRemoteUrl(const char *url);
const struct decoder_plugin *