Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 740 Bytes
#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
Something went wrong with that request. Please try again.