-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBeboCaptureNative.cc
More file actions
34 lines (30 loc) · 1.79 KB
/
BeboCaptureNative.cc
File metadata and controls
34 lines (30 loc) · 1.79 KB
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
#include "CaptureFunctions.h"
#include "ConstraintFunctions.h"
#include "DesktopListFunctions.h"
#include "WindowListFunctions.h"
#include "ProcessFunctions.h"
using v8::FunctionTemplate;
NAN_MODULE_INIT(InitAll)
{
Nan::Set(target, Nan::New("getCapture").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(getCapture)).ToLocalChecked());
Nan::Set(target, Nan::New("setCapture").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(setCapture)).ToLocalChecked());
Nan::Set(target, Nan::New("signalCaptureReadRegistry").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(signalCaptureReadRegistry)).ToLocalChecked());
Nan::Set(target, Nan::New("getConstraints").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(getConstraints)).ToLocalChecked());
Nan::Set(target, Nan::New("setConstraints").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(setConstraints)).ToLocalChecked());
Nan::Set(target, Nan::New("getDesktops").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(getDesktops)).ToLocalChecked());
Nan::Set(target, Nan::New("getWindowList").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(getWindowList)).ToLocalChecked());
Nan::Set(target, Nan::New("getForegroundWindow").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(getForegroundWindow)).ToLocalChecked());
Nan::Set(target, Nan::New("checkProcessElevation").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(checkProcessElevation)).ToLocalChecked());
Nan::Set(target, Nan::New("isProcessElevated").ToLocalChecked(),
Nan::GetFunction(Nan::New<FunctionTemplate>(isProcessElevated)).ToLocalChecked());
}
NODE_MODULE(NativeExtension, InitAll)