-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirdomain.h
40 lines (33 loc) · 886 Bytes
/
virdomain.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
#ifndef VIRDOMAIN_H
#define VIRDOMAIN_H
#include <iostream>
#include <node.h>
#include <libvirt/libvirt.h>
#include <node_object_wrap.h>
#include <string>
#include "virconnect.h"
using v8::Context;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
using v8::Isolate;
using v8::Local;
using v8::Number;
using v8::Object;
using v8::Persistent;
using v8::String;
using v8::Value;
class __virDomain : public node::ObjectWrap
{
public:
virDomainPtr _dom;
static Persistent<Function> constructor;
explicit __virDomain(virDomainPtr dom);
static void Init(Local<Object> exports);
static void New(const FunctionCallbackInfo<Value>& args);
void wrap(const FunctionCallbackInfo<Value>& args);
private:
~__virDomain();
static void getID(const FunctionCallbackInfo<Value>& args);
};
#endif