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>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 43c7e0ed09
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-11 (Thu, 11 Aug 2016)



------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-08-11 13:52:49 +02:00
committed by Thilo Graf
parent d232a0d8df
commit d97a3de34d
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