ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Spectre2.hpp
Revision: 414
Committed: 2005-01-14T22:35:17-08:00 (20 years, 5 months ago) by douglas
File size: 816 byte(s)
Log Message:
Oh, yeah!

File Contents

# User Rev Content
1 douglas 402 // Spectre 2
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Spectre2_hpp_
8     #define _Spectre2_hpp_
9    
10     #include <menes/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <menes-api/console.hpp>
17 douglas 408 #include <menes-api/files.hpp>
18 douglas 402 #include <menes-ext/string.hpp>
19    
20 douglas 414 #include <unistd.h>
21    
22 douglas 408 typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_CREAT | O_TRUNC, 0600> SecretFileWriter;
23    
24 douglas 414 #ifndef _Spectre2_prefix_
25     #define _Spectre2_prefix_ "/usr/local"
26     #endif
27 douglas 407
28 douglas 414 #ifndef _Spectre2_root_
29     #define _Spectre2_root_ "/smb"
30     #endif
31    
32 douglas 405 class Daemon;
33    
34 douglas 402 class Spectre2
35     {
36     private:
37     const ext::String& pid;
38     public:
39     Spectre2(const ext::String& config, const ext::String& pid);
40     ~Spectre2();
41 douglas 414 static ext::String program, prefix, root;
42 douglas 402 static bool debug;
43 douglas 405 static ext::Vector<Daemon*> daemons;
44 douglas 402 };
45    
46     #endif // _Spectre2_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id