]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - daemon/LocalCapture.h
Revert "gator-driver: kernel API change for d_alloc_root"
[android-sdk/arm-ds5-gator.git] / daemon / LocalCapture.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 __LOCAL_CAPTURE_H__
10 #define __LOCAL_CAPTURE_H__
12 #include "SessionXML.h"
14 class LocalCapture {
15 public:
16         LocalCapture();
17         ~LocalCapture();
18         void write(char *string);
19         void copyImages(ImageLinkList* ptr);
20         void createAPCDirectory(char* target_path, char* name);
21 private:
22         char* createUniqueDirectory(const char* path, const char* ending, char* title);
23         void replaceAll(char* target, const char* find, const char* replace, unsigned int size);
24         int removeDirAndAllContents(char *path);
25 };
27 #endif  //__LOCAL_CAPTURE_H__