diff options
author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-03-26 17:35:41 +0200 |
---|---|---|
committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-03-26 17:35:41 +0200 |
commit | bf656b5de4cf87badfcdfeb5e1923466ccce2ed1 (patch) | |
tree | da058f248faecd9086e4c4aff8fb2a6c6f034ade /src/vdr-plugin/common.h | |
parent | 3dc970ba835f29895fa52af809c33d9eb8969dde (diff) | |
download | vdr-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.h | 10 |
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 |