summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-25 14:31:23 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-25 14:31:23 +0200
commit8ae565d8851c4db0142945273a39b8526b167c8f (patch)
treeb215e057be586c502bce7af2c0f4b5b139ad0e3b
parent976a2c7ffe9f6aeb242ede8ff1d8ab328fdfe23d (diff)
downloadvdr-1.3.33.tar.gz
vdr-1.3.33.tar.bz2
Made the function ExchangeChars() public1.3.33
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--recording.c4
-rw-r--r--recording.h8
4 files changed, 11 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index afced900..2a9dd18d 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1291,6 +1291,7 @@ Stefan Meyknecht <stefan@meyknecht.org>
Lucian Muresan <lucianm@users.sourceforge.net>
for updating the Romanian language texts and the iso8859-2 fonts
for making VDR actually use the iso8859-15 fonts
+ for suggesting to make the function ExchangeChars()
Mattias Grönlund <Mattias@Gronlund.net>
for pointing out a missing cleanup at program exit in case there is a problem
diff --git a/HISTORY b/HISTORY
index 5cbd6eef..cd02f8f7 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3848,3 +3848,4 @@ Video Disk Recorder Revision History
- The '.update' file in the video directory is now touched when a recording is
added or deleted, so that other VDR instances can update their lists (thanks to
Alexander Rieger).
+- Made the function ExchangeChars() public (suggested by Lucian Muresan).
diff --git a/recording.c b/recording.c
index de657698..8b21cdd2 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.118 2005/09/25 13:45:13 kls Exp $
+ * $Id: recording.c 1.119 2005/09/25 14:29:49 kls Exp $
*/
#include "recording.h"
@@ -306,7 +306,7 @@ tCharExchange CharExchange[] = {
{ 0, 0 }
};
-static char *ExchangeChars(char *s, bool ToFileSystem)
+char *ExchangeChars(char *s, bool ToFileSystem)
{
char *p = s;
while (*p) {
diff --git a/recording.h b/recording.h
index 9230540f..96bb4b54 100644
--- a/recording.h
+++ b/recording.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.h 1.43 2005/09/25 13:47:07 kls Exp $
+ * $Id: recording.h 1.44 2005/09/25 14:30:13 kls Exp $
*/
#ifndef __RECORDING_H
@@ -227,4 +227,10 @@ int SecondsToFrames(int Seconds); //XXX+ ->player???
int ReadFrame(int f, uchar *b, int Length, int Max);
+char *ExchangeChars(char *s, bool ToFileSystem);
+ // Exchanges the characters in the given string to or from a file system
+ // specific representation (depending on ToFileSystem). The given string will
+ // be modified and may be reallocated if more space is needed. The return
+ // value points to the resulting string, which may be different from s.
+
#endif //__RECORDING_H