aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Util.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-11 01:30:05 +0100
committerMax Kellermann <max@duempel.org>2014-01-11 01:30:05 +0100
commitb50d79542c95ab88387418b34999e942e6b6a583 (patch)
tree072d8bf2a90375af038569e0b1212e70f9b360f0 /src/db/upnp/Util.hxx
parent8351543c0f43ee281032ef712cc5168beb662d31 (diff)
downloadmpd-b50d79542c95ab88387418b34999e942e6b6a583.tar.gz
mpd-b50d79542c95ab88387418b34999e942e6b6a583.tar.xz
mpd-b50d79542c95ab88387418b34999e942e6b6a583.zip
db/upnp: move stringToTokens() to Util.cxx
Diffstat (limited to 'src/db/upnp/Util.hxx')
-rw-r--r--src/db/upnp/Util.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/upnp/Util.hxx b/src/db/upnp/Util.hxx
index 3cdc57cd5..08fe5f497 100644
--- a/src/db/upnp/Util.hxx
+++ b/src/db/upnp/Util.hxx
@@ -20,7 +20,10 @@
#ifndef MPD_UPNP_UTIL_HXX
#define MPD_UPNP_UTIL_HXX
+#include "Compiler.h"
+
#include <string>
+#include <vector>
std::string
caturl(const std::string& s1, const std::string& s2);
@@ -31,6 +34,11 @@ trimstring(std::string &s, const char *ws = " \t\n");
std::string
path_getfather(const std::string &s);
+gcc_pure
+std::vector<std::string>
+stringToTokens(const std::string &str,
+ const char *delims = "/", bool skipinit = true);
+
template <class T>
bool csvToStrings(const std::string& s, T &tokens);