-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathnoop.cc
32 lines (20 loc) · 1014 Bytes
/
noop.cc
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
// Copyright (C) 2017 - 2019, Rory Bradford <[email protected]> and contributors
// MIT License
#include <node.h>
namespace notify {
void ready(const v8::FunctionCallbackInfo<v8::Value>& args) {}
void stopping(const v8::FunctionCallbackInfo<v8::Value>& args) {}
void watchdog(const v8::FunctionCallbackInfo<v8::Value>& args) {}
void sendstate(const v8::FunctionCallbackInfo<v8::Value>& args) {}
void interval(const v8::FunctionCallbackInfo<v8::Value>& args) {}
void journal_print(const v8::FunctionCallbackInfo<v8::Value>& args) {}
} // namespace notify
void Init(v8::Local<v8::Object> exports) {
NODE_SET_METHOD(exports, "ready", notify::ready);
NODE_SET_METHOD(exports, "stopping", notify::stopping);
NODE_SET_METHOD(exports, "watchdog", notify::watchdog);
NODE_SET_METHOD(exports, "watchdogInterval", notify::interval);
NODE_SET_METHOD(exports, "sendState", notify::sendstate);
NODE_SET_METHOD(exports, "journalPrint", notify::journal_print);
}
NODE_MODULE(addon, Init)