ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Spectre2.hpp
(Generate patch)

Comparing Spectre2/Spectre2.hpp (file contents):
Revision 408 by douglas, 2004-12-31T01:08:16-08:00 vs.
Revision 429 by douglas, 2005-03-25T18:47:25-08:00

# Line 15 | Line 15
15  
16   #include <menes-api/console.hpp>
17   #include <menes-api/files.hpp>
18 + #include <menes-api/locks.hpp>
19 + #include <menes-api/path.hpp>
20 + #include <menes-api/process.hpp>
21 + #include <menes-ext/scopes.hpp>
22   #include <menes-ext/string.hpp>
23 + #include <menes-ios/helpers.hpp>
24 + #include <menes-xml/document.hpp>
25 + #include <menes-xml/nodeset.hpp>
26 + #include <menes-xml/parse.hpp>
27 +
28 + #include <unistd.h>
29 +
30 + #include "Matcher/Matcher.hpp"
31  
32   typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_CREAT | O_TRUNC, 0600> SecretFileWriter;
33 + typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_APPEND, 0> AppendFileWriter;
34  
35 < extern "C"
36 < {
37 < #include <unistd.h>
38 < }
35 > #ifndef _Spectre2_prefix_
36 > #define _Spectre2_prefix_ "/usr/local"
37 > #endif
38 >
39 > #ifndef _Spectre2_root_
40 > #define _Spectre2_root_ "/smb"
41 > #endif
42 >
43 > #ifndef _Spectre2_mount_
44 > #define _Spectre2_mount_ "/sbin/mount"
45 > #endif
46  
47   class Daemon;
48  
49   class Spectre2
50   {
51   private:
52 <        const ext::String& pid;
52 >        ext::String pid;
53   public:
54 <        Spectre2(const ext::String& config, const ext::String& pid);
54 >        Spectre2(const api::Path& config);
55          ~Spectre2();
56 <        static ext::String program;
56 >        static ext::String program, prefix, root, mount;
57          static bool debug;
58 <        static ext::Vector<Daemon*> daemons;
58 >        static Daemon* daemon;
59   };
60  
61 < #endif // _Spectre2_hpp_
61 > #endif//_Spectre2_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines