Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c50115f9
Commit
c50115f9
authored
Dec 16, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
e0be4400
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ls.c
src/ls.c
+4
-0
ls.h
src/ls.h
+6
-0
No files found.
src/ls.c
View file @
c50115f9
...
...
@@ -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
)
{
...
...
src/ls.h
View file @
c50115f9
...
...
@@ -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
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment