From patchwork Wed Sep 21 11:06:43 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucian Muresan X-Patchwork-Id: 12034 Received: from moutng.kundenserver.de ([212.227.126.188]) by www.linuxtv.org with esmtp (Exim 4.50) id 1EI2R3-0008Hr-K2 for vdr@linuxtv.org; Wed, 21 Sep 2005 13:06:45 +0200 Received: from [212.123.105.22] (helo=[192.168.0.130]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKxQS-1EI2R23jPJ-0004xJ; Wed, 21 Sep 2005 13:06:44 +0200 Message-ID: <43313EC3.8050309@users.sourceforge.net> Date: Wed, 21 Sep 2005 13:06:43 +0200 From: Lucian Muresan User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vdr@linuxtv.org X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d08c22d43cf0caa9bc978276d00858e3 Subject: [vdr] [PATCH] export ExchangeChars(..) from recording.c X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 11:06:45 -0000 Status: O X-Status: X-Keywords: X-UID: 5091 Hi, I'd like to propose a tiny patch that won't hurt (I think), which makes the ExchangeChars(...) function available outside recording.c. I have worked on a patch in the vdr-burn-0.0.6h plugin where I'd need this function for generating the name of the folder where an authored DVD structure would be moved for subsequent "manual" burning outside of VDR. Regards, Lucian diff -Naur vdr-1.3.32_orig/recording.c vdr-1.3.32/recording.c --- vdr-1.3.32_orig/recording.c 2005-09-10 14:36:48.000000000 +0200 +++ vdr-1.3.32/recording.c 2005-09-21 12:55:43.470000000 +0200 @@ -288,7 +288,7 @@ { 0, 0 } }; -static char *ExchangeChars(char *s, bool ToFileSystem) +char *ExchangeChars(char *s, bool ToFileSystem) { char *p = s; while (*p) { diff -Naur vdr-1.3.32_orig/recording.h vdr-1.3.32/recording.h --- vdr-1.3.32_orig/recording.h 2005-09-03 15:04:41.000000000 +0200 +++ vdr-1.3.32/recording.h 2005-09-21 12:55:43.470000000 +0200 @@ -205,4 +205,6 @@ int ReadFrame(int f, uchar *b, int Length, int Max); +char *ExchangeChars(char *s, bool ToFileSystem); + #endif //__RECORDING_H