diff -r 5cc91383ab1e -r 7333d7932ef7 secureswitools/swisistools/source/sisxlibrary/utility_interface.h --- a/secureswitools/swisistools/source/sisxlibrary/utility_interface.h Thu Aug 19 10:02:49 2010 +0300 +++ b/secureswitools/swisistools/source/sisxlibrary/utility_interface.h Tue Aug 31 15:21:33 2010 +0300 @@ -38,6 +38,8 @@ // common interface for Windows and Linux +const int commandLength = 512; + wchar_t** CommandLineArgs(int &argc , char *argv[]); void cleanup(int argc, wchar_t **argv); @@ -100,28 +102,33 @@ int ConvertMultiByteToWideChar(const char* aSource, int aSourceLen, wchar_t* aTarget, int aTargetLen, TUint32 aCodePage = 0); /* -Copies an existing file to a new file. -@Parameters aSrc : The name of an existing file. -@Parameters aDest : The name of the new file. -@Parameters aFlag : (only for windows) If this parameter is TRUE and the new file specified by aDest already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. + * Copies an existing file to a new file. + * + * @Parameters aSrc The name of an existing file. + * @Parameters aDest The name of the new file. + * @Parameters aFailIfExistsFlag If this parameter is TRUE and the new file specified by aDest already exists, + * the function fails. If this parameter is FALSE and the new file already exists, + * the function overwrites the existing file and succeeds. + * @return + * If the function succeeds, the return value is zero. + * If the function fails, the return value is non-zero. + */ -Return Value -If the function succeeds, the return value is zero. -If the function fails, the return value is nonzero. -*/ - -int FileCopyA(const char* aSrc, const char* aDest, size_t aFlag); +int FileCopyA(const char* aSrc, const char* aDest, bool aFailIfExistsFlag); /* -Moves an existing file or a directory, including its children -@Parameters aSrc : The current name of the file or directory on the local computer. -@Parameters aDest : The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive. - -Return Value -If the function succeeds, the return value is zero. -If the function fails, the return value is nonzero. -*/ + * Moves an existing file or a directory, including its children. + * + * @Parameters aSrc The current name of the file or directory on the local computer. + * @Parameters aDest The new name for the file or directory. The new name must not already exist. + * A new file may be on a different file system or drive. A new directory must be + * on the same drive. + * + * @return + * If the function succeeds, the return value is zero. + * If the function fails, the return value is non-zero. + */ int FileMoveA(const char* aSrc, const char* aDest);