forked from schamane/node-syslog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-syslog.h
More file actions
35 lines (27 loc) · 740 Bytes
/
node-syslog.h
File metadata and controls
35 lines (27 loc) · 740 Bytes
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
#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>
#include "compat.h"
namespace C = ::compat;
class Syslog {
public:
static void Initialize ( v8::Handle<v8::Object> target);
protected:
static C::ReturnType init (const C::ArgumentType& args);
static C::ReturnType log (const C::ArgumentType& args);
static C::ReturnType setMask (const C::ArgumentType& args);
static C::ReturnType destroy (const C::ArgumentType& args);
private:
static void open(int, int);
static void close();
static bool connected_;
static char name[1024];
};
#endif // syslog_h