|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
4: Governed by the TrueCrypt License 2.4 the full text of which is contained
5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
7: */
8:
9: #ifndef TC_HEADER_Platform_Unix_Process
10: #define TC_HEADER_Platform_Unix_Process
11:
12: #include "Platform/PlatformBase.h"
13: #include "Platform/Functor.h"
14:
15: namespace TrueCrypt
16: {
17: struct ProcessExecFunctor
18: {
19: virtual ~ProcessExecFunctor () { }
20: virtual void operator() (int argc, char *argv[]) = 0;
21: };
22:
23: class Process
24: {
25: public:
26: Process ();
27: virtual ~Process ();
28:
29: static string Execute (const string &processName, const list <string> &arguments, int timeOut = -1, ProcessExecFunctor *execFunctor = nullptr);
30:
31: protected:
32:
33: private:
34: Process (const Process &);
35: Process &operator= (const Process &);
36: };
37: }
38:
39: #endif // TC_HEADER_Platform_Unix_Process
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.