]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - daemon/OlyUtility.h
Revert "gator-driver: kernel API change for d_alloc_root"
[android-sdk/arm-ds5-gator.git] / daemon / OlyUtility.h
1 /**
2  * Copyright (C) ARM Limited 2010-2012. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
9 #ifndef OLY_UTILITY_H
10 #define OLY_UTILITY_H
12 #ifdef WIN32
13 #define PATH_SEPARATOR '\\'
14 #else
15 #define PATH_SEPARATOR '/'
16 #endif
18 class OlyUtility {
19 public:
20         OlyUtility() {};
21         ~OlyUtility() {};
22         void stringToLower(char* string);
23         int getApplicationFullPath(char* path, int sizeOfPath);
24         char* readFromDisk(const char* file, unsigned int *size = NULL, bool appendNull = true);
25         int writeToDisk(const char* path, const char* file);
26         int appendToDisk(const char* path, const char* file);
27         int copyFile(const char * srcFile, const char * dstFile);
28         const char* getFilePart(const char* path);
29         char* getPathPart(char* path);
30 private:
31 };
33 extern OlyUtility* util;
35 #endif // OLY_UTILITY_H