usb 2.17.0 → 3.0.0-alpha.2
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/LICENSE +18 -4
- package/README.md +25 -516
- package/dist/index.d.ts +67 -13
- package/dist/index.js +333 -64
- package/index.d.ts +89 -0
- package/index.js +583 -0
- package/package.json +53 -33
- package/CHANGELOG.md +0 -294
- package/binding.gyp +0 -128
- package/dist/index.js.map +0 -1
- package/dist/usb/bindings.d.ts +0 -266
- package/dist/usb/bindings.js +0 -10
- package/dist/usb/bindings.js.map +0 -1
- package/dist/usb/capability.d.ts +0 -13
- package/dist/usb/capability.js +0 -17
- package/dist/usb/capability.js.map +0 -1
- package/dist/usb/descriptors.d.ts +0 -128
- package/dist/usb/descriptors.js +0 -3
- package/dist/usb/descriptors.js.map +0 -1
- package/dist/usb/device.d.ts +0 -100
- package/dist/usb/device.js +0 -297
- package/dist/usb/device.js.map +0 -1
- package/dist/usb/endpoint.d.ts +0 -94
- package/dist/usb/endpoint.js +0 -219
- package/dist/usb/endpoint.js.map +0 -1
- package/dist/usb/index.d.ts +0 -31
- package/dist/usb/index.js +0 -116
- package/dist/usb/index.js.map +0 -1
- package/dist/usb/interface.d.ts +0 -80
- package/dist/usb/interface.js +0 -133
- package/dist/usb/interface.js.map +0 -1
- package/dist/webusb/index.d.ts +0 -64
- package/dist/webusb/index.js +0 -295
- package/dist/webusb/index.js.map +0 -1
- package/dist/webusb/webusb-device.d.ts +0 -54
- package/dist/webusb/webusb-device.js +0 -434
- package/dist/webusb/webusb-device.js.map +0 -1
- package/libusb/.clang-tidy +0 -34
- package/libusb/.codespellrc +0 -3
- package/libusb/.private/README.txt +0 -5
- package/libusb/.private/appveyor_build.sh +0 -26
- package/libusb/.private/bm.sh +0 -54
- package/libusb/.private/ci-build.sh +0 -92
- package/libusb/.private/ci-container-build.sh +0 -67
- package/libusb/.private/post-rewrite.sh +0 -32
- package/libusb/.private/pre-commit.sh +0 -52
- package/libusb/.private/wbs.txt +0 -43
- package/libusb/.travis.yml +0 -58
- package/libusb/AUTHORS +0 -231
- package/libusb/COPYING +0 -504
- package/libusb/ChangeLog +0 -365
- package/libusb/HACKING +0 -25
- package/libusb/INSTALL_WIN.txt +0 -52
- package/libusb/KEYS +0 -123
- package/libusb/Makefile.am +0 -50
- package/libusb/NEWS +0 -2
- package/libusb/PORTING +0 -94
- package/libusb/README +0 -29
- package/libusb/README.git +0 -41
- package/libusb/TODO +0 -2
- package/libusb/Xcode/common.xcconfig +0 -92
- package/libusb/Xcode/config.h +0 -31
- package/libusb/Xcode/debug.xcconfig +0 -32
- package/libusb/Xcode/libusb.xcconfig +0 -21
- package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +0 -1391
- package/libusb/Xcode/libusb_debug.xcconfig +0 -21
- package/libusb/Xcode/libusb_release.xcconfig +0 -21
- package/libusb/Xcode/release.xcconfig +0 -30
- package/libusb/android/README +0 -152
- package/libusb/android/config.h +0 -55
- package/libusb/android/examples/unrooted_android.c +0 -301
- package/libusb/android/examples/unrooted_android.h +0 -36
- package/libusb/android/jni/Android.mk +0 -23
- package/libusb/android/jni/Application.mk +0 -40
- package/libusb/android/jni/examples.mk +0 -168
- package/libusb/android/jni/libusb.mk +0 -60
- package/libusb/android/jni/tests.mk +0 -45
- package/libusb/appveyor.yml +0 -108
- package/libusb/autogen.sh +0 -10
- package/libusb/bootstrap.sh +0 -10
- package/libusb/configure.ac +0 -450
- package/libusb/doc/Makefile.in +0 -22
- package/libusb/doc/doxygen.cfg.in +0 -2571
- package/libusb/doc/libusb.png +0 -0
- package/libusb/examples/Makefile.am +0 -12
- package/libusb/examples/dpfp.c +0 -711
- package/libusb/examples/ezusb.c +0 -846
- package/libusb/examples/ezusb.h +0 -109
- package/libusb/examples/fxload.c +0 -310
- package/libusb/examples/hotplugtest.c +0 -147
- package/libusb/examples/listdevs.c +0 -73
- package/libusb/examples/sam3u_benchmark.c +0 -228
- package/libusb/examples/testlibusb.c +0 -312
- package/libusb/examples/xusb.c +0 -1254
- package/libusb/libusb/Makefile.am +0 -98
- package/libusb/libusb/Makefile.am.extra +0 -26
- package/libusb/libusb/core.c +0 -2925
- package/libusb/libusb/descriptor.c +0 -1558
- package/libusb/libusb/hotplug.c +0 -489
- package/libusb/libusb/io.c +0 -2865
- package/libusb/libusb/libusb-1.0.def +0 -199
- package/libusb/libusb/libusb-1.0.rc +0 -53
- package/libusb/libusb/libusb.h +0 -2421
- package/libusb/libusb/libusbi.h +0 -1535
- package/libusb/libusb/os/darwin_usb.c +0 -2977
- package/libusb/libusb/os/darwin_usb.h +0 -156
- package/libusb/libusb/os/emscripten_webusb.cpp +0 -875
- package/libusb/libusb/os/events_posix.c +0 -340
- package/libusb/libusb/os/events_posix.h +0 -62
- package/libusb/libusb/os/events_windows.c +0 -214
- package/libusb/libusb/os/events_windows.h +0 -46
- package/libusb/libusb/os/haiku_pollfs.cpp +0 -372
- package/libusb/libusb/os/haiku_usb.h +0 -113
- package/libusb/libusb/os/haiku_usb_backend.cpp +0 -532
- package/libusb/libusb/os/haiku_usb_raw.cpp +0 -231
- package/libusb/libusb/os/haiku_usb_raw.h +0 -188
- package/libusb/libusb/os/linux_netlink.c +0 -401
- package/libusb/libusb/os/linux_udev.c +0 -321
- package/libusb/libusb/os/linux_usbfs.c +0 -2829
- package/libusb/libusb/os/linux_usbfs.h +0 -221
- package/libusb/libusb/os/netbsd_usb.c +0 -617
- package/libusb/libusb/os/null_usb.c +0 -111
- package/libusb/libusb/os/openbsd_usb.c +0 -700
- package/libusb/libusb/os/sunos_usb.c +0 -1619
- package/libusb/libusb/os/sunos_usb.h +0 -79
- package/libusb/libusb/os/threads_posix.c +0 -126
- package/libusb/libusb/os/threads_posix.h +0 -98
- package/libusb/libusb/os/threads_windows.c +0 -40
- package/libusb/libusb/os/threads_windows.h +0 -113
- package/libusb/libusb/os/windows_common.c +0 -923
- package/libusb/libusb/os/windows_common.h +0 -424
- package/libusb/libusb/os/windows_usbdk.c +0 -724
- package/libusb/libusb/os/windows_usbdk.h +0 -106
- package/libusb/libusb/os/windows_winusb.c +0 -4766
- package/libusb/libusb/os/windows_winusb.h +0 -787
- package/libusb/libusb/strerror.c +0 -223
- package/libusb/libusb/sync.c +0 -342
- package/libusb/libusb/version.h +0 -18
- package/libusb/libusb/version_nano.h +0 -1
- package/libusb/libusb-1.0.pc.in +0 -11
- package/libusb/msvc/Base.props +0 -60
- package/libusb/msvc/Configuration.Application.props +0 -7
- package/libusb/msvc/Configuration.Base.props +0 -47
- package/libusb/msvc/Configuration.DynamicLibrary.props +0 -21
- package/libusb/msvc/Configuration.StaticLibrary.props +0 -7
- package/libusb/msvc/ProjectConfigurations.Base.props +0 -69
- package/libusb/msvc/build_all.ps1 +0 -17
- package/libusb/msvc/config.h +0 -58
- package/libusb/msvc/dpfp.vcxproj +0 -33
- package/libusb/msvc/dpfp_threaded.vcxproj +0 -38
- package/libusb/msvc/fxload.vcxproj +0 -46
- package/libusb/msvc/getopt/getopt.c +0 -1060
- package/libusb/msvc/getopt/getopt.h +0 -180
- package/libusb/msvc/getopt/getopt1.c +0 -188
- package/libusb/msvc/getopt.vcxproj +0 -33
- package/libusb/msvc/hotplugtest.vcxproj +0 -32
- package/libusb/msvc/init_context.vcxproj +0 -35
- package/libusb/msvc/libusb.sln +0 -542
- package/libusb/msvc/libusb_dll.vcxproj +0 -61
- package/libusb/msvc/libusb_static.vcxproj +0 -49
- package/libusb/msvc/listdevs.vcxproj +0 -32
- package/libusb/msvc/sam3u_benchmark.vcxproj +0 -33
- package/libusb/msvc/set_option.vcxproj +0 -35
- package/libusb/msvc/stress.vcxproj +0 -35
- package/libusb/msvc/stress_mt.vcxproj +0 -33
- package/libusb/msvc/testlibusb.vcxproj +0 -32
- package/libusb/msvc/xusb.vcxproj +0 -38
- package/libusb/tests/Makefile.am +0 -40
- package/libusb/tests/init_context.c +0 -153
- package/libusb/tests/libusb_testlib.h +0 -76
- package/libusb/tests/macos.c +0 -130
- package/libusb/tests/set_option.c +0 -253
- package/libusb/tests/stress.c +0 -172
- package/libusb/tests/stress_mt.c +0 -267
- package/libusb/tests/testlib.c +0 -184
- package/libusb/tests/umockdev.c +0 -1175
- package/libusb/tests/webusb-test-shim/index.js +0 -12
- package/libusb/tests/webusb-test-shim/package-lock.json +0 -50
- package/libusb/tests/webusb-test-shim/package.json +0 -10
- package/libusb.gypi +0 -154
- package/libusb_config/config.h +0 -1
- package/prebuilds/android-arm/node.napi.armv7.node +0 -0
- package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
- package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/linux-ia32/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-ia32/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/device.cc +0 -439
- package/src/helpers.h +0 -64
- package/src/hotplug/hotplug.h +0 -22
- package/src/hotplug/libusb.cc +0 -90
- package/src/hotplug/windows.cc +0 -168
- package/src/node_usb.cc +0 -314
- package/src/node_usb.h +0 -131
- package/src/thread_name.cc +0 -79
- package/src/thread_name.h +0 -11
- package/src/transfer.cc +0 -143
- package/src/uv_async_queue.h +0 -41
- package/test/usb.coffee +0 -250
- package/test/webusb.coffee +0 -227
- package/test/worker.cjs +0 -13
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
AUTOMAKE_OPTIONS = subdir-objects
|
|
2
|
-
|
|
3
|
-
AM_CFLAGS += -fvisibility=hidden $(THREAD_CFLAGS)
|
|
4
|
-
AM_CXXFLAGS += -fvisibility=hidden $(THREAD_CFLAGS)
|
|
5
|
-
|
|
6
|
-
lib_LTLIBRARIES = libusb-1.0.la
|
|
7
|
-
|
|
8
|
-
POSIX_PLATFORM_SRC = os/events_posix.h os/events_posix.c \
|
|
9
|
-
os/threads_posix.h os/threads_posix.c
|
|
10
|
-
WINDOWS_PLATFORM_SRC = os/events_windows.h os/events_windows.c \
|
|
11
|
-
os/threads_windows.h os/threads_windows.c
|
|
12
|
-
|
|
13
|
-
if PLATFORM_POSIX
|
|
14
|
-
PLATFORM_SRC = $(POSIX_PLATFORM_SRC)
|
|
15
|
-
else
|
|
16
|
-
PLATFORM_SRC = $(WINDOWS_PLATFORM_SRC)
|
|
17
|
-
endif
|
|
18
|
-
|
|
19
|
-
OS_DARWIN_SRC = os/darwin_usb.h os/darwin_usb.c
|
|
20
|
-
OS_HAIKU_SRC = os/haiku_usb.h os/haiku_usb_backend.cpp \
|
|
21
|
-
os/haiku_pollfs.cpp os/haiku_usb_raw.h os/haiku_usb_raw.cpp
|
|
22
|
-
OS_LINUX_SRC = os/linux_usbfs.h os/linux_usbfs.c
|
|
23
|
-
OS_EMSCRIPTEN_SRC = os/emscripten_webusb.cpp
|
|
24
|
-
OS_NETBSD_SRC = os/netbsd_usb.c
|
|
25
|
-
OS_NULL_SRC = os/null_usb.c
|
|
26
|
-
OS_OPENBSD_SRC = os/openbsd_usb.c
|
|
27
|
-
OS_SUNOS_SRC = os/sunos_usb.h os/sunos_usb.c
|
|
28
|
-
OS_WINDOWS_SRC = libusb-1.0.def libusb-1.0.rc \
|
|
29
|
-
os/windows_common.h os/windows_common.c \
|
|
30
|
-
os/windows_usbdk.h os/windows_usbdk.c \
|
|
31
|
-
os/windows_winusb.h os/windows_winusb.c
|
|
32
|
-
|
|
33
|
-
if OS_DARWIN
|
|
34
|
-
OS_SRC = $(OS_DARWIN_SRC)
|
|
35
|
-
endif
|
|
36
|
-
|
|
37
|
-
noinst_LTLIBRARIES =
|
|
38
|
-
|
|
39
|
-
if OS_HAIKU
|
|
40
|
-
noinst_LTLIBRARIES += libusb_haiku.la
|
|
41
|
-
libusb_haiku_la_SOURCES = $(OS_HAIKU_SRC)
|
|
42
|
-
libusb_1_0_la_LIBADD = libusb_haiku.la
|
|
43
|
-
endif
|
|
44
|
-
|
|
45
|
-
if OS_LINUX
|
|
46
|
-
OS_SRC = $(OS_LINUX_SRC)
|
|
47
|
-
if USE_UDEV
|
|
48
|
-
OS_SRC += os/linux_udev.c
|
|
49
|
-
else
|
|
50
|
-
OS_SRC += os/linux_netlink.c
|
|
51
|
-
endif
|
|
52
|
-
endif
|
|
53
|
-
|
|
54
|
-
if OS_EMSCRIPTEN
|
|
55
|
-
noinst_LTLIBRARIES += libusb_emscripten.la
|
|
56
|
-
libusb_emscripten_la_SOURCES = $(OS_EMSCRIPTEN_SRC)
|
|
57
|
-
AM_CXXFLAGS += -std=c++20
|
|
58
|
-
libusb_1_0_la_LIBADD = libusb_emscripten.la
|
|
59
|
-
endif
|
|
60
|
-
|
|
61
|
-
if OS_NETBSD
|
|
62
|
-
OS_SRC = $(OS_NETBSD_SRC)
|
|
63
|
-
endif
|
|
64
|
-
|
|
65
|
-
if OS_NULL
|
|
66
|
-
OS_SRC = $(OS_NULL_SRC)
|
|
67
|
-
endif
|
|
68
|
-
|
|
69
|
-
if OS_OPENBSD
|
|
70
|
-
OS_SRC = $(OS_OPENBSD_SRC)
|
|
71
|
-
endif
|
|
72
|
-
|
|
73
|
-
if OS_SUNOS
|
|
74
|
-
OS_SRC = $(OS_SUNOS_SRC)
|
|
75
|
-
endif
|
|
76
|
-
|
|
77
|
-
if OS_WINDOWS
|
|
78
|
-
OS_SRC = $(OS_WINDOWS_SRC)
|
|
79
|
-
|
|
80
|
-
include Makefile.am.extra
|
|
81
|
-
|
|
82
|
-
# Dependencies for compiling libusb-1.0.lo from libusb-1.0.rc
|
|
83
|
-
-include ./$(DEPDIR)/libusb-1.0.Plo
|
|
84
|
-
|
|
85
|
-
if CREATE_IMPORT_LIB
|
|
86
|
-
all-local: .libs/libusb-1.0.dll.a
|
|
87
|
-
# Rebuild the import lib from the .def so that MS and MinGW DLLs can be interchanged
|
|
88
|
-
.libs/libusb-1.0.dll.a: libusb-1.0.def libusb-1.0.la
|
|
89
|
-
$(AM_V_DLLTOOL)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $< --dllname libusb-1.0.dll --output-lib $@
|
|
90
|
-
endif
|
|
91
|
-
endif
|
|
92
|
-
|
|
93
|
-
libusb_1_0_la_LDFLAGS = $(LT_LDFLAGS) $(EXTRA_LDFLAGS)
|
|
94
|
-
libusb_1_0_la_SOURCES = libusbi.h version.h version_nano.h \
|
|
95
|
-
core.c descriptor.c hotplug.c io.c strerror.c sync.c \
|
|
96
|
-
$(PLATFORM_SRC) $(OS_SRC)
|
|
97
|
-
|
|
98
|
-
pkginclude_HEADERS = libusb.h
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
AM_V_DLLTOOL = $(am__v_DLLTOOL_$(V))
|
|
2
|
-
am__v_DLLTOOL_ = $(am__v_DLLTOOL_$(AM_DEFAULT_VERBOSITY))
|
|
3
|
-
am__v_DLLTOOL_0 = @echo " DLLTOOL " $@;
|
|
4
|
-
am__v_DLLTOOL_1 =
|
|
5
|
-
|
|
6
|
-
AM_V_RC = $(am__v_RC_$(V))
|
|
7
|
-
am__v_RC_ = $(am__v_RC_$(AM_DEFAULT_VERBOSITY))
|
|
8
|
-
am__v_RC_0 = @echo " RC " $@;
|
|
9
|
-
am__v_RC_1 =
|
|
10
|
-
|
|
11
|
-
LTRC = $(LIBTOOL) $(AM_V_lt) --tag=RC $(AM_LIBTOOLFLAGS) \
|
|
12
|
-
$(LIBTOOLFLAGS) --mode=compile $(RC) $(AM_RCFLAGS) \
|
|
13
|
-
$(RCFLAGS)
|
|
14
|
-
|
|
15
|
-
RCPPARGS = \
|
|
16
|
-
--preprocessor-arg -MT \
|
|
17
|
-
--preprocessor-arg $@ \
|
|
18
|
-
--preprocessor-arg -MD \
|
|
19
|
-
--preprocessor-arg -MP \
|
|
20
|
-
--preprocessor-arg -MF \
|
|
21
|
-
--preprocessor-arg $$depbase.Tpo
|
|
22
|
-
|
|
23
|
-
.rc.lo:
|
|
24
|
-
$(AM_V_RC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
|
|
25
|
-
$(LTRC) $(RCPPARGS) -i $< -o $@ &&\
|
|
26
|
-
$(am__mv) $$depbase.Tpo $$depbase.Plo
|