ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Spectre.h
Revision: 159
Committed: 2003-06-09T20:12:03-07:00 (22 years ago) by douglas
Content type: text/x-c
File size: 771 byte(s)
Log Message:
Wrote the config file and changed some stuff.

File Contents

# Content
1 // 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 <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>
24 #include <pwd.h>
25 #include <unistd.h>
26
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_