From 8ae565d8851c4db0142945273a39b8526b167c8f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 25 Sep 2005 14:31:23 +0200 Subject: Made the function ExchangeChars() public --- CONTRIBUTORS | 1 + HISTORY | 1 + recording.c | 4 ++-- recording.h | 8 +++++++- 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 Lucian Muresan 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 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 -- cgit v1.2.3