aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 17:46:42 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 17:46:42 +0100
commit45597cc57171484bd59a4ad8f64434090835f93b (patch)
treec2893a1aa9e714f2e71de919bf8ad9572ec4c252 /src/ls.c
parent6a008b52d1004f56182911f2a635136d0d097918 (diff)
downloadmpd-45597cc57171484bd59a4ad8f64434090835f93b.tar.gz
mpd-45597cc57171484bd59a4ad8f64434090835f93b.tar.xz
mpd-45597cc57171484bd59a4ad8f64434090835f93b.zip
ls: renamed functions, no CamelCase
Diffstat (limited to '')
-rw-r--r--src/ls.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ls.c b/src/ls.c
index 5be3f7b70..039695d23 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -20,6 +20,7 @@
#include "client.h"
#include "config.h"
+#include <assert.h>
#include <string.h>
static const char *remoteUrlPrefixes[] = {
@@ -29,7 +30,7 @@ static const char *remoteUrlPrefixes[] = {
NULL
};
-void printRemoteUrlHandlers(struct client *client)
+void print_supported_uri_schemes(struct client *client)
{
const char **prefixes = remoteUrlPrefixes;
@@ -44,12 +45,14 @@ bool uri_has_scheme(const char *uri)
return strstr(uri, "://") != NULL;
}
-bool isRemoteUrl(const char *url)
+bool uri_supported_scheme(const char *uri)
{
const char **urlPrefixes = remoteUrlPrefixes;
+ assert(uri_has_scheme(uri));
+
while (*urlPrefixes) {
- if (g_str_has_prefix(url, *urlPrefixes))
+ if (g_str_has_prefix(uri, *urlPrefixes))
return true;
urlPrefixes++;
}
@@ -58,7 +61,7 @@ bool isRemoteUrl(const char *url)
}
/* suffixes should be ascii only characters */
-const char *getSuffix(const char *utf8file)
+const char *uri_get_suffix(const char *utf8file)
{
const char *dot = strrchr(g_basename(utf8file), '.');