hamlib 0.1.27 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +18 -85
- package/index.d.ts +259 -4
- package/lib/index.js +234 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/libhamlib.4.dylib +0 -0
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/libhamlib.4.dylib +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/libhamlib.so +0 -0
- package/prebuilds/linux-arm64/libhamlib.so.4 +0 -0
- package/prebuilds/linux-arm64/libhamlib.so.4.0.7 +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/libhamlib.so +0 -0
- package/prebuilds/linux-x64/libhamlib.so.4 +0 -0
- package/prebuilds/linux-x64/libhamlib.so.4.0.7 +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/prebuilds/win32-x64/hamlib_shim.dll +0 -0
- package/prebuilds/win32-x64/libhamlib-4.dll +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/addon.cpp +2 -2
- package/src/hamlib.cpp +1868 -1126
- package/src/hamlib.h +79 -37
- package/src/shim/hamlib_shim.c +1169 -0
- package/src/shim/hamlib_shim.h +601 -0
- package/prebuilds/BUILD_INFO.txt +0 -14
- package/src/hamlib_compat.h +0 -44
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/addon.cpp
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#include <napi.h>
|
|
2
2
|
#include "hamlib.h"
|
|
3
3
|
#include "decoder.h"
|
|
4
|
-
#include
|
|
4
|
+
#include "shim/hamlib_shim.h"
|
|
5
5
|
|
|
6
6
|
Napi::Object Init(Napi::Env env, Napi::Object exports) {
|
|
7
7
|
// Set Hamlib debug level to NONE by default to prevent unwanted output
|
|
8
8
|
// Users can change this using HamLib.setDebugLevel() if needed
|
|
9
|
-
|
|
9
|
+
shim_rig_set_debug(0); // 0 = RIG_DEBUG_NONE
|
|
10
10
|
|
|
11
11
|
Napi::String name = Napi::String::New(env, "HamLib");
|
|
12
12
|
exports.Set(name, NodeHamLib::GetClass(env));
|