helpers.chh/h: add some helper functions

Partial cherry pick from:
https://bitbucket.org/neutrino-images/ni-neutrino-hd

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2016-08-11 13:52:49 +02:00
committed by Thilo Graf
parent 513850f915
commit 43c7e0ed09
2 changed files with 113 additions and 0 deletions

View File

@@ -146,4 +146,9 @@ std::string getJFFS2MountPoint(int mtdPos);
std::string Lang2ISO639_1(std::string& lang);
std::string readLink(std::string lnk);
int getpidof(const char *process);
std::string filehash(const char * file);
std::string get_path(const char * path);
inline bool file_exists(const std::string file) { return file_exists(file.c_str()); }
#endif