summaryrefslogtreecommitdiff
path: root/src/vdr-plugin/common.h
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2011-03-26 17:35:41 +0200
committerAntti Ajanki <antti.ajanki@iki.fi>2011-03-26 17:35:41 +0200
commitbf656b5de4cf87badfcdfeb5e1923466ccce2ed1 (patch)
treeda058f248faecd9086e4c4aff8fb2a6c6f034ade /src/vdr-plugin/common.h
parent3dc970ba835f29895fa52af809c33d9eb8969dde (diff)
downloadvdr-plugin-webvideo-bf656b5de4cf87badfcdfeb5e1923466ccce2ed1.tar.gz
vdr-plugin-webvideo-bf656b5de4cf87badfcdfeb5e1923466ccce2ed1.tar.bz2
--vfat parameter (plugin, webvi)
Diffstat (limited to 'src/vdr-plugin/common.h')
-rw-r--r--src/vdr-plugin/common.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vdr-plugin/common.h b/src/vdr-plugin/common.h
index 90dfb5f..8443081 100644
--- a/src/vdr-plugin/common.h
+++ b/src/vdr-plugin/common.h
@@ -36,10 +36,12 @@ char *URLencode(const char *s);
// Remove URL encoding from s. The called must free the returned
// memory.
char *URLdecode(const char *s);
-// Return a "safe" version of filename. Remove path (replace '/' with
-// '!') and dots from the beginning. The string is modified in-place,
-// i.e. returns the pointer filename that was passed as argument.
-char *safeFilename(char *filename);
+// Return a "safe" version of filename. Replace '/' with '_' and
+// remove dots from the beginning. If vfatnames is true, replace also
+// other characters which are not allowed on VFAT. The string is
+// modified in-place, i.e. returns the pointer filename that was
+// passed as argument.
+char *safeFilename(char *filename, bool vfatnames);
// Escape s so that it can be passed as parameter to a shell command.
cString shellEscape(const char *s);
// Convert string s to lower case