diff options
author | Max Kellermann <max@duempel.org> | 2009-01-04 17:46:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-04 17:46:42 +0100 |
commit | 45597cc57171484bd59a4ad8f64434090835f93b (patch) | |
tree | c2893a1aa9e714f2e71de919bf8ad9572ec4c252 /src/ls.c | |
parent | 6a008b52d1004f56182911f2a635136d0d097918 (diff) | |
download | mpd-45597cc57171484bd59a4ad8f64434090835f93b.tar.gz mpd-45597cc57171484bd59a4ad8f64434090835f93b.tar.xz mpd-45597cc57171484bd59a4ad8f64434090835f93b.zip |
ls: renamed functions, no CamelCase
Diffstat (limited to '')
-rw-r--r-- | src/ls.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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), '.'); |