16 |
|
#include <string> |
17 |
|
|
18 |
|
#include <pstream.h> |
19 |
+ |
#include <sys/utsname.h> |
20 |
|
#include <sys/types.h> |
21 |
|
#include <sys/stat.h> |
22 |
|
#include <dirent.h> |
26 |
|
using namespace std; |
27 |
|
using namespace redi; |
28 |
|
|
29 |
+ |
struct Config |
30 |
+ |
{ |
31 |
+ |
string install; |
32 |
+ |
string smbclient; |
33 |
+ |
string mount_smbfs; |
34 |
+ |
string root; |
35 |
+ |
multimap<string, string> hosts; |
36 |
+ |
}; |
37 |
+ |
|
38 |
|
extern string program; |
39 |
|
extern string programName; |
40 |
|
extern string programVersion; |
41 |
|
extern bool debug; |
32 |
– |
extern map<string, string> config; |
42 |
|
|
43 |
+ |
extern Config config; |
44 |
+ |
|
45 |
+ |
string platform(); |
46 |
|
void usage(); |
47 |
|
void version(); |
48 |
+ |
void configure(); |
49 |
|
|
50 |
|
#endif // _Spectre_h_ |