Revision: | 155 |
Committed: | 2003-06-09T01:10:31-07:00 (22 years, 1 month ago) by douglas |
Content type: | text/x-c |
File size: | 758 byte(s) |
Log Message: | Did some crazy stuff! |
# | User | Rev | Content |
---|---|---|---|
1 | douglas | 148 | // Spectre Samba Mounter |
2 | // | ||
3 | // Douglas Thrift | ||
4 | // | ||
5 | // Spectre.h | ||
6 | |||
7 | #ifndef _Spectre_h_ | ||
8 | #define _Spectre_h_ | ||
9 | |||
10 | #include <iostream> | ||
11 | #include <vector> | ||
12 | #include <set> | ||
13 | douglas | 153 | #include <map> |
14 | douglas | 148 | #include <cstdlib> |
15 | #include <cstdio> | ||
16 | #include <string> | ||
17 | |||
18 | #include <pstream.h> | ||
19 | douglas | 155 | #include <sys/utsname.h> |
20 | douglas | 148 | #include <sys/types.h> |
21 | #include <sys/stat.h> | ||
22 | #include <dirent.h> | ||
23 | #include <pwd.h> | ||
24 | #include <unistd.h> | ||
25 | |||
26 | using namespace std; | ||
27 | using namespace redi; | ||
28 | |||
29 | douglas | 154 | struct Config |
30 | { | ||
31 | string install; | ||
32 | string smbclient; | ||
33 | string mount_smbfs; | ||
34 | string root; | ||
35 | douglas | 155 | multimap<string, string> hosts; |
36 | douglas | 154 | }; |
37 | |||
38 | douglas | 153 | extern string program; |
39 | extern string programName; | ||
40 | extern string programVersion; | ||
41 | extern bool debug; | ||
42 | |||
43 | douglas | 154 | extern Config config; |
44 | |||
45 | douglas | 155 | string platform(); |
46 | douglas | 153 | void usage(); |
47 | void version(); | ||
48 | douglas | 155 | void configure(); |
49 | douglas | 153 | |
50 | douglas | 148 | #endif // _Spectre_h_ |