ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Spectre2.hpp
Revision: 432
Committed: 2005-03-27T01:56:29-08:00 (20 years, 3 months ago) by douglas
File size: 1317 byte(s)
Log Message:
It should almost do everything it's supposed to.

File Contents

# Content
1 // 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 #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 #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 #ifndef _Spectre2_umount_
48 #define _Spectre2_umount_ "/sbin/umount"
49 #endif
50
51 class Daemon;
52
53 class Spectre2
54 {
55 private:
56 ext::String pid;
57 public:
58 Spectre2(const api::Path& config);
59 ~Spectre2();
60 static ext::String program, prefix, root, mount, umount;
61 static bool debug;
62 static Daemon* daemon;
63 };
64
65 #endif//_Spectre2_hpp_

Properties

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