17 |
|
#include <menes-api/files.hpp> |
18 |
|
#include <menes-ext/string.hpp> |
19 |
|
|
20 |
+ |
#include <unistd.h> |
21 |
+ |
|
22 |
|
typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_CREAT | O_TRUNC, 0600> SecretFileWriter; |
23 |
|
|
24 |
< |
#include <unistd.h> |
24 |
> |
#ifndef _Spectre2_prefix_ |
25 |
> |
#define _Spectre2_prefix_ "/usr/local" |
26 |
> |
#endif |
27 |
> |
|
28 |
> |
#ifndef _Spectre2_root_ |
29 |
> |
#define _Spectre2_root_ "/smb" |
30 |
> |
#endif |
31 |
|
|
32 |
|
class Daemon; |
33 |
|
|
38 |
|
public: |
39 |
|
Spectre2(const ext::String& config, const ext::String& pid); |
40 |
|
~Spectre2(); |
41 |
< |
static ext::String program; |
41 |
> |
static ext::String program, prefix, root; |
42 |
|
static bool debug; |
43 |
|
static ext::Vector<Daemon*> daemons; |
44 |
|
}; |