From 47efe4232123443b3fd33732df08969f3fd7300e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Jan 2008 10:07:34 +0000 Subject: Make utf8_to_fs_playlist_path universally accessible git-svn-id: https://svn.musicpd.org/mpd/trunk@7115 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/path.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/path.h') diff --git a/src/path.h b/src/path.h index ef7bc62a0..5a452ca7c 100644 --- a/src/path.h +++ b/src/path.h @@ -75,7 +75,13 @@ char *sanitizePathDup(char *path); /* this is actually like strlcpy (OpenBSD), but we don't actually want to * blindly use it everywhere, only for paths that are OK to truncate (for * error reporting and such. - * dest must be MAXPATHLEN+1 bytes large (which is standard in mpd) */ + * dest must be MPD_PATH_MAX bytes large (which is standard in mpd) */ void pathcpy_trunc(char *dest, const char *src); +/* + * converts a path passed from a client into an absolute FS path. + * paths passed by clients do NOT have file suffixes in them + */ +void utf8_to_fs_playlist_path(char *path_max_tmp, const char *utf8path); + #endif -- cgit v1.2.3