diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-13 11:09:25 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-13 11:09:25 +0200 |
commit | f0d4a871fa84d094bcb337b16ce7bc4c17bc750a (patch) | |
tree | dcb1904c9eb65aebd9fe8807ec13c62833073ea3 /drivers/gator/daemon/OlyUtility.h | |
parent | 5c719ae196db83efbb08d9abcb953a7729745ce2 (diff) | |
parent | 648ec275cc53a16f7ae503314bfd4fd9bd525dd0 (diff) |
Merge remote-tracking branch 'armlt/previous-armlt-gator' into stable-ubuntu-ux500-3.3-1
Conflicts:
drivers/Kconfig
Diffstat (limited to 'drivers/gator/daemon/OlyUtility.h')
-rw-r--r-- | drivers/gator/daemon/OlyUtility.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/gator/daemon/OlyUtility.h b/drivers/gator/daemon/OlyUtility.h new file mode 100644 index 00000000000..0fa021dc364 --- /dev/null +++ b/drivers/gator/daemon/OlyUtility.h @@ -0,0 +1,35 @@ +/** + * Copyright (C) ARM Limited 2010-2012. All rights reserved. + * + * This program 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. + */ + +#ifndef OLY_UTILITY_H +#define OLY_UTILITY_H + +#ifdef WIN32 +#define PATH_SEPARATOR '\\' +#else +#define PATH_SEPARATOR '/' +#endif + +class OlyUtility { +public: + OlyUtility() {}; + ~OlyUtility() {}; + void stringToLower(char* string); + int getApplicationFullPath(char* path, int sizeOfPath); + char* readFromDisk(const char* file, unsigned int *size = NULL, bool appendNull = true); + int writeToDisk(const char* path, const char* file); + int appendToDisk(const char* path, const char* file); + int copyFile(const char * srcFile, const char * dstFile); + const char* getFilePart(const char* path); + char* getPathPart(char* path); +private: +}; + +extern OlyUtility* util; + +#endif // OLY_UTILITY_H |