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 |
– |
|
32 |
|
#ifndef _Spectre2_prefix_ |
33 |
|
#define _Spectre2_prefix_ "/usr/local" |
34 |
|
#endif |
41 |
|
#define _Spectre2_mount_ "/sbin/mount" |
42 |
|
#endif |
43 |
|
|
44 |
+ |
#ifndef _Spectre2_umount_ |
45 |
+ |
#define _Spectre2_umount_ "/sbin/umount" |
46 |
+ |
#endif |
47 |
+ |
|
48 |
|
class Daemon; |
48 |
– |
class Share; |
49 |
|
|
50 |
|
class Spectre2 |
51 |
|
{ |
54 |
|
public: |
55 |
|
Spectre2(const api::Path& config); |
56 |
|
~Spectre2(); |
57 |
< |
static ext::String program, prefix, root, mount; |
57 |
> |
static ext::String program, prefix, root, mount, umount; |
58 |
|
static bool debug; |
59 |
< |
static ext::Vector<Daemon*> daemons; |
60 |
< |
static ext::RedBlackSet<Share> shares; |
61 |
< |
static api::ThreadMutex sharesLock; |
59 |
> |
static Daemon* daemon; |
60 |
|
}; |
61 |
|
|
62 |
|
#endif//_Spectre2_hpp_ |