Skip to content

Commit

Permalink
Update to Async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 committed Aug 28, 2023
1 parent 7255ed3 commit 11594ff
Show file tree
Hide file tree
Showing 14 changed files with 402 additions and 357 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ src/**/*.d.ts
# Anothers
.vscode-ctags*
*.addrs.json
.DS_Store
.DS_Store
*.log
30 changes: 25 additions & 5 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"compilerArgs": [
"-fpermissive",
"-fexceptions",
"-w",
"-fpermissive",
"-fPIC",
"-static"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS",
"CallSetupWireguard"
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
"includePath": [
"${env:appdata}/../Local/node-gyp/Cache/18.17.0/include/node",
Expand All @@ -24,7 +31,12 @@
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-x64",
"compilerArgs": [
"-fpermissive"
"-fpermissive",
"-fexceptions",
"-w",
"-fpermissive",
"-fPIC",
"-static"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS"
Expand All @@ -40,13 +52,21 @@
{
"name": "Mac",
"includePath": [
"/usr/local/include/node",
"${workspaceFolder}/node_modules/node-addon-api",
"${workspaceFolder}/addons/**"
"${workspaceFolder}/addons/**",
"/usr/local/include/node"
],
"defines": [
"NAPI_DISABLE_CPP_EXCEPTIONS"
],
"compilerArgs": [
"-fpermissive",
"-fexceptions",
"-w",
"-fpermissive",
"-fPIC",
"-static"
],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
Expand Down
15 changes: 10 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
"version": "0.2.0",
"configurations": [
{
"type": "node",
"type": "lldb",
"request": "launch",
"name": "Mocha test",
"name": "Debug",
"cwd": "${workspaceFolder}",
"program": "node",
"preLaunchTask": {
"script": "test:full",
"type": "npm"
"type": "npm",
"script": "dev"
},
"program": "node"
"args": [
"node_modules/.bin/mocha",
"./"
]
}
]
}
15 changes: 4 additions & 11 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "test:full",
"problemMatcher": [],
"label": "npm: test:full",
"detail": "npm run build && npm run test"
},
{
"type": "npm",
"script": "build",
"problemMatcher": [],
"label": "npm: build",
"detail": "npm run build"
"detail": "npm run dev",
"type": "npm",
"script": "dev",
"problemMatcher": []
}
]
}
6 changes: 6 additions & 0 deletions addons/tools/linux/set_ip.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <vector>
#include <string>

std::string setIps(std::string name, std::vector<std::string> ips) {
return "";
}
4 changes: 4 additions & 0 deletions addons/tools/wginterface-dummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ Napi::Value parseWgDeviceSync(const Napi::CallbackInfo& info) {

void setConfig::Execute() {
SetError("Use userpace implementation, kernel only on linux!");
}

void getConfig::Execute() {
SetError("Use userpace implementation, kernel only on linux!");
}
Loading

0 comments on commit 11594ff

Please sign in to comment.