14 |
|
#endif |
15 |
|
|
16 |
|
#include <menes-api/console.hpp> |
17 |
+ |
#include <menes-api/files.hpp> |
18 |
+ |
#include <menes-api/path.hpp> |
19 |
|
#include <menes-ext/string.hpp> |
20 |
+ |
#include <menes-xml/document.hpp> |
21 |
+ |
#include <menes-xml/nodeset.hpp> |
22 |
+ |
#include <menes-xml/parse.hpp> |
23 |
|
|
19 |
– |
extern "C" |
20 |
– |
{ |
24 |
|
#include <unistd.h> |
25 |
< |
} |
25 |
> |
|
26 |
> |
typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_CREAT | O_TRUNC, 0600> SecretFileWriter; |
27 |
> |
|
28 |
> |
#ifndef _Spectre2_prefix_ |
29 |
> |
#define _Spectre2_prefix_ "/usr/local" |
30 |
> |
#endif |
31 |
> |
|
32 |
> |
#ifndef _Spectre2_root_ |
33 |
> |
#define _Spectre2_root_ "/smb" |
34 |
> |
#endif |
35 |
|
|
36 |
|
class Daemon; |
37 |
|
|
38 |
|
class Spectre2 |
39 |
|
{ |
40 |
|
private: |
41 |
< |
const ext::String& pid; |
41 |
> |
ext::String pid; |
42 |
|
public: |
43 |
< |
Spectre2(const ext::String& config, const ext::String& pid); |
43 |
> |
Spectre2(const api::Path& config); |
44 |
|
~Spectre2(); |
45 |
< |
static ext::String program; |
45 |
> |
static ext::String program, prefix, root; |
46 |
|
static bool debug; |
47 |
|
static ext::Vector<Daemon*> daemons; |
48 |
|
}; |