forked from schamane/node-syslog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnode-syslog.h
41 lines (31 loc) · 881 Bytes
/
node-syslog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef syslog_h
#define syslog_h
#include <node.h>
#include <node_object_wrap.h>
#include <node_version.h>
#include <v8.h>
#include <syslog.h>
#include <stdlib.h>
#include <string.h>
#include <uv.h>
namespace node {
class Syslog : ObjectWrap {
public:
static void Initialize ( v8::Handle<v8::Object> target);
protected:
static v8::Persistent<v8::FunctionTemplate> constructor_template;
static v8::Handle<v8::Value> init (const v8::Arguments& args);
static v8::Handle<v8::Value> log (const v8::Arguments& args);
static v8::Handle<v8::Value> setMask (const v8::Arguments& args);
static v8::Handle<v8::Value> destroy (const v8::Arguments& args);
Syslog () : ObjectWrap() {
};
~Syslog (){};
private:
static void open(int, int);
static void close();
static bool connected_;
static char name[1024];
};
} // namespace node
#endif // syslog_h