-
Notifications
You must be signed in to change notification settings - Fork 7
/
IFEheader.h
44 lines (33 loc) · 1.05 KB
/
IFEheader.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
42
43
44
/* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
#include <node.h>
#include <node_object_wrap.h>
#include <v8.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#ifndef __APPLE__
#include <stdlib.h>
#include <malloc.h>
#endif
namespace node {
using namespace v8;
class IFE : ObjectWrap {
public:
static void Initialize(v8::Handle<v8::Object> target);
static v8::Handle<v8::Value> New(const v8::Arguments& args);
static v8::Handle<v8::Value> list(const v8::Arguments& args);
static v8::Handle<v8::Value> up(const v8::Arguments& args);
static v8::Handle<v8::Value> down(const v8::Arguments& args);
static v8::Handle<v8::Value> gratarp(const v8::Arguments& args);
static v8::Handle<v8::Value> arpcache(const v8::Arguments& args);
IFE();
~IFE();
void emit(Local<Value> args[], int nargs);
private:
static Persistent<FunctionTemplate> constructor_template;
};
void InitIFE(v8::Handle<v8::Object> target);
}