8 |
|
#define _Spectre_h_ |
9 |
|
|
10 |
|
#include <iostream> |
11 |
+ |
#include <fstream> |
12 |
|
#include <vector> |
13 |
|
#include <set> |
14 |
+ |
#include <map> |
15 |
|
#include <cstdlib> |
16 |
|
#include <cstdio> |
17 |
|
#include <string> |
18 |
|
|
19 |
|
#include <pstream.h> |
20 |
+ |
#include <sys/utsname.h> |
21 |
|
#include <sys/types.h> |
22 |
|
#include <sys/stat.h> |
23 |
|
#include <dirent.h> |
27 |
|
using namespace std; |
28 |
|
using namespace redi; |
29 |
|
|
30 |
+ |
struct Config |
31 |
+ |
{ |
32 |
+ |
string install; |
33 |
+ |
string smbclient; |
34 |
+ |
string mount; |
35 |
+ |
string root; |
36 |
+ |
multimap<string, string> hosts; |
37 |
+ |
}; |
38 |
+ |
|
39 |
+ |
extern string program; |
40 |
+ |
extern string programName; |
41 |
+ |
extern string programVersion; |
42 |
+ |
extern bool debug; |
43 |
+ |
|
44 |
+ |
extern Config config; |
45 |
+ |
|
46 |
+ |
string platform(); |
47 |
+ |
void usage(); |
48 |
+ |
void version(); |
49 |
+ |
void configure(); |
50 |
+ |
|
51 |
|
#endif // _Spectre_h_ |