X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/53d85a8fa1c1b98cb79c40712d1668731bdcaf49..d00a30d56fc4200a9a921d37ab7dc9e18e092bc0:/client/loclass/fileutils.h diff --git a/client/loclass/fileutils.h b/client/loclass/fileutils.h index 623190a6..79dbe566 100644 --- a/client/loclass/fileutils.h +++ b/client/loclass/fileutils.h @@ -22,7 +22,7 @@ * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. + * by the Free Software Foundation, or, at your option, any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -33,11 +33,13 @@ * along with loclass. If not, see . * * - * ****************************************************************************/ #ifndef FILEUTILS_H #define FILEUTILS_H + +#ifndef ON_DEVICE + /** * @brief Utility function to save data to a file. This method takes a preferred name, but if that * file already exists, it tries with another name until it finds something suitable. @@ -50,6 +52,8 @@ */ int saveFile(const char *preferredName, const char *suffix, const void* data, size_t datalen); +int fileExists(const char *filename); +#endif //ON_DEVICE /** * Utility function to print to console. This is used consistently within the library instead @@ -59,5 +63,4 @@ int saveFile(const char *preferredName, const char *suffix, const void* data, si * @param fmt */ void prnlog(char *fmt, ...); -int fileExists(const char *filename); #endif // FILEUTILS_H